From 20c6ff0f7f9e15e32476a08bfcc5296bad098901 Mon Sep 17 00:00:00 2001 From: Matthias Eckert Date: Thu, 2 Feb 2023 08:29:20 +0100 Subject: [PATCH] Auto saved by Logseq --- journals/2023_01_30.md | 2 +- .../2023-02-02T07_28_25.359Z.Desktop.md | 14 ++ .../2023-02-02T07_28_25.368Z.Desktop.md | 19 +++ .../cloud/2023-02-02T07_28_25.354Z.Desktop.md | 126 ++++++++++++++++++ .../2023-02-02T07_28_25.397Z.Desktop.md | 42 ++++++ .../2023-02-02T07_28_45.903Z.Desktop.md | 14 ++ 6 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 logseq/bak/Journal/2023-01-20/2023-02-02T07_28_25.359Z.Desktop.md create mode 100644 logseq/bak/Journal/2023-01-21/2023-02-02T07_28_25.368Z.Desktop.md create mode 100644 logseq/bak/cloud/2023-02-02T07_28_25.354Z.Desktop.md create mode 100644 logseq/bak/journals/2023_01_23/2023-02-02T07_28_25.397Z.Desktop.md create mode 100644 logseq/bak/journals/2023_01_29/2023-02-02T07_28_45.903Z.Desktop.md diff --git a/journals/2023_01_30.md b/journals/2023_01_30.md index 1675d2c1..50c07b76 100644 --- a/journals/2023_01_30.md +++ b/journals/2023_01_30.md @@ -1,5 +1,5 @@ - Verkaufen - - Salomon Speedcross 46 2 + - Salomon Speedcross 46 2/3 - https://www.ebay-kleinanzeigen.de/s-salomon-speedcross-5-gtx/k0 - Wahoo KICKR CORE - https://www.ebay-kleinanzeigen.de/s-seite:3/wahoo-kickr-core/k0 diff --git a/logseq/bak/Journal/2023-01-20/2023-02-02T07_28_25.359Z.Desktop.md b/logseq/bak/Journal/2023-01-20/2023-02-02T07_28_25.359Z.Desktop.md new file mode 100644 index 00000000..173b61d6 --- /dev/null +++ b/logseq/bak/Journal/2023-01-20/2023-02-02T07_28_25.359Z.Desktop.md @@ -0,0 +1,14 @@ +- Changedetection.io [[Software]] #SelfHosted + - Web Site Change Detection, Monitoring and Notification. + _Live your data-life pro-actively, Detect website changes and perform meaningful actions, trigger notifications via Discord, Email, Slack, Telegram, API calls and many more._ + - https://github.com/dgtlmoon/changedetection.io + - DONE Install Changedetection to [[cloud]] + :LOGBOOK: + CLOCK: [2023-01-21 Sat 11:55:02]--[2023-01-21 Sat 11:55:13] => 00:00:11 + CLOCK: [2023-01-21 Sat 11:55:15]--[2023-01-21 Sat 11:55:17] => 00:00:02 + CLOCK: [2023-01-21 Sat 11:55:22]--[2023-01-21 Sat 11:55:25] => 00:00:03 + CLOCK: [2023-01-21 Sat 11:55:26] + :END: +- Budibase [[Software]] #SelfHosted + - Build apps, forms, and workflows that perfectly fit your business - so you can move forward, faster. Best of all, Budibase is open source! + - https://budibase.com/ \ No newline at end of file diff --git a/logseq/bak/Journal/2023-01-21/2023-02-02T07_28_25.368Z.Desktop.md b/logseq/bak/Journal/2023-01-21/2023-02-02T07_28_25.368Z.Desktop.md new file mode 100644 index 00000000..9b0af8aa --- /dev/null +++ b/logseq/bak/Journal/2023-01-21/2023-02-02T07_28_25.368Z.Desktop.md @@ -0,0 +1,19 @@ +- Dendron [[software]] [[Resource/pkms]] + - https://www.dendron.so + - VSCode Plugin + - No Android/IOS Client +- Logseq [[Software]] [[Resource/pkms]] + - https://logseq.com + - #+BEGIN_QUOTE + Author here. I started it as a side project to have a local-first, org-mode outliner web app to use on my phone. I chose Clojure/Clojurescript because I'm more familiar with both compared to Javascript/Typescript. Several things I like a lot about Clojure/Clojurescript: Data-Oriented Programming, all three (logseq, roam, athens) use Datascript, which is an in-memory database and Datalog query engine. REPL (as other lisp languages) Clojure is very stable, I can run all my old projects without any issues. Also, I don't reverse engineering the Roam code(it'll cost more time for us), Logseq is hugely inspired by Roam Research, Org Mode, TiddlyWiki, Workflow. + #+END_QUOTE + - https://news.ycombinator.com/item?id=25083333 + - https://wiki.nikiv.dev/tools/logseq + - Shortcuts + - https://cheatography.com/bgrolleman/cheat-sheets/logseq/ +- PKMS Software Anforderungen #Requirements #Software + - Automatischer Sync zwischen Mobile/Desktop + - Markdown mit Bildern + - Backup + - Guter Editor +- Compose \ No newline at end of file diff --git a/logseq/bak/cloud/2023-02-02T07_28_25.354Z.Desktop.md b/logseq/bak/cloud/2023-02-02T07_28_25.354Z.Desktop.md new file mode 100644 index 00000000..494040bc --- /dev/null +++ b/logseq/bak/cloud/2023-02-02T07_28_25.354Z.Desktop.md @@ -0,0 +1,126 @@ +--- +title: Cloud +description: +published: true +date: 2019-12-14T08:03:42.805Z +tags: +--- + +## Oracle Cloud + +Tier: monzi + +### Create Instance + +https://console.eu-zurich-1.oraclecloud.com/a/compute/instances + +#### Assign Public Ip +Compute > Instances > Instance > DetailsAttached > VNICs > VNIC Details +![cloud_wireguard_ip.png](/cloud_wireguard_ip.png) + +### Open Port from extern + +Networking > Virtual Cloud Networks >Virtual Cloud Network Details > Network Security Groups + +![cloud_wireguard_ports.png](/cloud_wireguard_ports.png) + +Networking > Virtual Cloud Networks >Virtual Cloud Network Details > Security Lists + +### Allow Port in firewall + +```sudo iptables -4 -I INPUT 6 -p udp --dport 54541 -m comment --comment "Wireguard listen port" -j ACCEPT``` + +### Wireguard Server + +Tools + +https://github.com/pirate/wireguard-docs#WireGuard-Setup-tools +https://github.com/isystem-io/wireguard-aws +https://habr.com/en/post/449234/ + +#### Install +``` +sudo add-apt-repository ppa:wireguard/wireguard +sudo apt-get install wireguard +# Activate kernel module +sudo modprobe wireguard +``` + +#### Enable NAT +``` +cat << EOF >> /etc/sysctl.conf +net.ipv4.ip_forward=1 +EOF +sudo sysctl -p +``` + + +#### Generate Keys +``` +cd /etc/wireguard +umask 077 +wg genkey | sudo tee privatekey | wg pubkey | sudo tee publickey + +sudo vim /etc/wireguard/wg0.conf +``` +Content: +``` +[Interface] +PrivateKey = +Address = 10.50.0.1/24 +SaveConfig = false +PostUp = iptables -I FORWARD 1 -i %i -j ACCEPT; iptables -I FORWARD 2 -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE +PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE; +ListenPort = 54541 +``` + +#### Start Server +``` +# Start Server +sudo wg-quick up wg0 +# Enable Server as Servuce +sudo systemctl enable wg-quick@wg0 +``` + +### Wireguard Client +``` +sudo iptables -t mangle -I PREROUTING 1 -i br-vlanwgnl1 ! -d 172.57.0.0/16 -j MARK --set-mark 0x25 +sudo ip -4 link add dev wg1 type wireguard +sudo ifconfig wg1 up +sudo wg setconf wg1 /etc/wireguard/wg1.conf +sudo ip -4 address add 10.50.0.2/32 dev wg1 +sudo ip -4 link set mtu 1420 up dev wg1 +sudo printf 'nameserver %s\n' '1.1.1.1' | sudo resolvconf -a wg1 -m 0 -x +sudo sysctl -w net.ipv4.conf.all.rp_filter=2 +sudo ip -4 rule add from all fwmark 0x25 lookup 200 +sudo ip -4 route add default via 10.50.0.2 table 200 +sudo iptables -t nat -A POSTROUTING -o br-vlanwgnl1 -j MASQUERADE +``` + +#### Tools +``` +# Show mangle rules +sudo iptables -L -v -t mangle + +# Show iptables +sudo iptables -L -v --line-numbers + +# Show routing table +sudo route -n + +# Remove ip rule +sudo ip rule del fwmark 0x25 +``` + + +## Settings + +Lokal Proxy: +``` +[{"proxy":{"username":"", "password":"", "port":1080, "address":"microsocks", "type":"SOCKS5", "preferNativeImplementation":false, "resolveHostName":true, "connectMethodPrefered":false}, "rangeRequestsSupported":true, "filter":{"type":"WHITELIST", "entries":["zippyshare.com"]}, "pac":false, "reconnectSupported":false, "enabled":true},{"proxy":{"username":null, "password":null, "port":80, "address":null, "type":"NONE", "preferNativeImplementation":false, "resolveHostName":false, "connectMethodPrefered":false}, "rangeRequestsSupported":true, "filter":{"type":"BLACKLIST", "entries":["zippyshare.com"]}, "pac":false, "reconnectSupported":true, "enabled":true}] +``` +Remote Proxy: +``` +[{"proxy":{"username":"", "password":"", "port":8388, "address":"140.238.168.133", "type":"SOCKS5", "preferNativeImplementation":false, "resolveHostName":true, "connectMethodPrefered":false}, "rangeRequestsSupported":true, "filter":{"type":"WHITELIST", "entries":["zippyshare.com"]}, "pac":false, "reconnectSupported":false, "enabled":true},{"proxy":{"username":null, "password":null, "port":80, "address":null, "type":"NONE", "preferNativeImplementation":false, "resolveHostName":false, "connectMethodPrefered":false}, "rangeRequestsSupported":true, "filter":{"type":"BLACKLIST", "entries":["zippyshare.com"]}, "pac":false, "reconnectSupported":true, "enabled":true}] +``` + diff --git a/logseq/bak/journals/2023_01_23/2023-02-02T07_28_25.397Z.Desktop.md b/logseq/bak/journals/2023_01_23/2023-02-02T07_28_25.397Z.Desktop.md new file mode 100644 index 00000000..d7d96752 --- /dev/null +++ b/logseq/bak/journals/2023_01_23/2023-02-02T07_28_25.397Z.Desktop.md @@ -0,0 +1,42 @@ +- [[English Lesson]] + - subjunctive mood + - very formal more in a.e. than b.e + - used (primarily) in writing + - bare infinitive + id:: a55e39ce-e45f-4aba-93a6-c946b2fbd120 + - ``` + My supervisor suggested (that) we have fewer meetings. + Our teacher recommends (that) we speak in English every day. + I ask that he be on time. + It is important (that) we be on time. + ``` + - advise (that)… + ask (that)… + demand (that)… + insist (that)… + propose (that)… + recommend (that)… + request (that)… + suggest (that)… + urge (that)… + It is crucial (that)… + it is essential (that)… + It is important (that)… + - Example Sentences: + - I urge that we resolve this asap + We propose to improve feature + I advise we spend less time in meetings +- +- Check Mime Type [[Code Snippet]] [[Java]] + - ``` java + public static void main(String[] args) throws IOException { + final File file = new File("c:\\tmp\\tst.csv"); + System.out.println(new FileDataSource(file).getContentType()); + System.out.println(Files.probeContentType(file.toPath())); + System.out.println(file.toURL().openConnection().getContentType()); + System.out.println(URLConnection.guessContentTypeFromName(file.getName())); + System.out.println(URLConnection.getFileNameMap().getContentTypeFor(file.getName())); + System.out.println(new MimetypesFileTypeMap().getContentType(file.getName())); + } + ``` +- \ No newline at end of file diff --git a/logseq/bak/journals/2023_01_29/2023-02-02T07_28_45.903Z.Desktop.md b/logseq/bak/journals/2023_01_29/2023-02-02T07_28_45.903Z.Desktop.md new file mode 100644 index 00000000..c4cb7d7e --- /dev/null +++ b/logseq/bak/journals/2023_01_29/2023-02-02T07_28_45.903Z.Desktop.md @@ -0,0 +1,14 @@ +- #Logseq Plugins + - Bullet Threading + - Copy Code +- Laufen #Sport #2023 #Ziele + - Übersicht: https://www.runnersworld.de/news-fotos/die-schoensten-halbmarathons-deutschlands/ + - 10km + - Halbmarathon + - https://stuttgart-lauf.de/de/anmeldung/zeitplan 42€ + - https://stuttgart-lauf.de/aktuelles/deine-fragen-unsere-faqs + - Dein Gutschein-Code lautet: SOND-EJ9K-FEPW-4C8W. + - TODO Anmeldung bis 2023-01-31 + - https://www.tsv-weinsberg.de/index.php/weibertreulauf/anmeldung 28€ + - TODO Anmeldung bis 2023-03-08 + - Marathon? \ No newline at end of file