Skip to content

Instantly share code, notes, and snippets.

@jmdeldin
Created July 28, 2015 06:48
Show Gist options
  • Save jmdeldin/6b0f3add072c40f265dc to your computer and use it in GitHub Desktop.
Save jmdeldin/6b0f3add072c40f265dc to your computer and use it in GitHub Desktop.
(defun make-password ()
(interactive)
(let* ((cmd "egrep '{6,}' /usr/share/dict/words | shuf -n 4 | tr \"\\n\" ' '")
(pass (replace-regexp-in-string " $" "" (shell-command-to-string cmd))))
(message pass)
(kill-new pass)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment