Signing Commits in Git

There are some great resources for getting set up with signing Git commits and tags with a GPG key: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work https://help.github.com/articles/signing-commits-using-gpg/ After following instructions, I still got the following error: error: gpg failed to sign the data fatal: failed to write commit object Below is a sequence of commands that got everything working properly: # Assumes homebrew and existing key-pair brew install pinentry-mac # Get the secret key value gpg2 --list-secret-keys | grep ^sec git config --global user....

2016-09-05 · 1 min · 133 words · Nathaniel Hoag

Another Hodgepodge Update

Recently, a bash script that I’ve used many times on lots of different types of servers was giving very strange results. Typically the script is called as ./script.sh info.cfg and proceeds to run through several processes. On this occasion, I was left with : command not found. When I hit the script with bash -x I could see that both the script and the config file were giving strange results and choking on line-breaks and curly braces....

2013-12-29 · 2 min · 425 words · Nathaniel Hoag

Image Manipulation on OSX with Preview and ImageMagick

I recently modified the Google profile image on my work Google+ account to make it more clear that it’s a work profile rather than a personal profile. I added a few layers to my existing profile image including a work logo and a couple of simple transparencies. In the past I would have relied on Photoshop, GIMP, or another heavy image manipulation GUI software to accomplish this task. This time around, I decided to make use of the OSX Preview program in conjunction with the command line tool, ImageMagick....

2013-09-16 · 2 min · 265 words · Nathaniel Hoag