Last active
October 13, 2015 03:47
-
-
Save clyfe/4134366 to your computer and use it in GitHub Desktop.
black friday
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo apt-get install vlc vlc-plugin-pulse | |
require 'open-uri' | |
song = "Music/Creedence\\ Clearwater\\ Revival\\ -\\ Hey\\ Tonight.mp3" | |
loop do | |
begin | |
sleep 1 | |
open("http://www.emag.ro/") | |
loop do | |
Thread.new { system("cvlc #{song}") }.join | |
end | |
rescue OpenURI::HTTPError => e | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment