Archive for the ‘Mac’ Category

My iTunes veto list

I’ve actually been using this iTunes veto script for a few months now and it’s been so satisfying to hear silence every time these songs are played on the radio: Green Day - Know Your Enemy Green Day - Horseshoes and Handgrenades U2 - I’ll Go Crazy If I Don’t Go Crazy Tonight Bob Dylan - It’s All Good Bob […]

Read more

iTunes Veto: avoid those overplayed new songs

I listen to a stream of The Current almost all day, every day. I love this station, but I cringe every time they play that new Green Day song or when I hear Bono sing, well, anything. No longer! I’ve written a set of Ruby scripts that’ll let me veto away the ugliness so that […]

Read more

Screen lock keyboard shortcut for your Mac

I’ve always been slightly annoyed by the lack of a keyboard shortcut to lock the screen on my Mac. There are several popular solutions out there (screensaver activated by hot corners, a lock icon in menu bar, etc), but I really missed my Windows-style Windows key+L keyboard shortcut. I’ve finally found a suitable solution with […]

Read more

Managing local development websites on your Mac

I recently had my hard drive fail in my MacBook Pro I use for work, which, while a little painful, gave me the opportunity get a fresh, clean install of everything—especially my Apache config files.  Like a lot of developers, my Apache config files had been hacked to pieces.  This was a great time to […]

Read more

Generate a self-signed SSL certificate for local development on a Mac

Generate a host key First, make a home for the new SSL files—I use /etc/apache2/ssl.  Open up a terminal window, cd to the new directory and issue the following command to create a host key file. sudo ssh-keygen -f host.key Generate a certificate request file This command will create a certificate request file. A certificate request file contains information […]

Read more

Fix for Mac 10.5.5 ssh, scp, sftp

The 10.5.5 update for Mac has apparently broken ssh. Until Apple fixes this, the best option seems to be to compile a patched version of OpenSSH. I’ve written this script to automate the downloading, compilation, and aliasing. This process leaves the existing ssh intact, but aliases the ssh, scp, and sftp commands to the newer […]

Read more