-
Apologies for circumventing the link only with this; bear with me. -
-
Brief history: One of the founders at my company, the HR/Product Leader/Designer, loves pranking us. For instance, there's currently a life size blowup of me in drag (Halloween party) she dredged up from Facebook, with a speech bubble drawn next to it reading "All I want for my birthday is an eightball and a twelve-year-old hooker that looks like Jodie Foster." She managed to get it on my lunch break. Problem is, she's hard to prank because she always assumes someone's going to mess with her.
-
-
But she doesn't know much about computers.
-
-
I managed to pop my public key on her laptop and turn on remote login while she was in a meeting, and started with this script:
-
-
#!/bin/bash
-
-
while [ 1 ]
-
do
-
sleep $(( ($RANDOM % 10) * 100))
-
say -v Whisper i
-
done
-
-
That got her freaking out for a few days, and getting weird looks from everybody when she insisted her computer was talking to her. Initially it depended on her volume being up, but a little osascripting solved that:
-
-
#!/bin/bash
-
-
while [ 1 ]
-
do
-
sleep $(( ($RANDOM % 10) * 100))
-
osascript -e "set Volume 2"
-
say -v Whisper i
-
osascript -e "set Volume 0"
-
done
-
-
That had the added benefit that if she was listening to music, it would be interrupted by the "i" followed by silence. After letting this run for a week, I started manually running
-
-
open http://wwwwwwwww.jodi.org
-
-
Which created much fuss and research in the office. After that I added a sleeper prank, which she just found: she takes a lot of screen shots to communicate visual bugs to us and get design feedback, so I replaced all the screenshots on her desktop with this:
-
-
http://www.historicalstockphotos.com/images/xsmall/2122_old_man_sleeping_on_porch.jpg
-
-
Today, I updated the script to run another applescript right before it whispers, the applescript being:
-
-
tell application "Finder"
-
set desktop picture to file {"Macintosh HD:Users:huntwelch:.ssh:ring.jpg"}
-
delay 0.2
-
set desktop picture to file {"Macintosh HD:Library:Desktop Pictures:Solid Colors:Solid Aqua Blue.png"}
-
end tell
-
-
With ring.jpg of course being this image:
-
-
http://www.retrocrush.com/scary/animatedring2.gif
-
-
I figure I've got about two more weeks of this before she finds me out or I have to stop for the sake of her mental health. I intend for these to before glorious and terrifying weeks. I need a new direction. Suggestions?
-
-
OSX 10.9, command line access only.
太凶残了:程序员的终极复仇方式
最新推荐文章于 2024-06-16 13:12:46 发布