Code snippets and useful commands