ApacheBench 2.4.3 is broken on OS X

Posted by & filed under OS X.

I’m trying to make use of the latest version of ApacheBench (2.4.3) to perform some benchmarking against my local server. Unfortunately, it seems to be broke as hell. $ ab -n 100000 http://localhost:3000/analytics This is ApacheBench, Version 2.3 <$Revision: 1373084 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation,… Read more »

Recursively download website files using WGET

Posted by & filed under Linux, OS X.

I use the following command to recursively download a bunch of files from a website to my local machine. It is great for working with open directories of files, e.g. those made available from the Apache web server. The following can be added to your .bash_profile or .bashrc script, depending on which your OS/distro recommends:… Read more »

Fixing Homebrew

Posted by & filed under OS X.

Boy does my Homebrew installation like to get messed up. Pretty much every time I do a big `brew update` I have to repair everything. This is what I typically have to do: cd /usr/local sudo chown -R USERNAME /usr/local/.git sudo chown -R USERNAME /usr/local sudo chown -RL mysql:mysql /usr/local/mysql/data git pull git reset –hard… Read more »

How to “Burn” an ISO to a USB drive in OS X

Posted by & filed under OS X.

OS X comes with a pretty handy tool for working with disks and burning disk images called Disk Utility. Unfortunately, it doesn’t seem to work for burning ISO images to USB drives. Chances are, if you’re reading this, you’ve already tried to burn an ISO image to a USB drive using the utility and were… Read more »

Enable PHP Mail on OS X Mountain Lion

Posted by & filed under OS X.

I recently tried using the PHP mail() function on my OS X Mountain Lion installation, but was greeted with some errors instead of a successful email. I’m not sure why the mail function stopped working after upgrading to Mountain Lion, but it appears to be some sort of permissions issue. To fix the issue, execute… Read more »

Backup External Music Collection using Rsync

Posted by & filed under Linux, OS X.

I’ve got a 1TB hard drive that I fill with music. It is the master copy of my music collection, e.g., I make all changes there and then backup the music to my home server. These changes include adding more music, encoding existing FLAC files to MP3, renaming files and folders, updating ID3 tags, you… Read more »

Fixing ApacheBench on OS X Lion

Posted by & filed under OS X.

So, you want to run some website benchmarks from your Mac, do you? Well, good news and bad news. The good news is that your Mac already has it installed, but the bad news is that it is broken. If you’ve run the command now, you’ll probably seen the following error message: $ ab -n… Read more »

Copying OpenIndiana Image onto USB in OS X

Posted by & filed under OS X.

What is OpenIndiana? It is a Unix-like OS based on the Illumos kernel, which is in turn based on OpenSolaris. Follow this guide if you would like to “burn” the OpenIndiana installer to a USB drive from within OS X. Doing this will allow you to boot from this USB drive so that you can… Read more »