Little code snippets that might be usefull