Nerdery

Bash / Shell Script, macOS Development, Nerdery, Open Source

Does Not Contain

I occassioanlly need to scan a folder and all of its subdirectories to see if any of them DO NOT contain files of a certain type.

I’m fully aware you can do this with some combination of shell commands, but I always spent 20 minutes googling for how to do it again every time I needed to. It was faster just to write this small utility myself.

I call it dnc, which stands for “does not contain”. You can download the source or a pre-built binary on GitHub. The builds aren’t notarized. So be sure to ask Apple if it’s OK to run this on your Mac.

Read the full post for an example of why I need this script.

Read More
macOS, Nerdery, Productivity

Dot Dee Tee

Inline with my affinity for backing up and owning my data, one component of that strategy is avoiding proprietary file formats and databases whenever possible and reasonable. That’s why I prefer plain text (and more recently .textbundle) for all of my notes, and why I’m so meticulous about how I organize my family’s photo archives.

It gives me the agility to move from app to app or even (heaven forbid, it may eventually happen) to a new platform as my needs change. If you own your own data, there’s no lock-in.

So along those lines, here’s a very tiny optimization (is that the right word for this?) that I’ve been doing for years that helps keep my reference material organized and more easily searchable and filterable.

(Oh, and also a quick story about how I effed up someone else’s data.)

Read More
Click On Tyler, Indie Business, macOS Development, Nerdery, Personal

Solving Problems on Systematic

If you need something to listen to this weekend or during your next commute, here’s a link to me prattling on for forty-six minutes about how and why I build the software I do.

Systematic podcast logo

Brett Terpstra was kind enough to invite me on as the guest of his Systematic podcast this week. And when he says I’m “on about the same level of geek frequency as” he is, well, that’s a heck of a compliment in my book.

Read More
Bash / Shell Script, Hacks, macOS, macOS Development, Nerdery, Open Source, Shortcuts.app

Shelley

I’ve written previously about using Hazel on macOS to react to a new file appearing in a synced iCloud Drive folder and running commands. But I wanted a faster solution that I could trigger from almost anywhere – including an iOS Shortcut. A way to send a command directly from my phone (or maybe any other device?) to my Mac.

What I came up with is a tiny, macOS menu bar app I call Shelley – because as a friend told me, it’s a Frankenstein of a hack.

Read More
Amazon Web Services, Bash / Shell Script, Indie Business, Nerdery, Web Performance

DIY Video Hosting

I’ve been a paying customer of Vimeo since 2014 – specifically, their Pro plan. But when my renewal email arrived in April, myself and other small developers were seeing sales slow down as the pandemic worsened. Another $240/year was a tough sell for the small amount of video content I was hosting with them, and I wondered if there might be a cheaper alternative – either another service or by hosting videos myself.

So this is how I moved off Vimeo and started hosting my own video content.

On average, my bandwidth bill has dropped to $11/month – and that includes videos, static assets, and ALSO binary downloads for all of my Mac apps. Previously, I was paying $20/month just for video hosting on top of the rest of my bandwidth.

It’s definitely a geekier solution that requires more work up front to setup, and I’m not sure I would recommend it for a “real” business, but for my needs it was a fun project and I’m happy to save $200 a year.

Read More
Bash / Shell Script, macOS, Nerdery

A Quick Shell Script to Keep a LAN File Server Mounted All the Time

Now that we’re all stuck at home practicing social distancing, my children’s mood depends on their favorite TV shows and movies always being available during their iPad free time. And my sanity depends on not hearing the awful clicking noise of the external drive our video library is stored on while I’m working at my desk. Moving it to a networked file server running off a Raspberry Pi was simple enough and solved the problem. But after trying a few 3rd party apps to keep the network share always mounted, here’s the simple shell script I wrote instead.

Read More