Skip to content

Instantly share code, notes, and snippets.

@willawill
Forked from quad/lockit.sh
Created August 21, 2012 10:44
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 willawill/3414443 to your computer and use it in GitHub Desktop.
Save willawill/3414443 to your computer and use it in GitHub Desktop.
Achtung: a not very nice hotdog
#!/bin/sh
#
# We have a few repeat customers here at the TWU 27 hotdog shack.
#
# They've decided it's FUN to visit our stand.
#
# So, we've cooked up something a little special for our valued customers.
set -e
osascript -e "set Volume 10"
say <<EOF
ATTENTION!
ATTENTION!
ATTENTION!
It was my responsibility to lock my computer when I was away.
But I didn't.
I could not even set my computer to automatically lock.
EOF
while ((1)); do
say "OBVIOUSLY I HAVE MADE MISTAKES"
# Invert the screen's colours.
osascript <<-EOF
tell application "System Events"
tell application processes
key code 28 using {command down, option down, control down}
end tell
end tell
EOF
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment