Skip to content

Instantly share code, notes, and snippets.

@dbrock
Created May 10, 2014 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbrock/bb53a2fc160a549b1ef5 to your computer and use it in GitHub Desktop.
Save dbrock/bb53a2fc160a549b1ef5 to your computer and use it in GitHub Desktop.
Generate memorable passwords ("correct horse battery staple")
genpass() { local w=/usr/share/dict/words; for i in {1..4}; do cat -n $w |
grep -w $(jot -r 1 1 `wc -l <$w`) | cut -f2; done | xargs echo; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment