💾 Archived View for g.mikf.pl › gemlog › 2023-07-13-shellscripts.gmi captured on 2023-09-28 at 15:42:17. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-07-22)
-=-=-=-=-=-=-
7/13/23
Again, my basic scripts for managing my Gemini capsule.
I have been maining Windows. Because the drivers for the fingerprint sensor for my Matebook don't yet exist.
On 4/1 I wanted to make a fragmlog about some changes to my pwsh scripts. To the repo went
/fragmlog/2023-04-01-powershell--files/after_changes.ps1
/fragmlog/2023-04-01-powershell--files/before_changes.ps1
/fragmlog/2023-04-01-powershell--files/changes.ps1.diff
the last file contains ansi color escapes
The modifications were of
But this time I chose to use MobaXterm. So I could finally go for bash comfortably
I took the original
and wrote
#!/bin/bash pushd ~/g.mikf.pl/ date -d "$(grep "^## " tinylog.gmi | cut -c 4- | head -1)" \ +"# Mika Feiler%n=> tinylog.gmi %F Tinylog" \ > gemfeed-tinylog.gmi popd MKTEMP="$(mktemp)" && tar -C ~/g.mikf.pl/ --exclude ".[^/]*" -cvzf "$MKTEMP" . && { echo "$MKTEMP" >&2 sha256sum "$MKTEMP" & curl --oauth2-bearer "$(sh ~/.get_srht_token.sh)" \ -Fprotocol=GEMINI -Fcontent=@"$MKTEMP" \ 'https://pages.sr.ht/publish/g.mikf.pl' }
Seems awfully simple now, shame to post actually.
Had to install 'tar' package to have GNU tar instead of BusyBox that MobaXterm includes. To have the tar exclude work correctly.
Meantime, I have been experiencing frustration in relation to publishing html websites. The wysiwyg composers are no longer there, Seamonkey often has to be custom compiled. I swear if i continue using it i will at some point end up running it in steam-run on some NixOS someday.
I've been writing some stuff in markdown that will maybe get published as sites once i decide on the way to ssg it into a website. I've been thinking of ways to migrate my all-html wiki to a markup-plurality ssg.
I've often been thinking about posting here, to tinylog and fragmlog, stuff that usually can only go to one of my fedi accounts. But there is no feedback here, I can never know if I am being read at all.