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?