How to print help text in shell scripts
Good shell scripts should come with documentation that is easy to access.
Usually some-script -h
, some-script --help
will print such help — if the
developer was nice enough to include docs anyway. I think it’s a really
important thing to include in any script you’re going to share with the
public. I’ve seen and tried a few different methods over the years. Here
are a few, how they work, and what I’m using today.
Hello, macOS!
I threw together this post on macOS basics for my dad a few years back when he got his first MacBook. Copying it here in case it helps anyone else, or if I ever need to share again.
vnStat on RasPlex
tl;dr: Want vnStat on RasPlex? Check out rasplex-vnstat!
Vim Registers
I found this great writeup on Vim registers today.
Generate Password LaunchBar Action
I often need to generate random passwords when testing development work. To help with that, I’ve created a LaunchBar 6 Action, [Generate Password.lbaction][].
The One Where I Got A New iMac
I bought a new iMac to replace my aging MacBook Pro. Here’s a post where I gush about it.
Stupid things I had to Google
“Never memorize something that you can look up.” — Albert Einstein. Some stupid things I never memorized and had to look up.
My Vim Setup
This is my Vim config. There are many like it, but this one is mine.
Procrastination
A “poem” I wrote in late 2002 for creative writing — clearly 10 minutes before it was due — about being lazy.
Using Nginx as an SSL proxy to GitHub Pages
I love GitHub Pages, but the one feature they’re missing is SSL support for custom domains. I came up with the idea of using Nginx to proxy and found I was not [alone][NGINX Reverse proxy settings to Github pages]. I was finally able to get SSL working on my GitHub Pages site — and it took me longer to blog about it than set it up.