Skip to content

Instantly share code, notes, and snippets.

@francislewis
Created February 21, 2015 20:59
Show Gist options
  • Save francislewis/c2942a7bc0158dcab3a0 to your computer and use it in GitHub Desktop.
Save francislewis/c2942a7bc0158dcab3a0 to your computer and use it in GitHub Desktop.
Randomly play "let it go" on a victims PC
#!/bin/bash
#Will automatically force their volume to be set to max. You may want to adjust this so it isn't too loud
amixer -D pulse sset Master unmute&&amixer -D pulse sset Master 100%
#This will generate a number between 150 and 1, the value will be stored in the NUMBER variable
NUMBER=$[ ( $RANDOM % 150 ) + 1 ]
#This will open up a video specified to a random time
vlc --start-time $NUMBER https://www.youtube.com/watch?v=L0MK7qz13bU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment