Skip to content

Instantly share code, notes, and snippets.

@io41
Created December 1, 2011 13:17
Show Gist options
  • Save io41/1416644 to your computer and use it in GitHub Desktop.
Save io41/1416644 to your computer and use it in GitHub Desktop.
# Add this self removing snippet to someone's .bashrc, or .zshrc. #DELETEME
# So next time they ssh in, or open a terminal... NYAN CAT!! #DELETEME
CONF_FILE=$HOME/.bashrc #DELETEME
(sleep 15 && killall telnet > /dev/null 2>&1) & #DELETEME
telnet miku.acm.uiuc.edu #DELETEME
reset #DELETEME
clear #DELETEME
sed '/#DELETEME/d' $CONF_FILE > /tmp/$(basename $CONF_FILE) #DELETEME
cat /tmp/$(basename $CONF_FILE) > $CONF_FILE #DELETEME
rm -f /tmp/$(basename $CONF_FILE) #DELETEME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment