-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OcttKB Cross-Repo Sync (HTML to Raw)
- Loading branch information
octospacc
committed
Dec 20, 2023
1 parent
009f2b3
commit b25cc0a
Showing
16 changed files
with
88 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
created: 20231220192251148 | ||
creator: Octt | ||
modified: 20231220192612107 | ||
modifier: Octt | ||
tags: | ||
title: Saved/Sites/Sysadmin | ||
|
||
Saved sites that are mainly about miscellaneous system administration (mainly devlogs, project showcases, or tips+tricks, and online tools). (Some are in other Saved pages and should be moved here.) | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
created: 20231104231609952 | ||
creator: Octt | ||
modified: 20231104231812092 | ||
modified: 20231220183517988 | ||
modifier: Octt | ||
tags: | ||
title: Data storage | ||
|
||
<<^wikipediaframe "Data storage">> | ||
|
||
* <<linkdescgit "f3 - Fight Flash Fraud" "https://fight-flash-fraud.readthedocs.io/en/stable/" "simple tool that tests flash cards capacity and performance to see if they live up to claimed specifications" "https://github.com/AltraMayor/f3">> | ||
* [[Storj|https://storj.io]] --- //Decentralized cloud object storage that is affordable, easy to use, private, and secure.// --- <<[# Git"https://github.com/storj">> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Wiki-OcttKB/tiddlers/System/OcttKB/Repo/_GitLab.CrossRepoSync.sh.txt.meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
created: 20230611200714094 | ||
creator: Octt | ||
modified: 20230611213201141 | ||
modified: 20231220190816419 | ||
modifier: Octt | ||
title: $:/OcttKB/Repo/GitLab.CrossRepoSync.sh | ||
type: text/plain |
48 changes: 48 additions & 0 deletions
48
Wiki-OcttKB/tiddlers/System/OcttKB/Repo/_WikiFileToFolder.sh.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/sh | ||
set -e # Exit on any error | ||
set -x # Echo all commands | ||
TargetWiki="$1" | ||
|
||
tiddlywiki \ | ||
--verbose \ | ||
--load "../${TargetWiki}.html" \ | ||
--output "./Wiki-${TargetWiki}" \ | ||
--savewikifolder "./Wiki-${TargetWiki}" | ||
|
||
cd "./Wiki-${TargetWiki}/tiddlers" | ||
|
||
for Dir in Normal System | ||
do mkdir -vp "../${Dir}" "../${Dir}.tmp" | ||
done | ||
|
||
mv \$__* ../System.tmp/ || true | ||
mv * ../Normal.tmp/ || true | ||
cd .. | ||
|
||
# Note: if the hell happens again, run: | ||
# find -type f -name .tid -exec sh -c 'OldFile="{}"; Ext="$(echo "${OldFile}" | rev | cut -d"." -f1 | rev)"; NewFile="$(echo "${OldFile}" | sed -e "s|_|/|g" | rev | cut -d"." -f2- | rev)_.${Ext}"; mv "${OldFile}" "${NewFile}"; ' \; | ||
|
||
for TypeDir in System Normal | ||
do | ||
cd "./${TypeDir}.tmp" | ||
for OldFile in * | ||
do | ||
NewPath="$(echo "${OldFile}" | sed -e 's|_|/|g')" | ||
NewName="$(basename "${NewPath}")" | ||
NewParent="$(echo "${NewPath}" | rev | cut -d"/" -f2- | rev)" | ||
{ [ "${NewPath}" = "${NewName}" ] && [ "${NewPath}" = "${NewParent}" ] ;} \ | ||
&& NewFile="_${NewPath}" \ | ||
|| NewFile="${NewParent}/_${NewName}" | ||
mkdir -p "../${TypeDir}/${NewFile}" | ||
rm -rf "../${TypeDir}/${NewFile}" | ||
mv "./${OldFile}" "../${TypeDir}/${NewFile}" | ||
done | ||
cd .. | ||
done | ||
|
||
mv ./System ./System.tmp/System | ||
mv ./System.tmp/System/\$ ./System | ||
mv ./System ./Normal ./tiddlers | ||
rm -rf ./System.tmp ./Normal.tmp | ||
|
||
cd .. |
6 changes: 6 additions & 0 deletions
6
Wiki-OcttKB/tiddlers/System/OcttKB/Repo/_WikiFileToFolder.sh.txt.meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
created: 20231220185529849 | ||
creator: Octt | ||
modified: 20231220191122279 | ||
modifier: Octt | ||
title: $:/OcttKB/Repo/WikiFileToFolder.sh | ||
type: text/plain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
created: 20231220005258685 | ||
created: 20231220200755642 | ||
current-tiddler: GettingStarted | ||
modified: 20231220005258685 | ||
modified: 20231220200755642 | ||
title: $:/HistoryList | ||
type: application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
created: 20231219155706359 | ||
created: 20231220200703107 | ||
creator: Octt | ||
list: | ||
modified: 20231220004850449 | ||
modified: 20231220200720061 | ||
modifier: Octt | ||
title: $:/StoryList |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
created: 20220920140732083 | ||
creator: Octt | ||
modified: 20231203235213426 | ||
modified: 20231220184116843 | ||
modifier: Octt | ||
title: $:/state/showeditpreview | ||
|
||
yes | ||
no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
created: 20221108155618185 | ||
creator: Octt | ||
modified: 20231107213421541 | ||
modified: 20231220183958793 | ||
modifier: Octt | ||
title: $:/state/tree/$:/Macros/ | ||
|
||
show | ||
hide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
created: 20230108193801573 | ||
creator: Octt | ||
modified: 20231107223043873 | ||
modified: 20231220183957474 | ||
modifier: Octt | ||
title: $:/state/tree/$:/Styles/ | ||
|
||
show | ||
hide |