Some more or less usefull code snippets.