Warn when macOS adds path_helper to zprofile and profile on OS updates
If you like to manually set your $PATH
on macOS, you may have updated
/etc/zprofile
(for ZSH) or /etc/profile
(for Bash) to eliminate calls to
path_helper
. Unfortunately, macOS will update these files when you install
OS updates. I’ve been bitten by this changing my $PATH
, so I came up with
the following snippet to warn when it happens.
Ruby 2.3.2 on macOS 10.15
I needed to install Ruby 2.3.2 on macOS 10.15 and hit some snags with OpenSSL.
Vim cheatsheets
A big list of Vim cheatsheets from reddit.com/r/vim:
Useful git configs and aliases
Here are some of my favorite git configs and aliases.
Using Let’s Encrypt for local servers
I run a few web services on my local network. I trust my network, but I’ve often wanted to use SSL with these services. Using DigitalOcean as a DNS provider and Let’s Encrypt, I finally have this in place. Here’s how I set things up.
Deluge and OpenVPN on a Raspberry Pi 4
I recently got a new Raspberry Pi 4. Since it has gigabit ethernet and USB 3, I thought it would make a perfect Deluge seedbox (you know, for Ubuntu and Rasbian ISOs and the like). Here’s how I setup Deluge and OpenVPN.
I’m Comic Sans, Asshole
Listen up. I know the shit you've been saying behind my back. You think I'm stupid. You think I'm immature. You think I'm a malformed, pathetic excuse for a font. Well think again, nerdhole, because I'm Comic Sans, and I'm the best thing to happen to typography since Johannes fucking Gutenberg.
Signed commits with GitX
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.