Categories
Automation

Dynamic Profile And Badge Switching Without Shell Integrations In iTerm2

I use iTerm2 for all my terminal work.  One very nice feature it has is dynamic profiles.  But I usually don’t want to install shell integrations on every server.  Instead, I use my dotfiles and an SSH config to change profiles.  While working across different local, development, and production systems, it’s helps my mental state […]

Categories
Automation

How To Create A Custom, Dynamic Inventory Script for Ansible

Writing a dynamic inventory script for Ansible can be useful for more than just getting a list of hosts to run a play against.  It can also function as a standalone command line utility for your infrastructure. The first time I wrote one, I had a difficult time finding information on how to actually do […]

Categories
Automation

Tame Your Patreon Shipping Problem With Ansible

My work on the Pi-hole project led me to a start a Patreon page.  Like many creators, I spent a while determining what rewards users would want.  But unlike most users, I did not have a problem fulfilling orders. Apparently, this is a big problem: project creators spend more time shipping and fulfilling orders than actually […]

Categories
Automation

Batch Download All Of GarageBand’s Loops, Jingles, And Sound Effects

GarageBand has a lot of cool loops and sound effects.  If you are a systems administrator, you might be tasked with deploying these sounds and loops so you don’t need to download it onto each computer when GarageBand opens up.  Or maybe you just want to have these effects for your own personal movies or […]

Categories
Automation

I Made My Own Script To Fill Out Tedious PDF Forms For Me

I often need to fill out a PDF form for requesting medical records.  I have typically done this using Preview since I can use it to digitally sign the form.  But requesting new records after every appointment started becoming tedious–even when doing it digitally.  I also did not want to wait for years and then […]

Categories
Automation

Quickly Download Or Install Common Apps Without Going To The Website

While helping friends and family with their computers, I often need to download an app they don’t have or update it to the latest version–something I don’t really want to spend my time doing.  This is definitely a first-world annoyance for me, but I always have fun making the computer do my laborious tasks for me, which […]

Categories
Automation

How I Went Paperless And Clutter-free For $32

Ever since I discovered Dropbox, I felt weighed down by the clutter of physical documents.  I use it for all of my digital documents.  After a while, physical documents and pieces of paper began to get on my nerves.  It was much easier to have searchable PDFs that I could access anywhere.  To that end, […]

Categories
Automation Uncategorized

Batch Rotate Photo Files With Hazel and sips

If you have a ton of photos that are all facing the wrong direction and don’t want to do them individually, you can use Hazel to automatically go through a folder and rotate the images for you.  All it takes is a one-line bash script and a Hazel rule. sips -r 90 “$f” This rotates the image 90 […]

Categories
Automation Uncategorized

Trigger Scripts Via Dropbox And Hazel

I haven’t found a great use for this yet, but you can have your Mac automatically run a script by simply creating a file/folder in your Dropbox.  To do this, you need to set up Hazel to watch your Dropbox folder for a certain file/folder, and if it appears, trigger a script.  You could also […]

Categories
Automation Uncategorized

OS X Mail: Create HTML-formatted Auto-response With AppleScript and Rules

Do you respond to a lot of emails with the same or similar content?  You can use Apple’s Mail app to do this for you automatically with some AppleScript and email rules.  Hopefully, you already know about the privacy glitch associated with Apple’s Mail program and Spotlight and have disabled the indexing of your emails.  If […]