Tag Archives: shell
Clone your OSX terminal window
Sometimes, when working on a terminal window I would like to open a new window on the exact same location or path. This little AppleScript will do the trick: tell app "Terminal" to do script "cd \"'`pwd`'\"" From the command line: osascript -e 'tell app "Terminal" to do script "cd \”'`pwd`'\”"' You can also create [...]
Check your server status with email notification
I wanted to do this for a while and never really sit down and code it. Yesterday I came across this pretty nice script by Ben from Coderholic which does exactly that: check your server status and send you an email if it is other than 200 (OK). #!/bin/bash # Query a supplied [...]
Enabling PHP5 on Mac OS X Leopard
I had done this already at work, but for some reason my MacBook Pro still didn’t “understand” PHP. Well, I’ve decided it’s time to activate it: # Use your favorite editor mate /etc/apache2/httpd.conf # Uncomment the line: #LoadModule php5_module libexec/apache2/libphp5.so # Restart apache sudo apachectl restart Done.
