https://gist.github.com/hydrogen18/8185934
Also you should use the CDN to redirect to the correct mirror
https://gist.github.com/hydrogen18/8185934