Skip to content

Instantly share code, notes, and snippets.

@aanklewicz
Created January 15, 2021 23:39
Show Gist options
  • Save aanklewicz/65a1a45828aaa53c59b9d31638791a18 to your computer and use it in GitHub Desktop.
Save aanklewicz/65a1a45828aaa53c59b9d31638791a18 to your computer and use it in GitHub Desktop.
#!/bin/sh
# usage ./Email\ reset.sh -e username@domain.com
while getopts "e:" opt; do
case $opt in
e) EMAIL=$OPTARG ;;
*) echo 'error' >&2
exit 1
esac
done
PASSWORD=$(curl https://www.dinopass.com/password/simple)
~/bin/gam/gam update user ${EMAIL} password ${PASSWORD} changepassword on
echo "${EMAIL}'s password is ${PASSWORD}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment