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

Linsomniac's Articles


Sean Reifschneider's writing on random issues

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 

More Simple Static Site Generators

   |  Sean Reifschneider

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]
Static Site Generator  Mini-Review 

Simple Static Site Generators for a Blog

   |  Sean Reifschneider

I’ve been playing around with a few simple static site generators, the simpler the better. Here’s a mini review.

[Read More]
Static Site Generator  Mini-Review 

Connecting Android to Headscale

   |  Sean Reifschneider

It’s a little tricky to connect android to Tailscale, but here’s how I do it using the Google Workspace authentication.

[Read More]
Headscale  Tailscale  Android 

Headscale Authentication with Google Workspace

OIDC Logins to your Tailnet via Google

   |  Sean Reifschneider

Headscale “users” can be authenticated using Google Workspace logins. This only applies to nodes that do not have tags. Nodes with tags do not get logged in/out via OIDC.

[Read More]
Headscale  Tailscale  OIDC  Google 

Using PGLoader to Copy Data from MS-SQL to PostgreSQL

   |  Sean Reifschneider

PGLoader can painlessly copy data from a SQLServer into PostgreSQL, including setting up the schemas and copying the data. A very slick tool that I’d never used before.

[Read More]
SQLServer  PostgreSQL  PGLoader  ETL 
  • Older Posts →

Sean Reifschneider  • © 2023  •  Linsomniac's Articles

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