Skip to content

Instantly share code, notes, and snippets.

@anowell
Forked from jgagner/change_desktop_to_bieber.sh
Last active August 29, 2015 13:57
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 anowell/9496320 to your computer and use it in GitHub Desktop.
Save anowell/9496320 to your computer and use it in GitHub Desktop.
#!/bin/bash
#sets the victims desktop to beiber.
/usr/bin/curl https://gist.githubusercontent.com/jgagner/9393470/raw/6ea21b41c27f22cd9fd50d7659ab314b8bfd8403/belieber.jpg > /tmp/belieber.jpg.base64
/usr/bin/base64 -D --input /tmp/belieber.jpg.base64 -o ~/belieber.jpg
/usr/bin/osascript -e "tell application \"System Events\" to set picture of every desktop to \"~/belieber.jpg\""
#remind our victim they are beliebers
CRONFILE=/tmp/belieber.cron
/usr/bin/crontab -l 1> $CRONFILE
echo "0,30 * * * * say \"I'm a belieber. Oh yeah!\"" >> $CRONFILE
/usr/bin/crontab $CRONFILE
/usr/bin/osascript -e "set Volume 9"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment