summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-08-24 19:42:39 +0300
committerPaul Buetow <paul@buetow.org>2024-08-24 19:42:39 +0300
commit8618529905d74ce738c9907b48a8bfb046844977 (patch)
treed2c80f555740c793339a1fd3c663a12ec725fe22
parentd2cea79cc18a013355cfd58f3a0f794d472a4667 (diff)
Update content for gemtext
-rw-r--r--gemfeed/2023-08-18-site-reliability-engineering-part-1.gmi2
-rw-r--r--gemfeed/2023-11-19-site-reliability-engineering-part-2.gmi4
-rw-r--r--gemfeed/2024-01-09-site-reliability-engineering-part-3.gmi2
-rw-r--r--gemfeed/2024-04-01-KISS-high-availability-with-OpenBSD.gmi29
-rw-r--r--gemfeed/2024-05-03-projects-i-currently-dont-have-time-for.gmi77
-rw-r--r--gemfeed/2024-06-23-terminal-multiplexing-with-tmux.gmi41
-rw-r--r--gemfeed/atom.xml720
-rw-r--r--index.gmi2
-rw-r--r--uptime-stats.gmi2
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 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
- <updated>2024-08-18T22:23:22+03:00</updated>
+ <updated>2024-08-24T19:37:43+03:00</updated>
<title>foo.zone feed</title>
<subtitle>To be in the .zone!</subtitle>
<link href="gemini://foo.zone/gemfeed/atom.xml" rel="self" />
@@ -234,7 +234,7 @@
<summary>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. </summary>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
- <h1 style='display: inline' id='TheStoicChallengebooknotes'>"The Stoic Challenge" book notes</h1><br />
+ <h1 style='display: inline' id='the-stoic-challenge-book-notes'>"The Stoic Challenge" book notes</h1><br />
<br />
<span class='quote'>Published at 2024-07-07T12:46:55+03:00</span><br />
<br />
@@ -262,7 +262,7 @@
<br />
<span>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.</span><br />
<br />
-<h2 style='display: inline' id='Negativevisualization'>Negative visualization</h2><br />
+<h2 style='display: inline' id='negative-visualization'>Negative visualization</h2><br />
<br />
<span>It is easy what we have to take for granted.</span><br />
<br />
@@ -272,7 +272,7 @@
<li>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.</li>
<li>Last time meditation. Lets you appreciate the life as it is now. Life gets vitalised again.</li>
</ul><br />
-<h2 style='display: inline' id='Ohnicetrickyoustoicgod'>Oh, nice trick, you stoic "god"! ;-)</h2><br />
+<h2 style='display: inline' id='oh-nice-trick-you-stoic-god--'>Oh, nice trick, you stoic "god"! ;-)</h2><br />
<br />
<span>Take setbacks as a challenge. Also take it with some humor.</span><br />
<br />
@@ -671,10 +671,10 @@ r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()&lt;&gt;@,;:\\".\
<name>Paul Buetow aka snonux</name>
<email>paul@dev.buetow.org</email>
</author>
- <summary>Table of contents</summary>
+ <summary>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:</summary>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
- <h1 style='display: inline' id='Terminalmultiplexingwithtmux'>Terminal multiplexing with <span class='inlinecode'>tmux</span></h1><br />
+ <h1 style='display: inline' id='terminal-multiplexing-with-tmux'>Terminal multiplexing with <span class='inlinecode'>tmux</span></h1><br />
<br />
<span class='quote'>Published at 2024-06-23T22:41:59+03:00</span><br />
<br />
@@ -690,30 +690,28 @@ jgs `-=========-`()
mod. by Paul B.
</pre>
<br />
-<pre>
-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
-</pre>
+<h2 style='display: inline' id='table-of-contents'>Table of Contents</h2><br />
<br />
-<h2 style='display: inline' id='Introduction'>Introduction</h2><br />
+<ul>
+<li><a href='#terminal-multiplexing-with-tmux'>Terminal multiplexing with <span class='inlinecode'>tmux</span></a></li>
+<li>⇢ <a href='#introduction'>Introduction</a></li>
+<li>⇢ <a href='#shell-aliases'>Shell aliases</a></li>
+<li>⇢ <a href='#the-tn-alias---creating-a-new-session'>The <span class='inlinecode'>tn</span> alias - Creating a new session</a></li>
+<li>⇢ ⇢ <a href='#cleaning-up-default-sessions-automatically'>Cleaning up default sessions automatically</a></li>
+<li>⇢ ⇢ <a href='#renaming-sessions'>Renaming sessions</a></li>
+<li>⇢ <a href='#the-ta-alias---attaching-to-a-session'>The <span class='inlinecode'>ta</span> alias - Attaching to a session</a></li>
+<li>⇢ <a href='#the-tr-alias---for-a-nested-remote-session'>The <span class='inlinecode'>tr</span> alias - For a nested remote session</a></li>
+<li>⇢ ⇢ <a href='#change-of-the-tmux-prefix-for-better-nesting'>Change of the Tmux prefix for better nesting</a></li>
+<li>⇢ <a href='#the-ts-alias---searching-sessions-with-fuzzy-finder'>The <span class='inlinecode'>ts</span> alias - Searching sessions with fuzzy finder</a></li>
+<li>⇢ <a href='#the-tssh-alias---cluster-ssh-replacement'>The <span class='inlinecode'>tssh</span> alias - Cluster SSH replacement</a></li>
+<li>⇢ ⇢ <a href='#the-tmuxtsshfromargument-helper'>The <span class='inlinecode'>tmux::tssh_from_argument</span> helper</a></li>
+<li>⇢ ⇢ <a href='#the-tmuxtsshfromfile-helper'>The <span class='inlinecode'>tmux::tssh_from_file</span> helper</a></li>
+<li>⇢ ⇢ <a href='#tssh-examples'><span class='inlinecode'>tssh</span> examples</a></li>
+<li>⇢ ⇢ <a href='#common-tmux-commands-i-use-in-tssh'>Common Tmux commands I use in <span class='inlinecode'>tssh</span></a></li>
+<li>⇢ <a href='#copy-and-paste-workflow'>Copy and paste workflow</a></li>
+<li>⇢ <a href='#tmux-configurations'>Tmux configurations</a></li>
+</ul><br />
+<h2 style='display: inline' id='introduction'>Introduction</h2><br />
<br />
<span>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:</span><br />
<br />
@@ -739,7 +737,7 @@ Terminal multiplexing with `tmux`
<br />
<span>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!</span><br />
<br />
-<h2 style='display: inline' id='Shellaliases'>Shell aliases</h2><br />
+<h2 style='display: inline' id='shell-aliases'>Shell aliases</h2><br />
<br />
<span>I am a user of the Z-Shell (<span class='inlinecode'>zsh</span>), but I believe all the snippets mentioned in this blog post also work with Bash. </span><br />
<br />
@@ -764,7 +762,7 @@ http://www.gnu.org/software/src-highlite -->
<br />
<span>The first two are pretty straightforward. <span class='inlinecode'>tm</span> is simply a shorthand for <span class='inlinecode'>tmux</span>, so I have to type less, and <span class='inlinecode'>tl</span> lists all Tmux sessions that are currently open. No magic here.</span><br />
<br />
-<h2 style='display: inline' id='ThetnaliasCreatinganewsession'>The <span class='inlinecode'>tn</span> alias - Creating a new session</h2><br />
+<h2 style='display: inline' id='the-tn-alias---creating-a-new-session'>The <span class='inlinecode'>tn</span> alias - Creating a new session</h2><br />
<br />
<span>The <span class='inlinecode'>tn</span> alias is referencing this function:</span><br />
<br />
@@ -795,7 +793,7 @@ http://www.gnu.org/software/src-highlite -->
<br />
<span>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 <span class='inlinecode'>T$($date +%s)</span> as a default. Which is T followed by the UNIX epoch, e.g. <span class='inlinecode'>T1717133796</span>.</span><br />
<br />
-<h3 style='display: inline' id='Cleaningupdefaultsessionsautomatically'>Cleaning up default sessions automatically</h3><br />
+<h3 style='display: inline' id='cleaning-up-default-sessions-automatically'>Cleaning up default sessions automatically</h3><br />
<br />
<span>Note also the call to <span class='inlinecode'>tmux::cleanup_default</span>; it would clean up all already opened default sessions if they aren&#39;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&#39;t attached. If I want to keep sessions around, I will rename them with the Tmux command <span class='inlinecode'>prefix-key $</span>. This is the cleanup function:</span><br />
<br />
@@ -815,11 +813,11 @@ http://www.gnu.org/software/src-highlite -->
<br />
<span>The cleanup function kills all open Tmux sessions that haven&#39;t been renamed properly yet—but only if they aren&#39;t attached (e.g., don&#39;t run in the foreground in any terminal). Cleaning them up automatically keeps my Tmux sessions as neat and tidy as possible. </span><br />
<br />
-<h3 style='display: inline' id='Renamingsessions'>Renaming sessions</h3><br />
+<h3 style='display: inline' id='renaming-sessions'>Renaming sessions</h3><br />
<br />
<span>Whenever I am in a temporary session (named <span class='inlinecode'>T....</span>), 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&#39;s, as mentioned already, easily accomplished with the standard <span class='inlinecode'>prefix-key $</span> Tmux command.</span><br />
<br />
-<h2 style='display: inline' id='ThetaaliasAttachingtoasession'>The <span class='inlinecode'>ta</span> alias - Attaching to a session</h2><br />
+<h2 style='display: inline' id='the-ta-alias---attaching-to-a-session'>The <span class='inlinecode'>ta</span> alias - Attaching to a session</h2><br />
<br />
<span>This alias refers to the following function, which tries to attach to an already-running Tmux session.</span><br />
<br />
@@ -841,7 +839,7 @@ http://www.gnu.org/software/src-highlite -->
<br />
<span>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 <span class='inlinecode'>tmux::new</span>. Otherwise, with a session name given as the argument, it will attach to it. If unsuccessful (e.g., the session doesn&#39;t exist), it will be created and attached to.</span><br />
<br />
-<h2 style='display: inline' id='ThetraliasForanestedremotesession'>The <span class='inlinecode'>tr</span> alias - For a nested remote session</h2><br />
+<h2 style='display: inline' id='the-tr-alias---for-a-nested-remote-session'>The <span class='inlinecode'>tr</span> alias - For a nested remote session</h2><br />
<br />
<span>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.</span><br />
<br />
@@ -857,7 +855,7 @@ http://www.gnu.org/software/src-highlite -->
<b><font color="#ffffff">alias</font></b><font color="#ff0000"> </font><font color="#ff0000">tr</font><font color="#F3E651">=</font><font color="#ff0000">tmux</font><font color="#F3E651">::</font><font color="#ff0000">remote</font>
</pre>
<br />
-<h3 style='display: inline' id='ChangeoftheTmuxprefixforbetternesting'>Change of the Tmux prefix for better nesting</h3><br />
+<h3 style='display: inline' id='change-of-the-tmux-prefix-for-better-nesting'>Change of the Tmux prefix for better nesting</h3><br />
<br />
<span>To make nested Tmux sessions work smoothly, one must change the Tmux prefix key locally or remotely. By default, the Tmux prefix key is <span class='inlinecode'>Ctrl-b</span>, so <span class='inlinecode'>Ctrl-b $</span>, for example, renames the current session. To change the prefix key from the standard <span class='inlinecode'>Ctrl-b</span> to, for example, <span class='inlinecode'>Ctrl-g</span>, you must add this to the <span class='inlinecode'>tmux.conf</span>:</span><br />
<br />
@@ -869,7 +867,7 @@ set-option -g prefix C-g
<br />
<span>There might also be another way around this (without reconfiguring the prefix key), but that is cumbersome to use, as far as I remember. </span><br />
<br />
-<h2 style='display: inline' id='ThetsaliasSearchingsessionswithfuzzyfinder'>The <span class='inlinecode'>ts</span> alias - Searching sessions with fuzzy finder</h2><br />
+<h2 style='display: inline' id='the-ts-alias---searching-sessions-with-fuzzy-finder'>The <span class='inlinecode'>ts</span> alias - Searching sessions with fuzzy finder</h2><br />
<br />
<span>Despite the fact that with <span class='inlinecode'>tmux::cleanup_default</span>, I don&#39;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&#39;t remember the exact session names.</span><br />
<br />
@@ -894,7 +892,7 @@ http://www.gnu.org/software/src-highlite -->
<br />
<a href='./terminal-multiplexing-with-tmux/tmux-session-fzf.png'><img alt='Tmux session fuzzy finder' title='Tmux session fuzzy finder' src='./terminal-multiplexing-with-tmux/tmux-session-fzf.png' /></a><br />
<br />
-<h2 style='display: inline' id='ThetsshaliasClusterSSHreplacement'>The <span class='inlinecode'>tssh</span> alias - Cluster SSH replacement</h2><br />
+<h2 style='display: inline' id='the-tssh-alias---cluster-ssh-replacement'>The <span class='inlinecode'>tssh</span> alias - Cluster SSH replacement</h2><br />
<br />
<span>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.</span><br />
<br />
@@ -925,7 +923,7 @@ http://www.gnu.org/software/src-highlite -->
<br />
<span>This function is just a wrapper around the more complex <span class='inlinecode'>tmux::tssh_from_file</span> and <span class='inlinecode'>tmux::tssh_from_argument</span> functions, as you have learned already. Most of the magic happens there.</span><br />
<br />
-<h3 style='display: inline' id='Thetmuxtsshfromargumenthelper'>The <span class='inlinecode'>tmux::tssh_from_argument</span> helper</h3><br />
+<h3 style='display: inline' id='the-tmuxtsshfromargument-helper'>The <span class='inlinecode'>tmux::tssh_from_argument</span> helper</h3><br />
<br />
<span>This is the most magic helper function we will cover in this post. It looks like this:</span><br />
<br />
@@ -961,7 +959,7 @@ bind-key p setw synchronize-panes off
bind-key P setw synchronize-panes on
</pre>
<br />
-<h3 style='display: inline' id='Thetmuxtsshfromfilehelper'>The <span class='inlinecode'>tmux::tssh_from_file</span> helper</h3><br />
+<h3 style='display: inline' id='the-tmuxtsshfromfile-helper'>The <span class='inlinecode'>tmux::tssh_from_file</span> helper</h3><br />
<br />
<span>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 <span class='inlinecode'>tmux::tssh_from_argument</span> as the arguments. So, this is a neat little wrapper that also enables me to open clustered SSH sessions from an input file.</span><br />
<br />
@@ -977,7 +975,7 @@ http://www.gnu.org/software/src-highlite -->
<font color="#ff0000">}</font>
</pre>
<br />
-<h3 style='display: inline' id='tsshexamples'><span class='inlinecode'>tssh</span> examples</h3><br />
+<h3 style='display: inline' id='tssh-examples'><span class='inlinecode'>tssh</span> examples</h3><br />
<br />
<span>To open a new session named <span class='inlinecode'>fish</span> and log in to 4 remote hosts, run this command (Note that it is also possible to specify the remote user):</span><br />
<br />
@@ -992,7 +990,7 @@ $ tssh fish blowfish.buetow.org fishfinger.buetow.org \
$ tssh manyservers.txt
</pre>
<br />
-<h3 style='display: inline' id='CommonTmuxcommandsIuseintssh'>Common Tmux commands I use in <span class='inlinecode'>tssh</span></h3><br />
+<h3 style='display: inline' id='common-tmux-commands-i-use-in-tssh'>Common Tmux commands I use in <span class='inlinecode'>tssh</span></h3><br />
<br />
<span>These are default Tmux commands that I make heavy use of in a <span class='inlinecode'>tssh</span> session:</span><br />
<br />
@@ -1001,7 +999,7 @@ $ tssh manyservers.txt
<li>Press <span class='inlinecode'>prefix-key &lt;space&gt;</span> to change the pane layout (can be pressed multiple times to cycle through them).</li>
<li>Press <span class='inlinecode'>prefix-key z</span> to zoom in and out of the current active pane.</li>
</ul><br />
-<h2 style='display: inline' id='Copyandpasteworkflow'>Copy and paste workflow</h2><br />
+<h2 style='display: inline' id='copy-and-paste-workflow'>Copy and paste workflow</h2><br />
<br />
<span>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).</span><br />
<br />
@@ -1020,7 +1018,7 @@ bind-key -T copy-mode-vi &#39;y&#39; send -X copy-selection-and-cancel
<br />
<span>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 <span class='inlinecode'>prefix-key ]</span>. Note that when pasting into a modal text editor like Vi or Helix, you would first need to enter insert mode before <span class='inlinecode'>prefix-key ]</span> would paste anything.</span><br />
<br />
-<h2 style='display: inline' id='Tmuxconfigurations'>Tmux configurations</h2><br />
+<h2 style='display: inline' id='tmux-configurations'>Tmux configurations</h2><br />
<br />
<span>Some features I have configured directly in Tmux don&#39;t require an external shell alias to function correctly. Let&#39;s walk line by line through my local <span class='inlinecode'>~/.config/tmux/tmux.conf</span>:</span><br />
<br />
@@ -1113,7 +1111,7 @@ bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf re
<summary>Art by Laura Brown</summary>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
- <h1 style='display: inline' id='ProjectsIcurrentlydonthavetimefor'>Projects I currently don&#39;t have time for</h1><br />
+ <h1 style='display: inline' id='projects-i-currently-dont-have-time-for'>Projects I currently don&#39;t have time for</h1><br />
<br />
<span class='quote'>Published at 2024-05-03T16:23:03+03:00</span><br />
<br />
@@ -1130,58 +1128,56 @@ Art by Laura Brown
</pre>
<br />
-<h2 style='display: inline' id='Introduction'>Introduction</h2><br />
+<h2 style='display: inline' id='introduction'>Introduction</h2><br />
<br />
<span>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&#39;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.</span><br />
<br />
-<pre>
-Table of contents
-=================
-
-Projects I currently don&#39;t have time for
- Introduction
- Hardware projects I don&#39;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&#39;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&#39;t have time for
- My own Matrix server
- Ampache music server
- Librum eBook reader
- Memos - Note-taking service
- Bepasty server
- Books I don&#39;t have time to read
- Fluent Python
- Programming Ruby
- Peter F. Hamilton science fiction books
- New websites I don&#39;t have time for
- Create a "Why Raku Rox" site
- Research projects I don&#39;t have time for
- Project secure
- CPU utilisation is all wrong
-</pre>
-<br />
-<h2 style='display: inline' id='HardwareprojectsIdonthavetimefor'>Hardware projects I don&#39;t have time for</h2><br />
-<br />
-<h3 style='display: inline' id='IuseArchbtw'>I use Arch, btw!</h3><br />
+<h2 style='display: inline' id='table-of-contents'>Table of Contents</h2><br />
+<br />
+<ul>
+<li><a href='#projects-i-currently-dont-have-time-for'>Projects I currently don&#39;t have time for</a></li>
+<li>⇢ <a href='#introduction'>Introduction</a></li>
+<li>⇢ <a href='#hardware-projects-i-dont-have-time-for'>Hardware projects I don&#39;t have time for</a></li>
+<li>⇢ ⇢ <a href='#i-use-arch-btw'>I use Arch, btw!</a></li>
+<li>⇢ ⇢ <a href='#openbsd-home-router'>OpenBSD home router</a></li>
+<li>⇢ ⇢ <a href='#pi-hole-server'>Pi-Hole server</a></li>
+<li>⇢ ⇢ <a href='#infodash'>Infodash</a></li>
+<li>⇢ ⇢ <a href='#reading-station'>Reading station</a></li>
+<li>⇢ ⇢ <a href='#retro-station'>Retro station</a></li>
+<li>⇢ ⇢ <a href='#sound-server'>Sound server</a></li>
+<li>⇢ ⇢ <a href='#project-freekat'>Project Freekat</a></li>
+<li>⇢ <a href='#programming-projects-i-dont-have-time-for'>Programming projects I don&#39;t have time for</a></li>
+<li>⇢ ⇢ <a href='#cli-hive'>CLI-HIVE</a></li>
+<li>⇢ ⇢ <a href='#enhanced-kiss-home-photo-albums'>Enhanced KISS home photo albums</a></li>
+<li>⇢ ⇢ <a href='#kiss-file-sync-server-with-end-to-end-encryption'>KISS file sync server with end-to-end encryption</a></li>
+<li>⇢ ⇢ <a href='#a-language-that-compiles-to-bash'>A language that compiles to <span class='inlinecode'>bash</span></a></li>
+<li>⇢ ⇢ <a href='#a-language-that-compiles-to-sed'>A language that compiles to <span class='inlinecode'>sed</span></a></li>
+<li>⇢ ⇢ <a href='#renovate-vs-sim'>Renovate VS-Sim</a></li>
+<li>⇢ ⇢ <a href='#kiss-ticketing-system'>KISS ticketing system</a></li>
+<li>⇢ ⇢ <a href='#a-domain-specific-language-dsl-for-work'>A domain-specific language (DSL) for work</a></li>
+<li>⇢ <a href='#self-hosting-projects-i-dont-have-time-for'>Self-hosting projects I don&#39;t have time for</a></li>
+<li>⇢ ⇢ <a href='#my-own-matrix-server'>My own Matrix server</a></li>
+<li>⇢ ⇢ <a href='#ampache-music-server'>Ampache music server</a></li>
+<li>⇢ ⇢ <a href='#librum-ebook-reader'>Librum eBook reader</a></li>
+<li>⇢ ⇢ <a href='#memos---note-taking-service'>Memos - Note-taking service</a></li>
+<li>⇢ ⇢ <a href='#bepasty-server'>Bepasty server</a></li>
+<li>⇢ <a href='#books-i-dont-have-time-to-read'>Books I don&#39;t have time to read</a></li>
+<li>⇢ ⇢ <a href='#fluent-python'>Fluent Python</a></li>
+<li>⇢ ⇢ <a href='#programming-ruby'>Programming Ruby</a></li>
+<li>⇢ ⇢ <a href='#peter-f-hamilton-science-fiction-books'>Peter F. Hamilton science fiction books</a></li>
+<li>⇢ <a href='#new-websites-i-dont-have-time-for'>New websites I don&#39;t have time for</a></li>
+<li>⇢ ⇢ <a href='#create-a-why-raku-rox-site'>Create a "Why Raku Rox" site</a></li>
+<li>⇢ <a href='#research-projects-i-dont-have-time-for'>Research projects I don&#39;t have time for</a></li>
+<li>⇢ ⇢ <a href='#project-secure'>Project secure</a></li>
+<li>⇢ ⇢ <a href='#cpu-utilisation-is-all-wrong'>CPU utilisation is all wrong</a></li>
+</ul><br />
+<h2 style='display: inline' id='hardware-projects-i-dont-have-time-for'>Hardware projects I don&#39;t have time for</h2><br />
+<br />
+<h3 style='display: inline' id='i-use-arch-btw'>I use Arch, btw!</h3><br />
<br />
<span>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).</span><br />
<br />
-<h3 style='display: inline' id='OpenBSDhomerouter'>OpenBSD home rout