Various little code snippets that might be usable for someone