After deciding to host my own Gitea server, I also wanted to be able to take my repositories on the road with me. And what better device to do this than a Raspberry Pi! I already had a spare Pi 4 with 4GB of RAM just sitting around and plenty of SD cards*. And I had previously tried connecting a Pi via USB to my laptop so I knew I could have it working with a direct connection rather than as a server sitting on the same network. But I quickly found out that things have changed, and previous meth...
Diff output from git can be hard to read. Luckily there’s a nice tool bundled with git that can help us out. Enter diff-highlight, a little perl script found in git’s contrib directory. From its own documentation: [diff-highlight] post-processes the line-oriented diff, finds pairs of lines, and highlights the differing segments. diff-highlight is shipped in a default git install but it needs to be bundled and added to your $PATH. Here’s how to do it on debian: Now you can pipe git’s diff output to to diff-highlight to get a better view of what actually changed. Optionally, you can configure […]
Running WordPress with sqlite is a great alternative to mysql/mariadb.
In which I ramble about my troubleshooting process
Hetzner's networking can be strange
Integrating bashblog with public_gopher
Did you know that ~/.ssh/config aliases work for git remotes? ~/.ssh/config You can now use gh:username/repo as the remote in place of git@github.com:username/repo, which is much shorter and easier to type many times! git clone gh:benharri/learngit There are many other use cases for the ssh_config file. For example, here is my config for the tilde machine for easy ssh connections. Then use ssh tilde to start a new ssh session. This also works with scp: try something like this scp file.txt tilde:workspace/. in place of scp file.txt ben@tilde.team:workspace/. The ssh_config file is super useful. Check man ssh_config for a full […]
Another tale of spending more time messing with blogging software than actually writing