hi
here are some links to mining script
https://github.com/p2k/ecoinpool
https://github.com/forrestv/p2pool
https://github.com/cdhowie/Bitcoin-mining-proxy
https://github.com/search?q=mining+pool&type=Repositories&ref=searchresults
if you feel i am helpfull then
BTC
1HkdMHSoMJyWFcx23jqynvEHRY4bqucAao