Alfred Workflow to open a directory in Sublime Text

I’ve recently switched to development in two Vagrant virtual machines (VMs), one VM running Nginx and one running Apache. This means that are two locations I might need to open files from, with two sets of directories representing the document roots of my various development sites. Eventually I got bored of using the terminal to …

Using the OSX clipboard from the command line

The OSX pbcopy terminal command, which adds “stuff” to the clipboard to be pasted later, is really useful. For example, to download some webpage and put the HTML source in the clipboard: Here’s a WordPress example; want to get some fresh API salts and keys for a wp-config.php? Try this: Want to be notified when …

Speeding myself up on the commandline

I tend to find myself in the terminal.app on my Mac more often than not, SSHing into servers, checking whois, host, and any number of other things. My most frequent incantation is searching the command history so I don’t have to re-type a previous command, something like this: I’ll then copy and paste the command …

Installing ImageMagick on MacPorts and imagick on PECL

Over the last few hours I’ve installed ImageMagick on MacPorts (super easy), and imagick on PECL (not so much). Xentek‘s post on ImageMagick and imagick was a great help, and got me past the first brick wall I hit (passing in the ImageMagick prefix to prevent it complaining about Wand-config)… but then I couldn’t get …

PHP error logs with MacPorts on OSX

I’ve recently had to switch laptops while my main machine is in for repair (again), and this has reminded me of an issue I seem to encounter with MacPorts PHP. I make extensive use of the PHP function error_log during development, to track variables and ensure that things within the code are as I expect. …

Following hashtags with a Fluid app for Summize, errr, I mean Twitter Search

Just put together a quick Fluid app for Twitter Search. (Fluid is a Mac specific browser designed to be used with just one app, and together with it’s user scripts, think Grease Monkey, you can mimic basic application functionality. I’ve just put one together which tracks the Twitter conversations around one Hashtag using the new …

Phew. My calendar is synced to my phone again

My phone used to sync with iCal several times a day, but when I upgraded to Leopard it wiped my cron tab file and all that goodness stopped. (Your crontab file is a way of scheduling tasks on your Mac using the Terminal application.) I’ve just googled around for the solution and found it again: Use …

Problems mounting a Debian drive over AFP

It took me ages to find the answer to this, so I figured I’d post the answer for posterity; hopefully between us, Google and I can help the next person avoid that hassle. I’ve created a Debian virtual server in Parallels for some development work. To ease the pain of mounting drives, I’ve configured AFP …

Configuring Apple OS X to use a Nokia 6300 as a bluetooth modem

With a lot of help with Ross Barkman‘s handy modem scripts, I’ve managed to create a bluetooth modem connection with my Nokia 6300 on (UK) Orange. On the off chance that this is useful to someone else, here’s what I did…