Every time a service like Github goes down, I always swear to myself I'll replace that dependency with a project that takes days, weeks, or months to implement will ensure I'll never have hours or minutes of downtime ever again.
I recently discovered another huge dependency I have when coding though : StackOverflow. That's going to be a lot harder to replace though...
[0]: https://github.com/gogits/gogs
PS: Yes, I realize the irony in using a github link here...
It could have been the motto of RhodeCode (https://rhodecode.com). Self-hosted repository management not only has a benefit of having one's uptime under control, but also is much more secure.