This is intended for personal use only, my friends are welcome to use this service. Mirroring your codes is always a good idea.
You can setup your own Gogs or GitLab or whatever. But I recommend Gogs because it's written in Go that means cross plattform and low memory footprint.
The best part of Gogs is if you're familiar with GitHub and like the experience, you will like Gogs too.
And my friends, if you like to host your projects with me, or if you like to check out my snippets (too tiny too embarass to host on GitHub), welcome to http://code.jewei.io.