Skip to content

Instantly share code, notes, and snippets.

@ar1a
Last active June 3, 2018 02:19
Show Gist options
  • Save ar1a/5a48abf9a212f3670274d740fd2074f4 to your computer and use it in GitHub Desktop.
Save ar1a/5a48abf9a212f3670274d740fd2074f4 to your computer and use it in GitHub Desktop.
generate random characters shell script
alias pbcopy='xclip -selection clipboard -in'
r() {
tr -dc 0-9A-Za-z < /dev/urandom | dd status=none bs=1 count=${1:-13} | tee >(pbcopy) && echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment