I’m tired of googling for the same code snippets over and over again, so I decided to put it all in one location.