Skip to content

Instantly share code, notes, and snippets.

@jmarhee
Created June 21, 2021 22:02
Show Gist options
  • Save jmarhee/410f88f82db3f75a9325fb0023231c14 to your computer and use it in GitHub Desktop.
Save jmarhee/410f88f82db3f75a9325fb0023231c14 to your computer and use it in GitHub Desktop.
#!/bin/bash
function new_password () {
if [ ! -z $1 ]; then
length=$1
else
length=20
fi
curl -s "https://www.random.org/passwords/?num=1&len=$length&format=plain&rnd=new" | pbcopy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment