Delete a route in Mac OS X Yosemite

I realized I had a post for how to add a static route, but didn’t have one for how to delete one…. So here ya go!  

How to Add a Route in Mac OS X Mavericks

Ever have need to access a network that your default gateway (router) doesn’t know about?  Just add the route via the CLI/Terminal on a Mac OS X running Mavericks! The command is sudo route -n add (network) (gateway)

MetroUI Hex Color Scheme

If you want to design a user interface integrating the Windows/Microsoft MetroUI color scheme, you’ll need the HEX codes for them. You could look at these codes below… or just find them at metroui.org.ua

Apache: Rewrite subdirectory to another domain…

I recently moved my blog from my home server to a hosted server with Mac Stadium.  When I did this, I borked a few links out there on the Internets.  I didn’t want to go update everywhere I saw “https://blog.benboyd.info/wordpress” with “http://blog.benboyd.info”, so I looked for an easy-peasy way to take those requests and forward … Continue Reading

Add SSH2 PHP Extension to Mountain Lion Server

If you’re running MAMP on Mountain Lion Server OS X you’ve probably noticed a few missing PHP extensions. Here’s a quick way to install the SSH2 extension: Download libssh2-1.4.2.tar.gz Download the latest SSH2 PECL from http://pecl.php.net/package/ssh2 Untar and gzip both packages in your download folder Compile libssh

Compile SSH2

Copy ssh2.so to your PHP extension_dir … Continue Reading

PHP Function to Pre-format and print and array

If you spend any time at all scripting in PHP, you probably setup arrays. When I’m coding and developing I always print the array so I know what I’m dealing with.  But to print an array in HTML, you have to preformat the text first.  When dealing with a lot of arrays, you end up … Continue Reading

Geektool Desktop

Daily Bible Verse On Your Desktop

Geektool just came out on the App Store. It’s a great app to customize your desktop. Right now I have iTunes song information, weather, calendars, and system information on my desktop. You can put pictures or the output of any terminal command on your desktop. After setting it up, I figured out a way to … Continue Reading

How to completely remove Xcode from a mac.

Xcode is a HUGE download and installation and can take up valuable space. If you’ve previously installed Xcode from a download instead of the Mac App Store, it’s time to do this and start fresh anyway. From the terminal: sudo /Developer/Library/uninstall-devtools –mode=all

PHP: How to print all $_SERVER Variables

If you don’t want to go through the PHP $_SERVER variables one by one to look for something, you can print them all at once with a simple PHP loop: The functions below print all of the PHP $_SERVER variables to the screen. <?php while (list($var,$value) = each ($_SERVER)) { echo “$var => $value”; } … Continue Reading