Skip to content

Instantly share code, notes, and snippets.

@flaviomuniz
Last active February 3, 2016 15:47
Show Gist options
  • Save flaviomuniz/87e7ebc9f891a31b60ea to your computer and use it in GitHub Desktop.
Save flaviomuniz/87e7ebc9f891a31b60ea to your computer and use it in GitHub Desktop.
Crontab Joke :p
#Create a crontab with this script to joke your friend.
#Change __IMG__PATH__ to path with your image, download image and save in a hide directory.
/1 * * * * curl -o /tmp/joker.jpg DOWNLOAD_IMG_URL; osascript -e 'tell application "System Events" to set picture of every desktop to ("/tmp/joker.jpg" as POSIX file as alias)' killall Dock;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment