Useful command line scripts