An important part of setting up an Elasticsearch cluster is to configure snapshots. I recently set up snapshots to Backblaze B2, an affordable alternative to AWS S3. This is a complete example of configuring them.
[Read More]ChatGPT 4 vs. Claude
Above the fold content
[Read More]Deep nesting vs Magic
Which of these two code chunks is better
I had a piece of code that was deeply nested for loops, and I wanted to see what it could look like if it wasn’t deeply nested. Deep nesting is the root of all evil, you know. Which is the most clear, maintainable code?
[Read More]Python Testing a CLI Script Without .py
How to import a module without .py suffix
I often write little CLI programs in Python, where I just want to call it “script” rather than “script.py”. I also want to be able to test functions in these scripts. It gets tricky if you want to test code from a file without a “.py” suffix.
[Read More]Understanding Headscale ACLs and Users
I spent quite a bit of time while I was learning Headscale being confused about users. Here are some key points that helped me understand them.
[Read More]Using jq to help remove headscale nodes by name
Headscale CLI requires that you remove a node by id rather than name. jq to the rescue!
[Read More]The More Things Change: ChatGPT Echoes Google's Early Days
Watching the discussion about ChatGPT reminds me of the early days of Google. I’m thinking back to when it was under the Stanford domain and opinions of it since.
[Read More]Using Systemd as a Socket Server for a Shell Command
In the past I’ve run socat as a daemon to run a shell command and send the output to a socket. It works well, but I wanted to try the systemd way of doing what “xinetd” has done in the past: Run a command and send the output to a socket.
[Read More]More Simple Static Site Generators
Looked at a few more static site generators, looking for a simple one, based on responses in a “Hacker News comment section on Hugo today”. Here are some more mini reviews.
[Read More]Simple Static Site Generators for a Blog
I’ve been playing around with a few simple static site generators, the simpler the better. Here’s a mini review.
[Read More]