Handy Bash Code Snippets and functions