This question already has an answer here:

Where are folks storing and sharing their Python geoprocessing scripts? For example, I know that GitHub has some shared scripts. ESRI is phasing-out ArcScripts, which is still really handy, and directing people to the Geoprocessing Model and Script Tool Gallery. What other repositories are available for sharing geoprocessing scripts?

merged by PolyGeo Aug 4 '17 at 22:36

This question was merged with Sharing Open Source Python/ArcPy Code and Models for ArcGIS Desktop? because it is an exact duplicate of that question.