Want to use custom domain with GitHub pages?

I found this very helpful for people who want to use a custom domain with GitHub pages.