From d55d50a6a956370900d691ec26e1b0162241b154 Mon Sep 17 00:00:00 2001 From: octospacc <octo@tutamail.com> Date: Tue, 25 Jul 2023 12:03:11 +0000 Subject: [PATCH] OcttKB Cross-Repo Sync (HTML to Raw) --- Wiki-OcttKB/tiddlers/Normal/Linux/_Userspace.tid | 13 ++++++++++++- Wiki-OcttKB/tiddlers/Normal/Unix/_Shell.tid | 3 ++- Wiki-OcttKB/tiddlers/Normal/_Copypasta.tid | 8 +++++--- Wiki-OcttKB/tiddlers/Normal/_Keyboard.tid | 10 ++++++++++ Wiki-OcttKB/tiddlers/Normal/_Linux.tid | 14 ++------------ Wiki-OcttKB/tiddlers/Normal/_Python.tid | 15 +++++++++++---- Wiki-OcttKB/tiddlers/Normal/_Shell scripting.tid | 13 +++++++++++++ .../tiddlers/System/_HistoryList.json.meta | 4 ++-- Wiki-OcttKB/tiddlers/System/_StoryList.tid | 4 ++-- .../tiddlers/System/state/_showeditpreview.tid | 4 ++-- .../tiddlers/System/state/_tab--2112689675.tid | 4 ++-- .../tiddlers/System/state/_tab-1749438307.tid | 4 ++-- .../System/state/tab/_sidebar--595412856.tid | 4 ++-- 13 files changed, 67 insertions(+), 33 deletions(-) create mode 100644 Wiki-OcttKB/tiddlers/Normal/_Keyboard.tid create mode 100644 Wiki-OcttKB/tiddlers/Normal/_Shell scripting.tid diff --git a/Wiki-OcttKB/tiddlers/Normal/Linux/_Userspace.tid b/Wiki-OcttKB/tiddlers/Normal/Linux/_Userspace.tid index df596ee..b530bdc 100644 --- a/Wiki-OcttKB/tiddlers/Normal/Linux/_Userspace.tid +++ b/Wiki-OcttKB/tiddlers/Normal/Linux/_Userspace.tid @@ -1,6 +1,6 @@ created: 20230608141932117 creator: Octt -modified: 20230608142245770 +modified: 20230725115220193 modifier: Octt tags: title: Linux/Userspace @@ -8,3 +8,14 @@ title: Linux/Userspace * [[AppStream (Docs)|https://www.freedesktop.org/software/appstream/docs/]] ** [[AppStream .Metainfo.xml Creator|https://www.freedesktop.org/software/appstream/metainfocreator/]] * [[Open Age Ratings Service (OARS)|https://hughsie.github.io/oars/index.html]] + +!!! ''Misc tools'' + +* [[Flatpak|https://flatpak.org/]] --- //Linux application sandboxing and distribution framework// --- <<[# Git "https://github.com/flatpak">> <<[# "Dev Docs" "https://docs.flatpak.org/en/latest/">> +** [[Flathub|https://flathub.org/]] --- Official build and distribution service for Flatpak applications --- <<[ "[[Git|https://github.com/flathub]]">> +** <<RedditL r/flatpak/comments/m09ma4/save_flathub_runtime_and_sdk_as_local_flatpak "Save Flathub runtime and SDK as local Flatpak file bundle">> + +* [[Wine|https://www.winehq.org/]] --- //Compatibility layer for running Windows applications on POSIX-compliant systems// +** [[WineZGUI|https://github.com/fastrizwaan/WineZGUI]] --- //Wine GUI using Zenity - Play and Share!// --- <<#[ Flatpak "https://github.com/fastrizwaan/flatpak-wine">> +** [[When is a wine-based Linux path used/converted?|https://askubuntu.com/questions/1018400/when-is-a-wine-based-linux-path-used]] +*** `winepath` allows conversion of paths Unix --> Windows (`-u`), Windows --> Unix (`-w`) diff --git a/Wiki-OcttKB/tiddlers/Normal/Unix/_Shell.tid b/Wiki-OcttKB/tiddlers/Normal/Unix/_Shell.tid index e00c1a2..b649d08 100644 --- a/Wiki-OcttKB/tiddlers/Normal/Unix/_Shell.tid +++ b/Wiki-OcttKB/tiddlers/Normal/Unix/_Shell.tid @@ -1,6 +1,6 @@ created: 20230605214923345 creator: Octt -modified: 20230724222654053 +modified: 20230725114604938 modifier: Octt tags: title: Unix/Shell @@ -12,3 +12,4 @@ title: Unix/Shell * [[$PWD vs. pwd regarding portability|https://stackoverflow.com/questions/10795014/pwd-vs-pwd-regarding-portability]] --- `$(pwd)` has issues with paths with newline chars, `$PWD` is fine but can be wrongly reset by badly-made programs; all appear to be available on all good shells. * [[How to find the last field using 'cut'|https://stackoverflow.com/questions/22727107/how-to-find-the-last-field-using-cut]] --- `echo 'maps.google.com' | rev | cut -d'.' -f 1 | rev` * [[Get/use exit code of command|https://www.cyberciti.biz/faq/bash-get-exit-code-of-command/]] --- Variable `$?` +* [[Check if a string begins with some value|https://stackoverflow.com/questions/2172352/in-bash-how-can-i-check-if-a-string-begins-with-some-value#18558871]] --- `beginswith(){ case $2 in "$1"*) true;; *) false;; esac; }` diff --git a/Wiki-OcttKB/tiddlers/Normal/_Copypasta.tid b/Wiki-OcttKB/tiddlers/Normal/_Copypasta.tid index ce13a95..242b5cc 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_Copypasta.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_Copypasta.tid @@ -1,12 +1,14 @@ created: 20230301115915481 creator: Octt -modified: 20230301120009546 +modified: 20230725111442890 modifier: Octt tags: Meme title: Copypasta <<^wikipediaframe Copypasta>> -!!! ''Favorite copypastas'' +* <<RedditL r/copypasta r/copypasta>> -* ... \ No newline at end of file +!!! ''Some specific copypastas'' + +* [[GNU/Linux Copypasta|https://stallman-copypasta.github.io/]] diff --git a/Wiki-OcttKB/tiddlers/Normal/_Keyboard.tid b/Wiki-OcttKB/tiddlers/Normal/_Keyboard.tid new file mode 100644 index 0000000..5e3509b --- /dev/null +++ b/Wiki-OcttKB/tiddlers/Normal/_Keyboard.tid @@ -0,0 +1,10 @@ +created: 20230725112836922 +creator: Octt +modified: 20230725113335973 +modifier: Octt +tags: +title: Keyboard + +<<^wikipediaframe "Computer keyboard">> + +* [[Monkeytype|https://monkeytype.com/]] --- //The most customizable typing website with a minimalistic design and a ton of features. Test yourself in various modes, track your progress and improve your speed// --- <<[ "[[Git|https://github.com/monkeytypegame]]">> diff --git a/Wiki-OcttKB/tiddlers/Normal/_Linux.tid b/Wiki-OcttKB/tiddlers/Normal/_Linux.tid index ae590d3..369e011 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_Linux.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_Linux.tid @@ -1,7 +1,7 @@ created: 20230111153758951 creator: Octt icon: 🐧 -modified: 20230723225933475 +modified: 20230725113527726 modifier: Octt page-cover: https://images.unsplash.com/photo-1549605659-32d82da3a059?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D tags: $:/i18n:en Unix @@ -12,6 +12,7 @@ title: Linux !! ''Docs'' * [[The Linux Kernel documentation|https://docs.kernel.org/]] +* [[Embedded Linux Wiki|https://elinux.org/Main_Page]] !!! ''Manpages'' @@ -20,8 +21,6 @@ title: Linux !!! ''Misc'' -* [[Embedded Linux Wiki|https://elinux.org/Main_Page]] - * LDP (obsolete?) ** [[The Network Administrators' Guide|https://tldp.org/LDP/nag/]] @@ -30,12 +29,3 @@ title: Linux !!! ''Benchmarks'' * [[Paul Raspberry Pi Benchmarks|https://willy-tech.de/raspberry-pi-benchmarks/]] - -!! ''Tools'' - -* [[Flatpak|https://flatpak.org/]] --- //Linux application sandboxing and distribution framework// --- <<[# Git "https://github.com/flatpak">> <<[# "Dev Docs" "https://docs.flatpak.org/en/latest/">> -** [[Flathub|https://flathub.org/]] --- Official build and distribution service for Flatpak applications --- <<[ "[[Git|https://github.com/flathub]]">> -** <<RedditL r/flatpak/comments/m09ma4/save_flathub_runtime_and_sdk_as_local_flatpak "Save Flathub runtime and SDK as local Flatpak file bundle">> - -* [[Wine|https://www.winehq.org/]] --- //Compatibility layer for running Windows applications on POSIX-compliant systems// -** [[WineZGUI|https://github.com/fastrizwaan/WineZGUI]] --- //Wine GUI using Zenity - Play and Share!// --- <<#[ Flatpak "https://github.com/fastrizwaan/flatpak-wine">> diff --git a/Wiki-OcttKB/tiddlers/Normal/_Python.tid b/Wiki-OcttKB/tiddlers/Normal/_Python.tid index 8aeadb6..1946dc3 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_Python.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_Python.tid @@ -1,7 +1,7 @@ created: 20221110120605389 creator: Octt icon: 🐍 -modified: 20230307220831705 +modified: 20230725120134964 modifier: Octt page-cover: https://source.unsplash.com/random/?Python tags: Development $:/i18n:en @@ -9,10 +9,17 @@ title: Python [[Python|https://www.python.org]] is a high-level, general-purpose, dynamically-typed, and garbage-collected programming language, with an extensive standard library and mandatory-indentation style. -I hate that, while tab-indentation is practically supported by the interpreter, it's against the standard and linters/editors hate you if you use tabs instead of spaces. - <<^wikipediaframe Python>> -* [[PocketPy|https://pocketpy.dev/]] - //C++17 header-only Python interpreter for game engines.// - <<[ "[[Git|https://github.com/blueloveTH/pocketpy]]">> +I hate that, while tab-indentation is practically supported by the interpreter, it's against the standard and linters/editors hate you if you use tabs instead of spaces. +--- + +* [[PocketPy|https://pocketpy.dev/]] - //C++17 header-only Python interpreter for game engines.// - <<[ "[[Git|https://github.com/blueloveTH/pocketpy]]">> * [[Hex string to int|https://www.tutorialspoint.com/How-to-convert-hex-string-into-int-in-Python]] --- `int('6f637474', 16)`, `int('0x6f637474', 10)` + +!!! ''HTML things'' + +* [["html" std library|https://docs.python.org/3/library/html.html]], [[Beautiful Soup|https://www.crummy.com/software/BeautifulSoup/]] +* Escaping HTML: [[html.escape() in Python|https://www.educative.io/answers/what-is-htmlescape-in-python]], [[easiest way to escape HTML in Python|https://stackoverflow.com/questions/1061697/whats-the-easiest-way-to-escape-html-in-python]] +* Unescaping HTML: [[Decode HTML entities in Python string|https://stackoverflow.com/questions/2087370/decode-html-entities-in-python-string]] diff --git a/Wiki-OcttKB/tiddlers/Normal/_Shell scripting.tid b/Wiki-OcttKB/tiddlers/Normal/_Shell scripting.tid new file mode 100644 index 0000000..ec1d7e0 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/Normal/_Shell scripting.tid @@ -0,0 +1,13 @@ +created: 20230725113714725 +creator: Octt +modified: 20230725114401911 +modifier: Octt +tags: +title: Shell scripting + +<<^wikipediaframe "Shell scripting">> + +* Open URL from shell: +** Windows: `start <URL>` +** Linux desktop: `xdg-open <URL>` +** More: https://stackoverflow.com/questions/38147620/shell-script-to-open-a-url, https://askubuntu.com/questions/515947/how-do-i-open-an-url-from-a-bash-script diff --git a/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta b/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta index 39625b7..6fe071e 100644 --- a/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta +++ b/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta @@ -1,5 +1,5 @@ -created: 20230724223452251 +created: 20230725120306774 current-tiddler: GettingStarted -modified: 20230724223452251 +modified: 20230725120306774 title: $:/HistoryList type: application/json \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/_StoryList.tid b/Wiki-OcttKB/tiddlers/System/_StoryList.tid index 10f94b0..73cb33a 100644 --- a/Wiki-OcttKB/tiddlers/System/_StoryList.tid +++ b/Wiki-OcttKB/tiddlers/System/_StoryList.tid @@ -1,6 +1,6 @@ -created: 20230724215302476 +created: 20230725105917743 creator: Octt list: -modified: 20230724223420390 +modified: 20230725115843464 modifier: Octt title: $:/StoryList \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/_showeditpreview.tid b/Wiki-OcttKB/tiddlers/System/state/_showeditpreview.tid index 0b8b2a3..f877dd1 100644 --- a/Wiki-OcttKB/tiddlers/System/state/_showeditpreview.tid +++ b/Wiki-OcttKB/tiddlers/System/state/_showeditpreview.tid @@ -1,7 +1,7 @@ created: 20220920140732083 creator: Octt -modified: 20230724220304095 +modified: 20230725115551147 modifier: Octt title: $:/state/showeditpreview -yes \ No newline at end of file +no \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/_tab--2112689675.tid b/Wiki-OcttKB/tiddlers/System/state/_tab--2112689675.tid index eface06..2c174fc 100644 --- a/Wiki-OcttKB/tiddlers/System/state/_tab--2112689675.tid +++ b/Wiki-OcttKB/tiddlers/System/state/_tab--2112689675.tid @@ -1,7 +1,7 @@ created: 20220920090438306 creator: Octt -modified: 20230504092700382 +modified: 20230725105920958 modifier: Octt title: $:/state/tab--2112689675 -$:/core/ui/ControlPanel/Advanced \ No newline at end of file +$:/core/ui/ControlPanel/Basics \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/_tab-1749438307.tid b/Wiki-OcttKB/tiddlers/System/state/_tab-1749438307.tid index e540cae..d314cb1 100644 --- a/Wiki-OcttKB/tiddlers/System/state/_tab-1749438307.tid +++ b/Wiki-OcttKB/tiddlers/System/state/_tab-1749438307.tid @@ -1,7 +1,7 @@ created: 20220920090405977 creator: Octt -modified: 20230611175014432 +modified: 20230725105919326 modifier: Octt title: $:/state/tab-1749438307 -$:/core/ui/ControlPanel/Saving \ No newline at end of file +$:/core/ui/ControlPanel/Info \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/tab/_sidebar--595412856.tid b/Wiki-OcttKB/tiddlers/System/state/tab/_sidebar--595412856.tid index d94366b..11cec5b 100644 --- a/Wiki-OcttKB/tiddlers/System/state/tab/_sidebar--595412856.tid +++ b/Wiki-OcttKB/tiddlers/System/state/tab/_sidebar--595412856.tid @@ -1,7 +1,7 @@ created: 20220920092307479 creator: Octt -modified: 20230724223422140 +modified: 20230725114745075 modifier: Octt title: $:/state/tab/sidebar--595412856 -OcttKB/Index \ No newline at end of file +$:/core/ui/SideBar/Recent \ No newline at end of file