Blog

A collection of quotes, things learned, and who-knows-whats

Check if a Program Exists From Your Bash Script

Lately I’ve had the Bash bug… and I’m continually impressed at what can be accomplished with this tool. Just the other day, I needed to check for the existence of some programs before doing the rest of my scripting work.

Create Header Links: Hugo vs JavaScript

Update: As of Hugo v0.62.0 this can now be done with Markdown Render Hooks. Thanks to @ulab for the heads up. GitHub adds header links to markdown documents by default. I like the way this looks and how it makes sharing link fragments easier, so I added the feature to my lil boot theme.

The Microsoft Console Colortool

Today I stumbled upon Microsoft’s Console ColorTool. I’ve long played around with the color scheme of my Windows Console to make things more readable and improve the aesthetic (with not much luck). This awesome tool let’s me make color changes easily, and the changes show up in Command Prompt, PowerShell, and Windows Subsystem for Linux Console. Nice.

The Foyer Phone Method

If you’ve never read Cal Newport’s blog, you’re missing out – his content is just plain meaningful to my life (and likely yours). The following excerpt is from his blog post on Digital Minimalism for Parents. I do something similar to the “foyer phone method”, but instead of leaving it in the foyer, I leave it in the car until my wife and I put our son down for bed. It’s crazy how much mental energy is freed up when you’re not worried about checking your phone. It makes those little conversations and moments all the more enjoyable.

Bash Function to Delete All Local Git Branches Except for Those You Want to Keep

This article has been removed. Bash functions now live in my dotfiles.

Current page: 33 of 44
Total blog posts: 220