Useful shell scripts for Linux and Mac