SSH to Idle Screen Window
I’ve written before about setting up my ssh config so that I’ll automatically join an existing screen session when ssh-ing to certain hosts, by setting RemoteCommand screen -D -RR -p +
However, this has a couple of issues:
- It will always create a new window within the session, even if an idle window exists. More often than not, I find myself immediately killing the new window and switching to an existing one.
- It doesn’t restrict the rejoin to a named session - in my current usage, I typically only have a single
screen
session open at once, but that could change!
Edit Command Line in Zsh
EDIT 2024-04-16: turns out that there’s a built-in, fc
, which does basically the same thing, though it edits the command that was just entered (which is typically what you want when you encounter an error or want to do “the next thing”, anyway).
While reading through my dotfiles, I found some configuration1 that didn’t seem to be working - it claimed that <ESC>,v
would allow editing of the current line in vim, but that didn’t seem to work. I guess I’d copied that from some other configuration and lost patience with trying to get it working, or that it relied on some other configuration option which had been broken2. I dug in to find out more. (This article was invaluable!)
Tags in Archetype
I’ve been using tags - or taxonomies, as Hugo more generally calls them - to organize posts in this blog for a while, but haven’t imposed much structure on them. I tend to just apply whatever tags feel appropriate at the time I’m writing, which led to posts with near-duplicate tags1. We can solve this problem with COMPUTERS2!
Secure Docker Registry
Part of the self-hosted setup that supports this blog (along with all my other homelab projects) is a Docker Registry to hold the images built and used in the CI/CD pipeline. Recently I tried to install TLS certificates to secure interaction with the Registry, and it was a fair bit harder to figure out than I expected, so I wanted to write it up both for future-me and for anyone else struggling with the same problem.
A Dark Day for America
[Content Warning - politics, abortion, human rights]
Last Friday, SCOTUS officially handed down a previously-leaked decision overturning Roe vs. Wade, a legal decision ruling that the U.S. Constitution generally protects a pregnant person’s liberty to choose to have an abortion. Without this federal-level decision, the legality of abortion is decided on a state-by-state basis. Many Conservative states had “trigger” laws to ban abortion which immediately went into effect upon this decision; others are debating their response.
Criticisms of Web3
I want to start this article by clarifying that I want web31, as commonly proposed, to succeed. The ideals that the web3 movement often espouses - transparency of web service logic, privacy and personal control of user data, anti-monopoly - are ones with which I resonate2. Unfortunately, there are several common questions that current projects seem unable to answer, leaving me skeptical that they will succeed.
Leave of Absence
Last Friday was my last working day for the foreseeable future. I’m taking a Leave Of Absence, meaning I’m still technically employed (and thus retain the all-important Health Insurance and other benefits), but am not working (or getting paid) for three months1. I’m planning to use this time primarily to rest, decompress, and avoid burnout; and then secondarily to think more intentionally about how I want to spend my time and my labour in the future.
Meditation
A few days ago, I hit a 100-day streak of meditating using the Ten Percent Happier app.
Auto Screen
screen
(Wikipedia) is a Unix tool that starts a persistent session on a remote machine, allowing you to detach from that session while keeping any running processes alive. It’s really useful when executing a long-running process over an unstable ssh connection. There are other ways to achieve that aim (like Background Processes), and other features of screen
itself (like fitting multiple panels in a single window), but that’s what I primarily use it for.