Skip to content

Instantly share code, notes, and snippets.

@norm
Last active June 1, 2018 10:52
Show Gist options
  • Save norm/b04b95d4b93ec068910892159e359883 to your computer and use it in GitHub Desktop.
Save norm/b04b95d4b93ec068910892159e359883 to your computer and use it in GitHub Desktop.
heroku-style codenames
#!/bin/bash
adjectives=(
aged autumn
billowing bitter black blue bold broken
cold cool crimson
damp dark dawn delicate divine dry
empty
falling floral fragrant frosty
green
hidden holy
icy
late lingering little long
misty morning muddy
old
patient proud
quiet
red restless rough
shy silent small snowy solitary sparkling spring still summer
twilight
wandering weathered white wild winter wispy withered
young
)
nouns=(
bird breeze brook bush butterfly
cherry cloud
darkness dawn dew dream dust
feather field fire firefly flower fog forest frost
glade glitter grass
haze hill
lake leaf
meadow moon morning mountain
night
paper pine pond
rain resonance river
sea shadow shape silence sky snow snowflake sound sun sunset surf
thunder tree
violet voice
water waterfall wave wildflower wind wood
)
for i in $(seq 1 ${1:-1}); do
adjective=${adjectives[$(( $(jot -r 1 1 ${#adjectives[@]}) - 1 ))]}
noun=${nouns[$(( $(jot -r 1 1 ${#nouns[@]}) - 1 ))]}
echo "${adjective}-${noun}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment