I use this site quite a bit for programming and code storage. Most content is user-contributed but is reasonably appropriate, although tools usable for hacking or the like are potentially stored here.
Using this Git Hosting Service (Version Control System) since some time. Great user experience and easy to use. Includes a huge bunch of reports on repositories and commiters which sometimes might be an issue regarding data privacy protection. Commiters should be aware of this and agree to this.
The best open source code repository site.
I am uploading my project to GitHub and renew it couple times a day after significant changes. It gives me a chance to get my previous version of my project if something went wrong.
I am practicing creating and using my own Gists. It makes my work in Sublime Text 3 much more convenient.
I don't want to point the exact links but in github.com you can find the complete source code for functional botnets. They don't mind, on the contrary, despite being warned they never removed them.