Last active
August 6, 2020 18:43
-
-
Save marshallmassengill/7e633be2b2ff0df2b3162bb679684728 to your computer and use it in GitHub Desktop.
Generate a project codename as a vRO (vRealize Orchestrator) action
This file contains 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 a project codename as a vRO (vRealize Orchestrator) action | |
//return type is string | |
//no inputs | |
//Shamelessly borrowed from https://github.com/zachwlewis/projectcodename | |
//GPL 2.0 licensed | |
var attributes = [ | |
// Environ | |
"desert", "tundra", "mountain", "space", "field", "urban", | |
// Stealth and cunning | |
"hidden", "covert", "uncanny", "scheming", "decisive", "untouchable", "stalking", | |
// Volitility | |
"rowdy", "dangerous", "explosive", "threatening", "warring", "deadly", "killer", "insane", "wild", | |
// Needs correction | |
"bad", "unnecessary", "unknown", "unexpected", "waning", | |
// Organic Gems and materials | |
"amber", "bone", "coral", "ivory", "jet", "nacre", "pearl", "obsidian", "glass", | |
// Regular Gems | |
"agate", "beryl", "diamond", "opal", "ruby", "onyx", "sapphire", "emerald", "jade", | |
// Colors | |
"red", "orange", "yellow", "green", "blue", "violet", | |
// Unsorted | |
"draconic", "wireless", "spinning", "falling", "orbiting", "hunting", "chasing", "searching", "revealing", "flying", "destroyed", "inconceivable", "tarnished" | |
] | |
var objects = [ | |
// Large cats | |
"panther", "wildcat", "tiger", "lion", "cheetah", "cougar", "leopard", | |
// Snakes | |
"viper", "cottonmouth", "python", "boa", "sidewinder", "cobra", | |
// Other predators | |
"grizzly", "jackal", "falcon", | |
// Prey | |
"wildebeest", "gazelle", "zebra", "elk", "moose", "deer", "stag", "pony", "koala", "sloth", | |
// HORSES! | |
"horse", "stallion", "foal", "colt", "mare", "yearling", "filly", "gelding", | |
// Mythical creatures | |
"mermaid", "unicorn", "fairy", "troll", "yeti", "pegasus", "griffin", "dragon", | |
// Occupations | |
"nomad", "wizard", "cleric", "pilot", "captain", "commander", "general", "major", "admiral", "chef", "inspector", | |
// Technology | |
"mainframe", "device", "motherboard", "network", "transistor", "packet", "robot", "android", "cyborg", "display", "battery", "memory", "disk", "cartridge", "tape", "camera", "projector", | |
// Sea life | |
"octopus", "lobster", "crab", "barnacle", "hammerhead", "orca", "piranha", | |
// Weather | |
"storm", "thunder", "lightning", "rain", "hail", "sun", "drought", "snow", "drizzle", | |
// Musical | |
"piano", "keyboard", "guitar", "trumpet", "trombone", "flute", "cornet", "horn", "tuba", "clarinet", "saxophone", "piccolo", "violin", "harp", "cello", "drum", "organ", "banjo", "rhythm", "beat", "sound", "song", | |
// Tools | |
"screwdiver", "sander", "lathe", "mill", "welder", "mask", "hammer", "drill", "compressor", "wrench", "mixer", "router", "vacuum", | |
// Planets | |
"Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto", | |
// Other | |
"warning", "presence", "weapon", "player", "ink", "case", "cup", "chain", "door" | |
] | |
function createCodename() | |
{ | |
var f = attributes[Math.floor(Math.random() * attributes.length)].toUpperCase(); | |
var l = objects[Math.floor(Math.random() * objects.length)].toUpperCase(); | |
codename = f + " " + l; | |
return codename; | |
} | |
return createCodename(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment