From decc214216bf3235f5d4d9419a346f459f6715b7 Mon Sep 17 00:00:00 2001 From: octospacc Date: Thu, 17 Aug 2023 23:43:40 +0000 Subject: [PATCH] OcttKB Cross-Repo Sync (HTML to Raw) --- Wiki-OcttKB/tiddlers/Normal/Markdown/_en.tid | 8 -------- Wiki-OcttKB/tiddlers/Normal/XML/_en.tid | 8 -------- Wiki-OcttKB/tiddlers/Normal/_BBCode.tid | 19 +++++++++++++++++++ Wiki-OcttKB/tiddlers/Normal/_HTML.tid | 4 ++-- .../_Kernel postinst issue on Linux Mint.tid | 6 +++--- Wiki-OcttKB/tiddlers/Normal/_Markdown.tid | 8 ++++++++ Wiki-OcttKB/tiddlers/Normal/_Nginx.tid | 6 +++++- Wiki-OcttKB/tiddlers/Normal/_Wikitext.tid | 4 ++-- Wiki-OcttKB/tiddlers/Normal/_XML.tid | 8 ++++++++ Wiki-OcttKB/tiddlers/Normal/_XPath.tid | 8 ++++++++ .../tiddlers/System/Apps/_BBCodeAssembler.tid | 6 ++++++ .../System/Linux/Scripts/_UpdateEfiBoot.txt | 10 ++++++++++ .../Linux/Scripts/_UpdateEfiBoot.txt.meta | 7 +++++++ .../tiddlers/System/_HistoryList.json.meta | 4 ++-- Wiki-OcttKB/tiddlers/System/_StoryList.tid | 4 ++-- .../System/config/_RelinkOnRename.tid | 2 +- .../tiddlers/System/state/_sidebar.tid | 2 +- .../System/state/tab/_sidebar--595412856.tid | 4 ++-- .../state/toc/$/ToC-$/_Apps--1697730578.tid | 7 +++++++ .../state/toc/$/ToC-$/_Tools--1697730578.tid | 7 +++++++ .../System/state/tree/$/Apps/Dashboard/_.tid | 4 ++-- 21 files changed, 102 insertions(+), 34 deletions(-) delete mode 100644 Wiki-OcttKB/tiddlers/Normal/Markdown/_en.tid delete mode 100644 Wiki-OcttKB/tiddlers/Normal/XML/_en.tid create mode 100644 Wiki-OcttKB/tiddlers/Normal/_BBCode.tid create mode 100644 Wiki-OcttKB/tiddlers/Normal/_Markdown.tid create mode 100644 Wiki-OcttKB/tiddlers/Normal/_XML.tid create mode 100644 Wiki-OcttKB/tiddlers/Normal/_XPath.tid create mode 100644 Wiki-OcttKB/tiddlers/System/Apps/_BBCodeAssembler.tid create mode 100644 Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt create mode 100644 Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt.meta create mode 100644 Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Apps--1697730578.tid create mode 100644 Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Tools--1697730578.tid diff --git a/Wiki-OcttKB/tiddlers/Normal/Markdown/_en.tid b/Wiki-OcttKB/tiddlers/Normal/Markdown/_en.tid deleted file mode 100644 index 6fa0b6b..0000000 --- a/Wiki-OcttKB/tiddlers/Normal/Markdown/_en.tid +++ /dev/null @@ -1,8 +0,0 @@ -created: 20230202225920722 -creator: Octt -modified: 20230206111552196 -modifier: Octt -tags: $:/i18n:en -title: Markdown:en - -<> \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/Normal/XML/_en.tid b/Wiki-OcttKB/tiddlers/Normal/XML/_en.tid deleted file mode 100644 index ce1abee..0000000 --- a/Wiki-OcttKB/tiddlers/Normal/XML/_en.tid +++ /dev/null @@ -1,8 +0,0 @@ -created: 20230202225649145 -creator: Octt -modified: 20230206111552472 -modifier: Octt -tags: $:/i18n:en -title: XML:en - -<> \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/Normal/_BBCode.tid b/Wiki-OcttKB/tiddlers/Normal/_BBCode.tid new file mode 100644 index 0000000..720ffe2 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/Normal/_BBCode.tid @@ -0,0 +1,19 @@ +created: 20230817233039500 +creator: Octt +modified: 20230817234251775 +modifier: Octt +tags: Markup WIP +title: BBCode + +<<^wikipediaframe BBCode>> + +!!! ''Creation'' + +* Simple tag, without arguments: `[example]{TEXT}[/example]` +* Medium tag, with a standard argument: `[example={SIMPLETEXT}]{TEXT}[/example]` +* Complex tag, with (multiple) named arguments: `[example first={SIMPLETEXT} second={NUMBER}]{TEXT}[/example]` + +!!!! ''Advanced'' + +* Specifying multiple fields of the same type is done by prefixing the type with a number (e.g. `{TEXT1}`). +* Prefixing a field with `?` or `;optional` makes it optional on the user input side. \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/Normal/_HTML.tid b/Wiki-OcttKB/tiddlers/Normal/_HTML.tid index e890c72..f09bbac 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_HTML.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_HTML.tid @@ -1,10 +1,10 @@ created: 20230202224901337 creator: Octt icon: 📰 -modified: 20230221210547014 +modified: 20230817233127466 modifier: Octt page-cover: https://images.unsplash.com/photo-1517134062979-e1234be8a085 -tags: Web +tags: Web Markup title: HTML <<^WikipediaFrame HTML en>> diff --git a/Wiki-OcttKB/tiddlers/Normal/_Kernel postinst issue on Linux Mint.tid b/Wiki-OcttKB/tiddlers/Normal/_Kernel postinst issue on Linux Mint.tid index f9972ab..3b141c1 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_Kernel postinst issue on Linux Mint.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_Kernel postinst issue on Linux Mint.tid @@ -1,11 +1,11 @@ created: 20230816223835858 creator: Octt -modified: 20230816224928332 +modified: 20230817225824818 modifier: Octt tags: Linux title: Kernel postinst issue on Linux Mint -The other day I got my Linux Mint system not booting anymore. I suspected this was due to my custom script I placed in `/etc/kernel/postinst.d/` that is needed to copy the latest kernel in my EFI partition after an APT update, to allow boot via efistub bypassing grub. Maybe an unattended upgrade of my kernel failed. +The other day I got my Linux Mint system not booting anymore. I suspected this was due to [[my custom script|$:/Linux/Scripts/UpdateEfiBoot]] I placed in `/etc/kernel/postinst.d/` that is needed to copy the latest kernel in my EFI partition after an APT update, to allow boot via efistub bypassing grub. Maybe an unattended upgrade of my kernel failed. After manually fixing the EFI partition to boot again in the system, I tried manually to run `apt upgrade`, and saw that my postinst script threw an error due to not finding one of the files to copy from `/boot` to `/boot/efi`. @@ -22,4 +22,4 @@ zz-shim zz-update-grub ``` -This was ugly to fix since, as seen in this list, my distro's mantainers are geniuses and decided to get rid of numbers, and instead prefer to just use alphabetical ordered naming, falling back to ugly letter suffixes when that plan failed. I renamed my script from `UpdateEfiBoot` to `zzz-UpdateEfiBoot` and that fixed the issue. +This was ugly to fix since, as seen in this list, my distro's mantainers are geniuses and decided to get rid of numbers, and instead prefer to just use alphabetical ordered naming, falling back to ugly letter suffixes when that plan failed. I renamed my script from `UpdateEfiBoot` to `zzz-UpdateEfiBoot`, thus making it appear at the end of an alphabetical listing and sure enough that fixed the issue: running `apt upgrade` again completed the update without errors and my script did its job. diff --git a/Wiki-OcttKB/tiddlers/Normal/_Markdown.tid b/Wiki-OcttKB/tiddlers/Normal/_Markdown.tid new file mode 100644 index 0000000..895f6be --- /dev/null +++ b/Wiki-OcttKB/tiddlers/Normal/_Markdown.tid @@ -0,0 +1,8 @@ +created: 20230202225920722 +creator: Octt +modified: 20230817233028088 +modifier: Octt +tags: $:/i18n:en Markup WIP +title: Markdown + +<<^WikipediaFrame Markdown en>> \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/Normal/_Nginx.tid b/Wiki-OcttKB/tiddlers/Normal/_Nginx.tid index da3faaf..5a511a0 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_Nginx.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_Nginx.tid @@ -1,6 +1,6 @@ created: 20230207185112276 creator: Octt -modified: 20230723133217249 +modified: 20230817232253417 modifier: Octt tags: title: Nginx @@ -12,3 +12,7 @@ title: Nginx * [[agentzh's Nginx Tutorials (version 2020.03.19)|https://openresty.org/download/agentzh-nginx-tutorials-en.html]] * [[How to set up Nginx as a caching reverse proxy?|https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-reverse-proxy]] * Nginx reverse proxy + URL rewrite: [[most correct way and best practice is usually...|https://serverfault.com/a/870620]] +* [[If is Evil… when used in location context|https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/]] --- (always dangerous in locations, except when doing `return ...;` or `rewrite ... last;`) + +* [[Install more_set_headers in nginx for Debian-based distro|https://serverfault.com/questions/954708/install-more-set-headers-in-nginx-1-15-8]] --- `apt install nginx-extras`, keeping in mind that it will rewrite the nginx core package, so any active nginx daemon will crash and need to be restarted. +** Apparently all extra modules get enabled by default after this installation, and some might crash on some systems: if so, delete their symlinks from `/etc/nginx/modules-enabled`. diff --git a/Wiki-OcttKB/tiddlers/Normal/_Wikitext.tid b/Wiki-OcttKB/tiddlers/Normal/_Wikitext.tid index 6e4718d..724f51e 100644 --- a/Wiki-OcttKB/tiddlers/Normal/_Wikitext.tid +++ b/Wiki-OcttKB/tiddlers/Normal/_Wikitext.tid @@ -1,8 +1,8 @@ created: 20230112115019993 creator: Octt -modified: 20230724220338171 +modified: 20230817233116020 modifier: Octt -tags: TiddlyWiki MediaWiki $:/i18n:en +tags: TiddlyWiki MediaWiki $:/i18n:en Markup title: Wikitext <<^wikipediaframe "Help:Wikitext" en>> diff --git a/Wiki-OcttKB/tiddlers/Normal/_XML.tid b/Wiki-OcttKB/tiddlers/Normal/_XML.tid new file mode 100644 index 0000000..fbb3c09 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/Normal/_XML.tid @@ -0,0 +1,8 @@ +created: 20230202225649145 +creator: Octt +modified: 20230817233159210 +modifier: Octt +tags: $:/i18n:en Markup WIP +title: XML + +<<^WikipediaFrame XML en>> \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/Normal/_XPath.tid b/Wiki-OcttKB/tiddlers/Normal/_XPath.tid new file mode 100644 index 0000000..88e3bda --- /dev/null +++ b/Wiki-OcttKB/tiddlers/Normal/_XPath.tid @@ -0,0 +1,8 @@ +created: 20230817233205916 +creator: Octt +modified: 20230817233235394 +modifier: Octt +tags: XML WIP +title: XPath + +<<^wikipediaframe XPath>> \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/Apps/_BBCodeAssembler.tid b/Wiki-OcttKB/tiddlers/System/Apps/_BBCodeAssembler.tid new file mode 100644 index 0000000..11dbfa9 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/Apps/_BBCodeAssembler.tid @@ -0,0 +1,6 @@ +created: 20230817233331840 +creator: Octt +modified: 20230817233610503 +modifier: Octt +tags: $:/Apps +title: $:/Apps/BBCodeAssembler \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt b/Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt new file mode 100644 index 0000000..5d9c42c --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt @@ -0,0 +1,10 @@ +#!/bin/sh +# => /etc/kernel/postinst.d/zzz-UpdateEfiBoot +set -ex +cd /boot/efi + +cp ./vmlinuz.mint ./vmlinuz.mint.old +cp ./initrd.mint ./initrd.mint.old + +cp ../vmlinuz ./vmlinuz.mint +cp ../initrd.img ./initrd.mint diff --git a/Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt.meta b/Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt.meta new file mode 100644 index 0000000..1f4c711 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/Linux/Scripts/_UpdateEfiBoot.txt.meta @@ -0,0 +1,7 @@ +created: 20230817225535427 +creator: Octt +modified: 20230817225708513 +modifier: Octt +tags: +title: $:/Linux/Scripts/UpdateEfiBoot +type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta b/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta index e9cafee..0382455 100644 --- a/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta +++ b/Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta @@ -1,5 +1,5 @@ -created: 20230816230916467 +created: 20230817234334842 current-tiddler: GettingStarted -modified: 20230816230916467 +modified: 20230817234334842 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 1d2891c..54ac60f 100644 --- a/Wiki-OcttKB/tiddlers/System/_StoryList.tid +++ b/Wiki-OcttKB/tiddlers/System/_StoryList.tid @@ -1,6 +1,6 @@ -created: 20230816223632021 +created: 20230817140518847 creator: Octt list: -modified: 20230816230658515 +modified: 20230817233719568 modifier: Octt title: $:/StoryList \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/config/_RelinkOnRename.tid b/Wiki-OcttKB/tiddlers/System/config/_RelinkOnRename.tid index c0e9839..c38f1e1 100644 --- a/Wiki-OcttKB/tiddlers/System/config/_RelinkOnRename.tid +++ b/Wiki-OcttKB/tiddlers/System/config/_RelinkOnRename.tid @@ -1,6 +1,6 @@ created: 20220920160922870 creator: Octt -modified: 20230417103637996 +modified: 20230817233014551 modifier: Octt title: $:/config/RelinkOnRename diff --git a/Wiki-OcttKB/tiddlers/System/state/_sidebar.tid b/Wiki-OcttKB/tiddlers/System/state/_sidebar.tid index 354dc28..a877c5b 100644 --- a/Wiki-OcttKB/tiddlers/System/state/_sidebar.tid +++ b/Wiki-OcttKB/tiddlers/System/state/_sidebar.tid @@ -1,6 +1,6 @@ created: 20220920174307633 creator: Octt -modified: 20230723223418307 +modified: 20230817225838840 modifier: Octt title: $:/state/sidebar diff --git a/Wiki-OcttKB/tiddlers/System/state/tab/_sidebar--595412856.tid b/Wiki-OcttKB/tiddlers/System/state/tab/_sidebar--595412856.tid index 826dcf3..8896bea 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: 20230816230630105 +modified: 20230817233634606 modifier: Octt title: $:/state/tab/sidebar--595412856 -$:/core/ui/SideBar/More \ No newline at end of file +OcttKB/Index \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Apps--1697730578.tid b/Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Apps--1697730578.tid new file mode 100644 index 0000000..d8a6939 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Apps--1697730578.tid @@ -0,0 +1,7 @@ +created: 20230817233312379 +creator: Octt +modified: 20230817233334196 +modifier: Octt +title: $:/state/toc/$:/ToC-$:/Apps--1697730578 + +close \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Tools--1697730578.tid b/Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Tools--1697730578.tid new file mode 100644 index 0000000..8c9336a --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/state/toc/$/ToC-$/_Tools--1697730578.tid @@ -0,0 +1,7 @@ +created: 20230817233308156 +creator: Octt +modified: 20230817233311699 +modifier: Octt +title: $:/state/toc/$:/ToC-$:/Tools--1697730578 + +close \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/state/tree/$/Apps/Dashboard/_.tid b/Wiki-OcttKB/tiddlers/System/state/tree/$/Apps/Dashboard/_.tid index e88e866..71c720a 100644 --- a/Wiki-OcttKB/tiddlers/System/state/tree/$/Apps/Dashboard/_.tid +++ b/Wiki-OcttKB/tiddlers/System/state/tree/$/Apps/Dashboard/_.tid @@ -1,7 +1,7 @@ created: 20221109225836608 creator: Octt -modified: 20230225144041923 +modified: 20230817233316723 modifier: Octt title: $:/state/tree/$:/Apps/Dashboard/ -hide \ No newline at end of file +show \ No newline at end of file