Linsomniac's Articles
  • Entries
  • About
  • Tags
Linsomniac's Articles

Linsomniac's Articles


Sean Reifschneider's writing on random issues

Building and Publishing Apt Repos to Github Pages

Download, package, and publish software as a apt repo on Github Pages

   |  Sean Reifschneider

uv is becoming really useful, but I noticed there is no apt repo/PPA of it. I decided I wanted to try publishing an apt package repository via Github Pages. The LLMs got me started, but there were a lot of little things to work out, so here’s a complete recipe.

[Read More]
github  apt  deb  packaging 

Docker Apt Install for Python+UV

A Proposal for Hynek's Docker Recipe

   |  Sean Reifschneider

While reviewing Hynek’s awesome “Production-ready Python Docker Containers with uv” article, I made some changes to the final container. Here’s my proposal for changes.

[Read More]
Python  Docker  uv 

ElasticSearch Snapshots to Backblaze B2

Configuring Elasticsearch to write snapshots to Backblaze B2"

   |  Sean Reifschneider

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]
Elasticsearch  Backups  Snapshots  Backblaze B2 

ChatGPT 4 vs. Claude

   |  Sean Reifschneider

Above the fold content

[Read More]
AI  ClatGPT  Claude 

Deep nesting vs Magic

Which of these two code chunks is better

   |  Sean Reifschneider

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  Refactoring 

Python Testing a CLI Script Without .py

How to import a module without .py suffix

   |  Sean Reifschneider

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]
Python  Testing 

Understanding Headscale ACLs and Users

   |  Sean Reifschneider

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]
Headscale  Tailscale  ACLs 

Using jq to help remove headscale nodes by name

   |  Sean Reifschneider

Headscale CLI requires that you remove a node by id rather than name. jq to the rescue!

[Read More]
Headscale  jq 

The More Things Change: ChatGPT Echoes Google's Early Days

   |  Sean Reifschneider

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]
ChatGPT  Google  History  Musing 

Using Systemd as a Socket Server for a Shell Command

   |  Sean Reifschneider

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]
systemd  xinetd  Socket 
  • Older Posts →

Sean Reifschneider  • © 2025  •  Linsomniac's Articles

Hugo v0.110.0 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll