Skip to content

Instantly share code, notes, and snippets.

@SietsevanderMolen
Created February 22, 2014 07:55
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SietsevanderMolen/9150193 to your computer and use it in GitHub Desktop.
Save SietsevanderMolen/9150193 to your computer and use it in GitHub Desktop.
Fuck you. Rage quit support for zsh.
function swagdatstring() {
local chars=" -_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
local flipped=" -_ɐqɔpǝɟɓɥıɾʞlɯuodbɹsʇnʌʍxʎz∀𐐒ƆᗡƎℲ⅁HIſ⋊⅂WNOԀΌᴚS⊥∩ΛMX⅄Z⇂ᄅƐㄣގ9ㄥ860"
local newstring=''
for ((i = ${#1}; i > 0; i--)); do
newstring+=${flipped[${chars[(i)${1[$i]}*]}]}
done
echo $newstring
}
function fuck() {
if [ $# -le 1 ]; then
print "Usage: fuck you [process]"
return 0
fi
pkill -9 $@[2]
if [ $? -eq 0 ]; then
print "\n(╯°□°)╯︵ " $(swagdatstring $@[2]) "\n"
else
print "\n(; ̄Д ̄) . o O( It’s not very effective... )\n"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment