Skip to content

Instantly share code, notes, and snippets.

@yesmar
Last active January 27, 2018 00:51
Show Gist options
  • Save yesmar/4678303b819dbcc3b99df8bae40dada0 to your computer and use it in GitHub Desktop.
Save yesmar/4678303b819dbcc3b99df8bae40dada0 to your computer and use it in GitHub Desktop.
Jasonius insult generator
#!/bin/bash
# insult.bash: insult generator inspired by a picture I saw on Imgur
# Copyright © 2016, Ramsey Dow. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause
shopt -s extglob
declare -a alpha=(lazy stupid insecure idiotic slimy slutty smelly
pompous communist dicknose pie-eating racist elitist 'white trash'
drug-loving butterface 'tone deaf' ugly creepy
)
declare -a beta=(douche ass turd rectum butt cock shit crotch bitch
fart prick slut taint fuck dick boner shart nut sphincter
)
declare -a gamma=(pilot canoe captain pirate hammer knob box jockey
nazi waffle goblin blossum biscuit clown socket monster hound dragon
balloon
)
index=$((RANDOM % 18))
case ${alpha[$index]:0:1} in
@(a|e|i|o|u)) article=an ;;
*) article=a ;;
esac
echo "You know what? You're nothing but $article ${alpha[$index]} ${beta[$((RANDOM % 18))]} ${gamma[$((RANDOM % 18))]}."
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment