Various snippets of code that could be useful for sys admin tasks