Archive for the ‘Mac’ Category

My iTunes veto list

I’ve actu­ally been using this iTunes veto script for a few months now and it’s been so sat­is­fy­ing to hear silence every time these songs are played on the radio: Green Day — Know Your Enemy Green Day — Horse­shoes and Hand­grenades U2 — I’ll Go Crazy If I Don’t Go Crazy Tonight Bob Dylan — It’s […]

Read more

iTunes Veto: avoid those overplayed new songs

I lis­ten to a stream of The Cur­rent almost all day, every day. I love this sta­tion, but I cringe every time they play that new Green Day song or when I hear Bono sing, well, any­thing. No longer! I’ve writ­ten a set of Ruby scripts that’ll let me veto away the ugli­ness so that […]

Read more

Screen lock keyboard shortcut for your Mac

I’ve always been slightly annoyed by the lack of a key­board short­cut to lock the screen on my Mac. There are sev­eral pop­u­lar solu­tions out there (screen­saver acti­vated by hot cor­ners, a lock icon in menu bar, etc), but I really missed my Windows-style Win­dows key+L key­board short­cut. I’ve finally found a suit­able solu­tion with […]

Read more

Managing local development websites on your Mac

I recently had my hard drive fail in my Mac­Book Pro I use for work, which, while a lit­tle painful, gave me the oppor­tu­nity get a fresh, clean install of everything—especially my Apache con­fig files.  Like a lot of devel­op­ers, my Apache con­fig 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

Gen­er­ate a host key First, make a home for the new SSL files—I use /etc/apache2/ssl.  Open up a ter­mi­nal win­dow, cd to the new direc­tory and issue the fol­low­ing com­mand to cre­ate a host key file. sudo ssh-keygen –f host.key Gen­er­ate a cer­tifi­cate request file This com­mand will cre­ate a cer­tifi­cate request file. A cer­tifi­cate request file […]

Read more

Fix for Mac 10.5.5 ssh, scp, sftp

The 10.5.5 update for Mac has appar­ently bro­ken ssh. Until Apple fixes this, the best option seems to be to com­pile a patched ver­sion of OpenSSH. I’ve writ­ten this script to auto­mate the down­load­ing, com­pi­la­tion, and alias­ing. This process leaves the exist­ing ssh intact, but aliases the ssh, scp, and sftp com­mands to the newer […]

Read more