Code snippets from my daily work that might be useful for others