This script has been moved to user.sh gist
Nothing in here was current, maybe someday I will go back and re-document everything