Skip to content

Instantly share code, notes, and snippets.

@superdaigo
Last active June 10, 2016 09:15
Show Gist options
  • Save superdaigo/989963b2b49eedbe4a727c344c6dc664 to your computer and use it in GitHub Desktop.
Save superdaigo/989963b2b49eedbe4a727c344c6dc664 to your computer and use it in GitHub Desktop.
One Liner: Generate Random Password and Copy to Clipboard (OS X)
$ python -c 'import random,string,sys;sys.stdout.write("".join(random.sample(string.printable[:94],16)))' | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment