Tag Archives: bash
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 [...]
