Bash and curl snippets