From 885e2f7a60fb86b0b3bde575950f5c9d7c2df715 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 18 Dec 2024 23:29:14 +0200 Subject: Update content for html --- about/resources.html | 166 +++++++++++++++++++++++++-------------------------- gemfeed/atom.xml | 41 ++++++++++++- index.html | 2 +- uptime-stats.html | 2 +- 4 files changed, 124 insertions(+), 87 deletions(-) diff --git a/about/resources.html b/about/resources.html index 11eca64d..38ac4dc0 100644 --- a/about/resources.html +++ b/about/resources.html @@ -47,100 +47,100 @@ In random order:


Technical references



I didn't read them from the beginning to the end, but I am using them to look up things. The books are in random order:


Self-development and soft-skills books



In random order:


Here are notes of mine for some of the books

@@ -149,22 +149,22 @@ Some of these were in-person with exams; others were online learning lectures only. In random order:


Technical guides



@@ -182,24 +182,24 @@ In random order:


Podcasts I liked



I liked them but am not listening to them anymore. The podcasts have either "finished" (no more episodes) or I stopped listening to them due to time constraints or a shift in my interests.


@@ -208,17 +208,17 @@ This is a mix of tech and non-tech newsletters I am subscribed to. In random order:


Formal education



diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 4db13511..05bc3df2 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2024-12-15T18:50:02+02:00 + 2024-12-18T23:28:38+02:00 foo.zone feed To be in the .zone! @@ -20,7 +20,7 @@

Random Helix Themes



-Published at 2024-12-15T13:55:05+02:00
+Published at 2024-12-15T13:55:05+02:00; Last updated 2024-12-18

I thought it would be fun to have a random Helix theme every time I open a new shell. Helix is the text editor I use.

@@ -79,6 +79,43 @@ http://www.gnu.org/software/src-highlite --> [paul@earth] ~ %
+

A better version


+
+Update 2024-12-18: This is an improved version, which works cross platform (e.g., also on MacOS) and multiple theme directories:
+
+ +
export EDITOR=hx
+export VISUAL=$EDITOR
+export GIT_EDITOR=$EDITOR
+export HELIX_CONFIG_DIR=$HOME/.config/helix
+
+editor::helix::theme::get_random () {
+    for dir in $(hx --health \
+        | awk '/^Runtime directories/ { print $3 }' | tr ';' ' '); do
+        if [ -d $dir/themes ]; then
+            ls $dir/themes
+        fi
+    done | grep -F .toml | sort -R | head -n 1 | cut -d. -f1
+}
+
+editor::helix::theme::set () {
+    local -r theme="$1"; shift
+
+    local -r config_file=$HELIX_CONFIG_DIR/config.toml
+
+    sed "/^theme =/ { s/.*/theme = \"$theme\"/; }" \
+        $config_file > $config_file.tmp && 
+        mv $config_file.tmp $config_file
+}
+
+if [ -f $HELIX_CONFIG_DIR/config.toml ]; then
+    editor::helix::theme::set $(editor::helix::theme::get_random)
+fi
+
+
I hope you had some fun. E-Mail your comments to paul@nospam.buetow.org :-)

Back to the main site
diff --git a/index.html b/index.html index b4aa6bd4..a588b81e 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@

foo.zone



-This site was generated at 2024-12-18T10:02:53+02:00 by Gemtexter
+This site was generated at 2024-12-18T23:28:38+02:00 by Gemtexter

Welcome to the foo.zone. Everything you read on this site is my personal opinion and experience. You can call me a Linux/*BSD enthusiast and hobbyist. I mainly write about tech, IT, programming and sometimes also about self-improvement here. Note that this blog usually does not overlap with what I do at my day job as a Site Reliability Engineer.

diff --git a/uptime-stats.html b/uptime-stats.html index a5dd122c..d92271f0 100644 --- a/uptime-stats.html +++ b/uptime-stats.html @@ -10,7 +10,7 @@

My machine uptime stats



-This site was last updated at 2024-12-18T10:02:53+02:00
+This site was last updated at 2024-12-18T23:28:38+02:00

The following stats were collected via uptimed on all of my personal computers over many years and the output was generated by guprecords, the global uptime records stats analyser of mine.

-- cgit v1.2.3