Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created January 19, 2022 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiew/f4634c7a2709ac02c79e2d80eda45f89 to your computer and use it in GitHub Desktop.
Save jamiew/f4634c7a2709ac02c79e2d80eda45f89 to your computer and use it in GitHub Desktop.
#!/bin/bash
# @jamiew 2020-01-27
#
# Generate a Wu-Tang name using the "official" name generator
# https://www.mess.be/inickgenwuname.php
# (AKA the Childish Gambino Wu-Tang Name Generator)
# TODO output a more username-friendly format - no spaces or special chars
#
# This script depends on `curl`, `td` and `pup`
# Some clever regex could eliminate the need for pup
#
# brew install pup
#
set -e
name="$@"
if [ -z "$name" ]; then
echo "$0: argument(s) required nawmean?"
exit 1
fi
curl -s -X POST \
https://www.mess.be/inickgenwuname.php \
-drealname="$name" \
| pup --color 'font font text{}' \
| tr -d \\n
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment