From 8618529905d74ce738c9907b48a8bfb046844977 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 24 Aug 2024 19:42:39 +0300 Subject: Update content for gemtext --- ...3-08-18-site-reliability-engineering-part-1.gmi | 2 +- ...3-11-19-site-reliability-engineering-part-2.gmi | 4 +- ...4-01-09-site-reliability-engineering-part-3.gmi | 2 +- ...4-04-01-KISS-high-availability-with-OpenBSD.gmi | 29 +- ...-03-projects-i-currently-dont-have-time-for.gmi | 77 ++- .../2024-06-23-terminal-multiplexing-with-tmux.gmi | 41 +- gemfeed/atom.xml | 720 ++++++++++----------- index.gmi | 2 +- uptime-stats.gmi | 2 +- 9 files changed, 432 insertions(+), 447 deletions(-) diff --git a/gemfeed/2023-08-18-site-reliability-engineering-part-1.gmi b/gemfeed/2023-08-18-site-reliability-engineering-part-1.gmi index f28fbce8..25baf9ad 100644 --- a/gemfeed/2023-08-18-site-reliability-engineering-part-1.gmi +++ b/gemfeed/2023-08-18-site-reliability-engineering-part-1.gmi @@ -6,7 +6,7 @@ Being a Site Reliability Engineer (SRE) is like stepping into a lively, ever-evo => ./2023-08-18-site-reliability-engineering-part-1.gmi 2023-08-18 Site Reliability Engineering - Part 1: SRE and Organizational Culture (You are currently reading this) => ./2023-11-19-site-reliability-engineering-part-2.gmi 2023-11-19 Site Reliability Engineering - Part 2: Operational Balance in SRE -=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect +=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Side ``` ▓▓▓▓░░ diff --git a/gemfeed/2023-11-19-site-reliability-engineering-part-2.gmi b/gemfeed/2023-11-19-site-reliability-engineering-part-2.gmi index 04b82bb7..5205b4d8 100644 --- a/gemfeed/2023-11-19-site-reliability-engineering-part-2.gmi +++ b/gemfeed/2023-11-19-site-reliability-engineering-part-2.gmi @@ -6,7 +6,7 @@ This is the second part of my Site Reliability Engineering (SRE) series. I am cu => ./2023-08-18-site-reliability-engineering-part-1.gmi 2023-08-18 Site Reliability Engineering - Part 1: SRE and Organizational Culture => ./2023-11-19-site-reliability-engineering-part-2.gmi 2023-11-19 Site Reliability Engineering - Part 2: Operational Balance in SRE (You are currently reading this) -=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect +=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Side ``` ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣾⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ @@ -42,7 +42,7 @@ That all sounds pretty idealistic. The reality is that getting the perfect balan Continue with the third part of this series: -=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect +=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Side E-Mail your comments to `paul@nospam.buetow.org` :-) diff --git a/gemfeed/2024-01-09-site-reliability-engineering-part-3.gmi b/gemfeed/2024-01-09-site-reliability-engineering-part-3.gmi index cf297214..a04951b1 100644 --- a/gemfeed/2024-01-09-site-reliability-engineering-part-3.gmi +++ b/gemfeed/2024-01-09-site-reliability-engineering-part-3.gmi @@ -6,7 +6,7 @@ Welcome to Part 3 of my Site Reliability Engineering (SRE) series. I'm currently => ./2023-08-18-site-reliability-engineering-part-1.gmi 2023-08-18 Site Reliability Engineering - Part 1: SRE and Organizational Culture => ./2023-11-19-site-reliability-engineering-part-2.gmi 2023-11-19 Site Reliability Engineering - Part 2: Operational Balance in SRE -=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Aspect (You are currently reading this) +=> ./2024-01-09-site-reliability-engineering-part-3.gmi 2024-01-09 Site Reliability Engineering - Part 3: On-Call Culture and the Human Side (You are currently reading this) ``` ..--""""----.. diff --git a/gemfeed/2024-04-01-KISS-high-availability-with-OpenBSD.gmi b/gemfeed/2024-04-01-KISS-high-availability-with-OpenBSD.gmi index 656cd33e..ccfbd796 100644 --- a/gemfeed/2024-04-01-KISS-high-availability-with-OpenBSD.gmi +++ b/gemfeed/2024-04-01-KISS-high-availability-with-OpenBSD.gmi @@ -27,22 +27,19 @@ _____|_:_:_| (o)-(o) |_:_:_|--'`-. ,--. ksh under-water (((\'/ ``` -``` -Table of contents -================= - -KISS high-availability with OpenBSD - My auto-failover requirements - My HA solution - Only OpenBSD base installation required - Fairly cheap and geo-redundant - Failover time and split-brain - Failover support for multiple protocols - Let's encrypt TLS certificates - Monitoring - Rex automation - More HA -``` +## Table of Contents + +* ⇢ KISS high-availability with OpenBSD +* ⇢ ⇢ My auto-failover requirements +* ⇢ ⇢ My HA solution +* ⇢ ⇢ ⇢ Only OpenBSD base installation required +* ⇢ ⇢ ⇢ Fairly cheap and geo-redundant +* ⇢ ⇢ ⇢ Failover time and split-brain +* ⇢ ⇢ ⇢ Failover support for multiple protocols +* ⇢ ⇢ ⇢ Let's encrypt TLS certificates +* ⇢ ⇢ ⇢ Monitoring +* ⇢ ⇢ ⇢ Rex automation +* ⇢ ⇢ More HA I have always wanted a highly available setup for my personal websites. I could have used off-the-shelf hosting solutions or hosted my sites in an AWS S3 bucket. I have used technologies like (in unsorted and slightly unrelated order) BGP, LVS/IPVS, ldirectord, Pacemaker, STONITH, scripted VIP failover via ARP, heartbeat, heartbeat2, Corosync, keepalived, DRBD, and commercial F5 Load Balancers for high availability at work. diff --git a/gemfeed/2024-05-03-projects-i-currently-dont-have-time-for.gmi b/gemfeed/2024-05-03-projects-i-currently-dont-have-time-for.gmi index 6e12585c..480dd889 100644 --- a/gemfeed/2024-05-03-projects-i-currently-dont-have-time-for.gmi +++ b/gemfeed/2024-05-03-projects-i-currently-dont-have-time-for.gmi @@ -19,46 +19,43 @@ Art by Laura Brown Over the years, I have collected many ideas for my personal projects and noted them down. I am currently in the process of cleaning up all my notes and reviewing those ideas. I don’t have time for the ones listed here and won’t have any soon due to other commitments and personal projects. So, in order to "get rid of them" from my notes folder, I decided to simply put them in this blog post so that those ideas don't get lost. Maybe I will pick up one or another idea someday in the future, but for now, they are all put on ice in favor of other personal projects or family time. -``` -Table of contents -================= - -Projects I currently don't have time for - Introduction - Hardware projects I don't have time for - I use Arch, btw! - OpenBSD home router - Pi-Hole server - Infodash - Reading station - Retro station - Sound server - Project Freekat - Programming projects I don't have time for - CLI-HIVE - Enhanced KISS home photo albums - KISS file sync server with end-to-end encryption - A language that compiles to `bash` - A language that compiles to `sed` - Renovate VS-Sim - KISS ticketing system - A domain-specific language (DSL) for work - Self-hosting projects I don't have time for - My own Matrix server - Ampache music server - Librum eBook reader - Memos - Note-taking service - Bepasty server - Books I don't have time to read - Fluent Python - Programming Ruby - Peter F. Hamilton science fiction books - New websites I don't have time for - Create a "Why Raku Rox" site - Research projects I don't have time for - Project secure - CPU utilisation is all wrong -``` +## Table of Contents + +* ⇢ Projects I currently don't have time for +* ⇢ ⇢ Introduction +* ⇢ ⇢ Hardware projects I don't have time for +* ⇢ ⇢ ⇢ I use Arch, btw! +* ⇢ ⇢ ⇢ OpenBSD home router +* ⇢ ⇢ ⇢ Pi-Hole server +* ⇢ ⇢ ⇢ Infodash +* ⇢ ⇢ ⇢ Reading station +* ⇢ ⇢ ⇢ Retro station +* ⇢ ⇢ ⇢ Sound server +* ⇢ ⇢ ⇢ Project Freekat +* ⇢ ⇢ Programming projects I don't have time for +* ⇢ ⇢ ⇢ CLI-HIVE +* ⇢ ⇢ ⇢ Enhanced KISS home photo albums +* ⇢ ⇢ ⇢ KISS file sync server with end-to-end encryption +* ⇢ ⇢ ⇢ A language that compiles to `bash` +* ⇢ ⇢ ⇢ A language that compiles to `sed` +* ⇢ ⇢ ⇢ Renovate VS-Sim +* ⇢ ⇢ ⇢ KISS ticketing system +* ⇢ ⇢ ⇢ A domain-specific language (DSL) for work +* ⇢ ⇢ Self-hosting projects I don't have time for +* ⇢ ⇢ ⇢ My own Matrix server +* ⇢ ⇢ ⇢ Ampache music server +* ⇢ ⇢ ⇢ Librum eBook reader +* ⇢ ⇢ ⇢ Memos - Note-taking service +* ⇢ ⇢ ⇢ Bepasty server +* ⇢ ⇢ Books I don't have time to read +* ⇢ ⇢ ⇢ Fluent Python +* ⇢ ⇢ ⇢ Programming Ruby +* ⇢ ⇢ ⇢ Peter F. Hamilton science fiction books +* ⇢ ⇢ New websites I don't have time for +* ⇢ ⇢ ⇢ Create a "Why Raku Rox" site +* ⇢ ⇢ Research projects I don't have time for +* ⇢ ⇢ ⇢ Project secure +* ⇢ ⇢ ⇢ CPU utilisation is all wrong ## Hardware projects I don't have time for diff --git a/gemfeed/2024-06-23-terminal-multiplexing-with-tmux.gmi b/gemfeed/2024-06-23-terminal-multiplexing-with-tmux.gmi index 42f01cb5..ff6b266d 100644 --- a/gemfeed/2024-06-23-terminal-multiplexing-with-tmux.gmi +++ b/gemfeed/2024-06-23-terminal-multiplexing-with-tmux.gmi @@ -14,28 +14,25 @@ jgs `-=========-`() mod. by Paul B. ``` -``` -Table of contents -================= - -Terminal multiplexing with `tmux` - Introduction - Shell aliases - The `tn` alias - Creating a new session - Cleaning up default sessions automatically - Renaming sessions - The `ta` alias - Attaching to a session - The `tr` alias - For a nested remote session - Change of the Tmux prefix for better nesting - The `ts` alias - Searching sessions with fuzzy finder - The `tssh` alias - Cluster SSH replacement - The `tmux::tssh_from_argument` helper - The `tmux::tssh_from_file` helper - `tssh` examples - Common Tmux commands I use in `tssh` - Copy and paste workflow - Tmux configurations -``` +## Table of Contents + +* ⇢ Terminal multiplexing with `tmux` +* ⇢ ⇢ Introduction +* ⇢ ⇢ Shell aliases +* ⇢ ⇢ The `tn` alias - Creating a new session +* ⇢ ⇢ ⇢ Cleaning up default sessions automatically +* ⇢ ⇢ ⇢ Renaming sessions +* ⇢ ⇢ The `ta` alias - Attaching to a session +* ⇢ ⇢ The `tr` alias - For a nested remote session +* ⇢ ⇢ ⇢ Change of the Tmux prefix for better nesting +* ⇢ ⇢ The `ts` alias - Searching sessions with fuzzy finder +* ⇢ ⇢ The `tssh` alias - Cluster SSH replacement +* ⇢ ⇢ ⇢ The `tmux::tssh_from_argument` helper +* ⇢ ⇢ ⇢ The `tmux::tssh_from_file` helper +* ⇢ ⇢ ⇢ `tssh` examples +* ⇢ ⇢ ⇢ Common Tmux commands I use in `tssh` +* ⇢ ⇢ Copy and paste workflow +* ⇢ ⇢ Tmux configurations ## Introduction diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index e3c37f82..abcc982a 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2024-08-18T22:23:22+03:00 + 2024-08-24T19:37:43+03:00 foo.zone feed To be in the .zone! @@ -234,7 +234,7 @@ These are my personal takeaways after reading 'The Stoic Challenge: A Philosopher's Guide to Becoming Tougher, Calmer, and More Resilient' by William B. Irvine.
-

"The Stoic Challenge" book notes


+

"The Stoic Challenge" book notes



Published at 2024-07-07T12:46:55+03:00

@@ -262,7 +262,7 @@
Stoics are thankful that they are mortal. As then you can get reminded of how great it is to be alive at all. In dying we are more alive we have ever been as every thing you do could be the last time you do it. Rather than fighting your death you should embrace it if there are no workarounds. Embrace a good death.

-

Negative visualization


+

Negative visualization



It is easy what we have to take for granted.

@@ -272,7 +272,7 @@
  • Now close your eyes for a minute and imagine you would be blind, so that you will never be able to experience the world again and let it sink in. When you open your eyes again you will feel a lot of gratefulness.
  • Last time meditation. Lets you appreciate the life as it is now. Life gets vitalised again.

  • -

    Oh, nice trick, you stoic "god"! ;-)


    +

    Oh, nice trick, you stoic "god"! ;-)



    Take setbacks as a challenge. Also take it with some humor.

    @@ -671,10 +671,10 @@ r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\ Paul Buetow aka snonux paul@dev.buetow.org - Table of contents + Tmux (Terminal Multiplexer) is a powerful, terminal-based tool that manages multiple terminal sessions within a single window. Here are some of its primary features and functionalities:
    -

    Terminal multiplexing with tmux


    +

    Terminal multiplexing with tmux



    Published at 2024-06-23T22:41:59+03:00

    @@ -690,30 +690,28 @@ jgs `-=========-`() mod. by Paul B.
    -
    -Table of contents
    -=================
    -
    -Terminal multiplexing with `tmux`
    -    Introduction
    -    Shell aliases
    -    The `tn` alias - Creating a new session
    -        Cleaning up default sessions automatically
    -        Renaming sessions
    -    The `ta` alias - Attaching to a session
    -    The `tr` alias - For a nested remote session
    -        Change of the Tmux prefix for better nesting
    -    The `ts` alias - Searching sessions with fuzzy finder
    -    The `tssh` alias - Cluster SSH replacement
    -        The `tmux::tssh_from_argument` helper
    -        The `tmux::tssh_from_file` helper
    -        `tssh` examples
    -        Common Tmux commands I use in `tssh`
    -    Copy and paste workflow
    -    Tmux configurations
    -
    +

    Table of Contents



    -

    Introduction


    +
    +

    Introduction



    Tmux (Terminal Multiplexer) is a powerful, terminal-based tool that manages multiple terminal sessions within a single window. Here are some of its primary features and functionalities:

    @@ -739,7 +737,7 @@ Terminal multiplexing with `tmux`
    Tmux is highly configurable, and I think I am only scratching the surface of what is possible with it. Nevertheless, it may still be useful for you. I also love that Tmux is part of the OpenBSD base system!

    -

    Shell aliases


    +

    Shell aliases



    I am a user of the Z-Shell (zsh), but I believe all the snippets mentioned in this blog post also work with Bash.

    @@ -764,7 +762,7 @@ http://www.gnu.org/software/src-highlite -->
    The first two are pretty straightforward. tm is simply a shorthand for tmux, so I have to type less, and tl lists all Tmux sessions that are currently open. No magic here.

    -

    The tn alias - Creating a new session


    +

    The tn alias - Creating a new session



    The tn alias is referencing this function:

    @@ -795,7 +793,7 @@ http://www.gnu.org/software/src-highlite -->
    First, a Tmux session name can be passed to the function as a first argument. That session name is only optional. Without it, Tmux will select a session named T$($date +%s) as a default. Which is T followed by the UNIX epoch, e.g. T1717133796.

    -

    Cleaning up default sessions automatically


    +

    Cleaning up default sessions automatically



    Note also the call to tmux::cleanup_default; it would clean up all already opened default sessions if they aren't attached. Those sessions were only temporary, and I had too many flying around after a while. So, I decided to auto-delete the sessions if they weren't attached. If I want to keep sessions around, I will rename them with the Tmux command prefix-key $. This is the cleanup function:

    @@ -815,11 +813,11 @@ http://www.gnu.org/software/src-highlite -->
    The cleanup function kills all open Tmux sessions that haven't been renamed properly yet—but only if they aren't attached (e.g., don't run in the foreground in any terminal). Cleaning them up automatically keeps my Tmux sessions as neat and tidy as possible.

    -

    Renaming sessions


    +

    Renaming sessions



    Whenever I am in a temporary session (named T....), I may decide that I want to keep this session around. I have to rename the session to prevent the cleanup function from doing its thing. That's, as mentioned already, easily accomplished with the standard prefix-key $ Tmux command.

    -

    The ta alias - Attaching to a session


    +

    The ta alias - Attaching to a session



    This alias refers to the following function, which tries to attach to an already-running Tmux session.

    @@ -841,7 +839,7 @@ http://www.gnu.org/software/src-highlite -->
    If no session is specified (as the argument of the function), it will try to attach to the first open session. If no Tmux server is running, it will create a new one with tmux::new. Otherwise, with a session name given as the argument, it will attach to it. If unsuccessful (e.g., the session doesn't exist), it will be created and attached to.

    -

    The tr alias - For a nested remote session


    +

    The tr alias - For a nested remote session



    This SSHs into the remote server specified and then, remotely on the server itself, starts a nested Tmux session. So we have one Tmux session on the local computer and, inside of it, an SSH connection to a remote server with a Tmux session running again. The benefit of this is that, in case my network connection breaks down, the next time I connect, I can continue my work on the remote server exactly where I left off. The session name is the name of the server being SSHed into. If a session like this already exists, it simply attaches to it.

    @@ -857,7 +855,7 @@ http://www.gnu.org/software/src-highlite --> alias tr=tmux::remote
    -

    Change of the Tmux prefix for better nesting


    +

    Change of the Tmux prefix for better nesting



    To make nested Tmux sessions work smoothly, one must change the Tmux prefix key locally or remotely. By default, the Tmux prefix key is Ctrl-b, so Ctrl-b $, for example, renames the current session. To change the prefix key from the standard Ctrl-b to, for example, Ctrl-g, you must add this to the tmux.conf:

    @@ -869,7 +867,7 @@ set-option -g prefix C-g
    There might also be another way around this (without reconfiguring the prefix key), but that is cumbersome to use, as far as I remember.

    -

    The ts alias - Searching sessions with fuzzy finder


    +

    The ts alias - Searching sessions with fuzzy finder



    Despite the fact that with tmux::cleanup_default, I don't leave a huge mess with trillions of Tmux sessions flying around all the time, at times, it can become challenging to find exactly the session I am currently interested in. After a busy workday, I often end up with around twenty sessions on my laptop. This is where fuzzy searching for session names comes in handy, as I often don't remember the exact session names.

    @@ -894,7 +892,7 @@ http://www.gnu.org/software/src-highlite -->
    Tmux session fuzzy finder

    -

    The tssh alias - Cluster SSH replacement


    +

    The tssh alias - Cluster SSH replacement



    Before I used Tmux, I was a heavy user of ClusterSSH, which allowed me to log in to multiple servers at once in a single terminal window and type and run commands on all of them in parallel.

    @@ -925,7 +923,7 @@ http://www.gnu.org/software/src-highlite -->
    This function is just a wrapper around the more complex tmux::tssh_from_file and tmux::tssh_from_argument functions, as you have learned already. Most of the magic happens there.

    -

    The tmux::tssh_from_argument helper


    +

    The tmux::tssh_from_argument helper



    This is the most magic helper function we will cover in this post. It looks like this:

    @@ -961,7 +959,7 @@ bind-key p setw synchronize-panes off bind-key P setw synchronize-panes on
    -

    The tmux::tssh_from_file helper


    +

    The tmux::tssh_from_file helper



    This one sets the session name to the file name and then reads a list of servers from that file, passing the list of servers to tmux::tssh_from_argument as the arguments. So, this is a neat little wrapper that also enables me to open clustered SSH sessions from an input file.

    @@ -977,7 +975,7 @@ http://www.gnu.org/software/src-highlite --> }
    -

    tssh examples


    +

    tssh examples



    To open a new session named fish and log in to 4 remote hosts, run this command (Note that it is also possible to specify the remote user):

    @@ -992,7 +990,7 @@ $ tssh fish blowfish.buetow.org fishfinger.buetow.org \ $ tssh manyservers.txt
    -

    Common Tmux commands I use in tssh


    +

    Common Tmux commands I use in tssh



    These are default Tmux commands that I make heavy use of in a tssh session:

    @@ -1001,7 +999,7 @@ $ tssh manyservers.txt
  • Press prefix-key <space> to change the pane layout (can be pressed multiple times to cycle through them).
  • Press prefix-key z to zoom in and out of the current active pane.

  • -

    Copy and paste workflow


    +

    Copy and paste workflow



    As you will see later in this blog post, I have configured a history limit of 1 million items in Tmux so that I can scroll back quite far. One main workflow of mine is to search for text in the Tmux history, select and copy it, and then switch to another window or session and paste it there (e.g., into my text editor to do something with it).

    @@ -1020,7 +1018,7 @@ bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
    Once the text is yanked, I switch to another Tmux window or session where, for example, a text editor is running and paste the yanked text from Tmux into the editor with prefix-key ]. Note that when pasting into a modal text editor like Vi or Helix, you would first need to enter insert mode before prefix-key ] would paste anything.

    -

    Tmux configurations


    +

    Tmux configurations



    Some features I have configured directly in Tmux don't require an external shell alias to function correctly. Let's walk line by line through my local ~/.config/tmux/tmux.conf:

    @@ -1113,7 +1111,7 @@ bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf re Art by Laura Brown
    -

    Projects I currently don't have time for


    +

    Projects I currently don't have time for



    Published at 2024-05-03T16:23:03+03:00

    @@ -1130,58 +1128,56 @@ Art by Laura Brown
    -

    Introduction


    +

    Introduction



    Over the years, I have collected many ideas for my personal projects and noted them down. I am currently in the process of cleaning up all my notes and reviewing those ideas. I don’t have time for the ones listed here and won’t have any soon due to other commitments and personal projects. So, in order to "get rid of them" from my notes folder, I decided to simply put them in this blog post so that those ideas don't get lost. Maybe I will pick up one or another idea someday in the future, but for now, they are all put on ice in favor of other personal projects or family time.

    -
    -Table of contents
    -=================
    -
    -Projects I currently don't have time for
    -    Introduction
    -    Hardware projects I don't have time for
    -        I use Arch, btw!
    -        OpenBSD home router
    -        Pi-Hole server
    -        Infodash
    -        Reading station
    -        Retro station
    -        Sound server
    -        Project Freekat
    -    Programming projects I don't have time for
    -        CLI-HIVE
    -        Enhanced KISS home photo albums
    -        KISS file sync server with end-to-end encryption
    -        A language that compiles to `bash`
    -        A language that compiles to `sed`
    -        Renovate VS-Sim
    -        KISS ticketing system
    -        A domain-specific language (DSL) for work
    -    Self-hosting projects I don't have time for
    -        My own Matrix server
    -        Ampache music server
    -        Librum eBook reader
    -        Memos - Note-taking service
    -        Bepasty server
    -    Books I don't have time to read
    -        Fluent Python
    -        Programming Ruby
    -        Peter F. Hamilton science fiction books
    -    New websites I don't have time for
    -        Create a "Why Raku Rox" site
    -    Research projects I don't have time for
    -        Project secure
    -        CPU utilisation is all wrong
    -
    -
    -

    Hardware projects I don't have time for


    -
    -

    I use Arch, btw!


    +

    Table of Contents


    +
    +
    +

    Hardware projects I don't have time for


    +
    +

    I use Arch, btw!



    The idea was to build the ultimate Arch Linux setup on an old ThinkPad X200 booting with the open-source LibreBoot firmware, complete with a tiling window manager, dmenu, and all the elite tools. This is mainly for fun, as I am pretty happy (and productive) with my Fedora Linux setup. I ran EndeavourOS (close enough to Arch) on an old ThinkPad for a while, but then I switched back to Fedora because the rolling releases were annoying (there were too many updates).

    -

    OpenBSD home router


    +

    OpenBSD home router



    In my student days, I operated a 486DX PC with OpenBSD as my home DSL internet router. I bought the setup from my brother back then. The router's hostname was fishbone, and it performed very well until it became too slow for larger broadband bandwidth after a few years of use.

    @@ -1196,23 +1192,23 @@ Projects I currently don't have time for
    https://OpenWRT.org/

    -

    Pi-Hole server


    +

    Pi-Hole server



    Install Pi-hole on one of my Pis or run it in a container on Freekat. For now, I am putting this on hold as the primary use for this would be ad-blocking, and I am avoiding surfing ad-heavy sites anyway. So there's no significant use for me personally at the moment.

    https://pi-hole.net/

    -

    Infodash


    +

    Infodash



    The idea was to implement my smart info screen using purely open-source software. It would display information such as the health status of my personal infrastructure, my current work tracker balance (I track how much I work to prevent overworking), and my sports balance (I track my workouts to stay within my quotas for general health). The information would be displayed on a small screen in my home office, on my Pine watch, or remotely from any terminal window.

    I don't have this, and I haven't missed having it, so I guess it would have been nice to have it but not provide any value other than the "fun of tinkering."

    -

    Reading station


    +

    Reading station



    I wanted to create the most comfortable setup possible for reading digital notes, articles, and books. This would include a comfy armchair, a silent barebone PC or Raspberry Pi computer running either Linux or *BSD, and an e-Ink display mounted on a flexible arm/stand. There would also be a small table for my paper journal for occasional note-taking. There are a bunch of open-source software available for PDF and ePub reading. It would have been neat, but I am currently using the most straightforward solution: a Kobo Elipsa 2E, which I can use on my sofa.

    -

    Retro station


    +

    Retro station



    I had an idea to build a computer infused with retro elements. It wouldn't use actual retro hardware but would look and feel like a retro machine. I would call this machine HAL or Retron.

    @@ -1224,14 +1220,14 @@ Projects I currently don't have time for
    The computer would occasionally be used to surf the Gemini space, take notes, blog, or do light coding. However, I have abandoned the project for now because there isn't enough space in my apartment, as my daughter will have a room for herself.

    -

    Sound server


    +

    Sound server



    My idea involved using a barebone mini PC running FreeBSD with the Navidrome sound server software. I could remotely connect to it from my phone, workstation/laptop to listen to my music collection. The storage would be based on ZFS with at least two drives for redundancy. The app would run in a Linux Docker container under FreeBSD via Bhyve.

    https://github.com/navidrome/navidrome
    https://wiki.freebsd.org/bhyve

    -

    Project Freekat


    +

    Project Freekat



    My idea involved purchasing the Meerkat mini PC from System76 and installing FreeBSD. Like the sound-server idea (see previous idea), it would run Linux Docker through Bhyve. I would self-host a bunch of applications on it:

    @@ -1255,15 +1251,15 @@ Projects I currently don't have time for
    My personal AWS setup

    -

    Programming projects I don't have time for


    +

    Programming projects I don't have time for



    -

    CLI-HIVE


    +

    CLI-HIVE



    This was a pet project idea that my brother and I had. The concept was to collect all shell history of all servers at work in a central place, apply ML/AI, and return suggestions for commands to type or allow a fuzzy search on all the commands in the history. The recommendations for the commands on a server could be context-based (e.g., past occurrences on the same server type).

    You could decide whether to share your command history with others so they would receive better suggestions depending on which server they are on, or you could keep all the history private and secure. The plan was to add hooks into zsh and bash shells so that all commands typed would be pushed to the central location for data mining.

    -

    Enhanced KISS home photo albums


    +

    Enhanced KISS home photo albums



    I don't use third-party cloud providers such as Google Photos to store/archive my photos. Instead, they are all on a ZFS volume on my home NAS, with regular offsite backups taken. Thus, my project would involve implementing the features I miss most or finding a solution simple enough to host on my LAN:

    @@ -1275,7 +1271,7 @@ Projects I currently don't have time for
    KISS static web photo albums with photoalbum.sh

    -

    KISS file sync server with end-to-end encryption


    +

    KISS file sync server with end-to-end encryption



    I aimed to have a simple server to which I could sync notes and other documents, ensuring that the data is fully end-to-end encrypted. This way, only the clients could decrypt the data, while an encrypted copy of all the data would be stored on the server side. There are a few solutions (e.g., NextCloud), but they are bloated or complex to set up.

    @@ -1285,7 +1281,7 @@ Projects I currently don't have time for
    I also had the idea of using this as a pet project for work and naming it Cryptolake, utilizing post-quantum-safe encryption algorithms and a distributed data store.

    -

    A language that compiles to bash


    +

    A language that compiles to bash



    I had an idea to implement a higher-level language with strong typing that could be compiled into native Bash code. This would make all resulting Bash scripts more robust and secure by default. The project would involve developing a parser, lexer, and a Bash code generator. I planned to implement this in Go.

    @@ -1293,11 +1289,11 @@ Projects I currently don't have time for
    The Fype Programming Language

    -

    A language that compiles to sed


    +

    A language that compiles to sed



    This is similar to the previous idea, but the difference is that the language would compile into a sed script. Sed has many features, but the brief syntax makes scripts challenging to read. The higher-level language would mimic sed but in a form that is easier for humans to read.

    -

    Renovate VS-Sim


    +

    Renovate VS-Sim



    VS-Sim is an open-source simulator programmed in Java for distributed systems. VS-Sim stands for "Verteilte Systeme Simulator," the German translation for "Distributed Systems Simulator." The VS-Sim project was my diploma thesis at Aachen University of Applied Sciences.

    @@ -1313,13 +1309,13 @@ Projects I currently don't have time for
    I have put this project on hold for now, as I want to do more things in Go and fewer in Java in my personal time.

    -

    KISS ticketing system


    +

    KISS ticketing system



    My idea was to program a KISS (Keep It Simple, Stupid) ticketing system for my personal use. However, I am abandoning this project because I now use the excellent Taskwarrior software. You can learn more about it at:

    https://taskwarrior.org/

    -

    A domain-specific language (DSL) for work


    +

    A domain-specific language (DSL) for work



    At work, an internal service allocates storage space for our customers on our storage clusters. It automates many tasks, but many tweaks are accessible through APIs. I had the idea to implement a Ruby-based DSL that would make using all those APIs for ad-hoc changes effortless, e.g.:

    @@ -1339,19 +1335,19 @@ http://www.gnu.org/software/src-highlite -->
    Creative universe (Work pet project contests)

    -

    Self-hosting projects I don't have time for


    +

    Self-hosting projects I don't have time for



    -

    My own Matrix server


    +

    My own Matrix server



    I value privacy. It would be great to run my own Matrix server for communication within my family. I have yet to have time to look into this more closely.

    https://matrix.org

    -

    Ampache music server


    +

    Ampache music server



    Ampache is an open-source music streaming server that allows you to host and manage your music collection online, accessible via a web interface. Setting it up involves configuring a web server, installing Ampache, and organising your music files, which can be time-consuming.

    -

    Librum eBook reader


    +

    Librum eBook reader



    Librum is a self-hostable e-book reader that allows users to manage and read their e-book collection from a web interface. Designed to be a self-contained platform where users can upload, organise, and access their e-books, Librum emphasises privacy and control over one's digital library.

    @@ -1359,7 +1355,7 @@ http://www.gnu.org/software/src-highlite -->
    I am using my Kobo devices or my laptop to read these kinds of things for now.

    -

    Memos - Note-taking service


    +

    Memos - Note-taking service



    Memos is a note-taking service that simplifies and streamlines information capture and organisation. It focuses on providing users with a minimalistic and intuitive interface, aiming to enhance productivity without the clutter commonly associated with more complex note-taking apps.

    @@ -1367,27 +1363,27 @@ http://www.gnu.org/software/src-highlite -->
    I am abandoning this idea for now, as I am currently using plain Markdown files for notes and syncing them with Syncthing across my devices.

    -

    Bepasty server


    +

    Bepasty server



    Bepasty is like a Pastebin for all kinds of files (text, image, audio, video, documents, binary, etc.). It seems very neat, but I only share a little nowadays. When I do, I upload files via SCP to one of my OpenBSD VMs and serve them via vanilla httpd there, keeping it KISS.

    https://github.com/bepasty/bepasty-server

    -

    Books I don't have time to read


    +

    Books I don't have time to read



    -

    Fluent Python


    +

    Fluent Python



    I consider myself an advanced programmer in Ruby, Bash, and Perl. However, Python seems to be ubiquitous nowadays, and most of my colleagues prefer Python over any other languages. Thus, it makes sense for me to also learn and use Python. After conducting some research, "Fluent Python" appears to be the best book for this purpose.

    I don't have time to read this book at the moment, as I am focusing more on Go (Golang) and I know just enough Python to get by (e.g., for code reviews). Additionally, there are still enough colleagues around who can review my Ruby or Bash code.

    -

    Programming Ruby


    +

    Programming Ruby



    I've read a couple of Ruby books already, but "Programming Ruby," which covers up to Ruby 3.2, was just recently released. I would like to read this to deepen my Ruby knowledge further and to revisit some concepts that I may have forgotten.

    As stated in this blog post, I am currently more eager to focus on Go, so I've put the Ruby book on hold. Additionally, there wouldn't be enough colleagues who could "understand" my advanced Ruby skills anyway, as most of them are either Java developers or SREs who don't code a lot.

    -

    Peter F. Hamilton science fiction books


    +

    Peter F. Hamilton science fiction books



    I am a big fan of science fiction, but my reading list is currently too long anyway. So, I've put the Hamilton books on the back burner for now. You can see all the novels I've read here:

    @@ -1395,9 +1391,9 @@ http://www.gnu.org/software/src-highlite --> gemini://paul.buetow.org/novels.gmi


    -

    New websites I don't have time for


    +

    New websites I don't have time for



    -

    Create a "Why Raku Rox" site


    +

    Create a "Why Raku Rox" site



    The website "Why Raku Rox" would showcase the unique features and benefits of the Raku programming language and highlight why it is an exceptional choice for developers. Raku, originally known as Perl 6, is a dynamic, expressive language designed for flexible and powerful software development.

    @@ -1408,9 +1404,9 @@ http://www.gnu.org/software/src-highlite -->
    I am not working on this for now, as I currently don’t even have time to program in Raku.

    -

    Research projects I don't have time for


    +

    Research projects I don't have time for



    -

    Project secure


    +

    Project secure



    For work: Implement a PoC that dumps Java heaps to extract secrets from memory. Based on the findings, write a Java program that encrypts secrets in the kernel using the memfd_secret() syscall to make it even more secure.

    @@ -1418,7 +1414,7 @@ http://www.gnu.org/software/src-highlite -->
    Due to other priorities, I am putting this on hold for now. The software we have built is pretty damn secure already!

    -

    CPU utilisation is all wrong


    +

    CPU utilisation is all wrong



    This research project, based on Brendan Gregg's blog post, could potentially significantly impact my work.

    @@ -1448,7 +1444,7 @@ http://www.gnu.org/software/src-highlite --> These are my personal takeaways after reading 'Slow Productivity - The lost Art of Accomplishment Without Burnout' by Cal Newport.
    -

    "Slow Productivity" book notes


    +

    "Slow Productivity" book notes



    Published at 2024-04-27T14:18:51+03:00

    @@ -1472,7 +1468,7 @@ http://www.gnu.org/software/src-highlite -->
    "Slow productivity" does not mean being less productive. Cal Newport wants to point out that you can be much more productive with "slow productivity" than you would be without it. It is a different way of working than most of us are used to in the modern workplace, which is hyper-connected and always online.

    -

    Pseudo-productivity and Shallow work


    +

    Pseudo-productivity and Shallow work



    People use visible activity instead of real productivity because it's easier to measure. This is called pseudo-productivity.
    Pseudo-productivity is used as a proxy for real productivity. If you don't look busy, you are dismissed as lazy or lacking a work ethic.
    @@ -1481,7 +1477,7 @@ http://www.gnu.org/software/src-highlite -->
    Shallow work usually doesn't help you to accomplish big things. Always have the big picture in mind. Shallow work can't be entirely eliminated, but it can be managed—for example, plan dedicated time slots for certain types of shallow work.

    -

    Accomplishments without burnout


    +

    Accomplishments without burnout



    The overall perception is that if you want to accomplish something, you must put yourself on the verge of burnout. Cal Newport writes about "The lost Art of Accomplishments without Burnouts", where you can accomplish big things without all the stress usually involved.

    @@ -1492,7 +1488,7 @@ http://www.gnu.org/software/src-highlite -->
  • Work at a natural pace
  • Obsess over quality

  • -

    Do fewer things


    +

    Do fewer things



    There will always be more work. The faster you finish it, the quicker you will have something new on your plate.

    @@ -1526,7 +1522,7 @@ http://www.gnu.org/software/src-highlite -->
    Put tasks on autopilot (regular recurring tasks).

    -

    Work at a natural pace


    +

    Work at a natural pace



    We suffer from overambitious timelines, task lists, and business. Focus on what matters. Don't rush your most important work to achieve better results.

    @@ -1542,7 +1538,7 @@ http://www.gnu.org/software/src-highlite -->
    Schedule slow seasons (e.g., when on vacation). Disconnect in the slow season. Doing nothing will not satisfy your mind, though. You could read a book on your subject matter to counteract that.

    -

    Obsess over quality


    +

    Obsess over quality



    Obsess over quality even if you lose short-term opportunities by rejecting other projects. Quality demands you slow down. The two previous two principles (do fewer things and work at a natural pace) are mandatory for this principle to work:

    @@ -1606,7 +1602,7 @@ http://www.gnu.org/software/src-highlite --> Art by Michael J. Penick (mod. by Paul B.)
    -

    KISS high-availability with OpenBSD


    +

    KISS high-availability with OpenBSD



    Published at 2024-03-30T22:12:56+02:00

    @@ -1635,23 +1631,21 @@ _____|_:_:_| (o)-(o) |_:_:_|--'`-. ,--. ksh under-water (((\'/
    -
    -Table of contents
    -=================
    -
    -KISS high-availability with OpenBSD
    -    My auto-failover requirements
    -    My HA solution
    -        Only OpenBSD base installation required
    -        Fairly cheap and geo-redundant
    -        Failover time and split-brain
    -        Failover support for multiple protocols
    -        Let's encrypt TLS certificates
    -        Monitoring
    -        Rex automation
    -    More HA
    -
    +

    Table of Contents



    +
    I have always wanted a highly available setup for my personal websites. I could have used off-the-shelf hosting solutions or hosted my sites in an AWS S3 bucket. I have used technologies like (in unsorted and slightly unrelated order) BGP, LVS/IPVS, ldirectord, Pacemaker, STONITH, scripted VIP failover via ARP, heartbeat, heartbeat2, Corosync, keepalived, DRBD, and commercial F5 Load Balancers for high availability at work.

    But still, my personal sites were never highly available. All those technologies are great for professional use, but I was looking for something much more straightforward for my personal space - something as KISS (keep it simple and stupid) as possible.
    @@ -1660,7 +1654,7 @@ KISS high-availability with OpenBSD
    PS: ASCII-art reflects an OpenBSD under-water world with all the tools available in the base system.

    -

    My auto-failover requirements


    +

    My auto-failover requirements



    • Be OpenBSD-based (I prefer OpenBSD because of the cleanliness and good documentation) and rely on as few external packages as possible.
    • @@ -1673,9 +1667,9 @@ KISS high-availability with OpenBSD
    • Have good monitoring in place so I know when a failover was performed and when something went wrong with the failover.
    • Don't configure everything manually. The configuration should be automated and reproducible.

    -

    My HA solution


    +

    My HA solution



    -

    Only OpenBSD base installation required


    +

    Onl