Created
February 19, 2013 15:22
-
-
Save daviddoran/4986809 to your computer and use it in GitHub Desktop.
Needed to generate a few random-looking strings for a spec document. For OSX (pbcopy).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate 7-char string and copy to pasteboard (e.g. "ff757eb" and "41d0a9a") | |
head -c 10 /dev/urandom | shasum | head -c 7 | pbcopy | |
# Use date as input | |
date | shasum | head -c 7 | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment