Skip to content

Instantly share code, notes, and snippets.

@negipo
Created May 10, 2015 12:10
Show Gist options
  • Save negipo/451fa06445bac8930bc5 to your computer and use it in GitHub Desktop.
Save negipo/451fa06445bac8930bc5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'bundler/setup'
Bundler.require
DEFAULT_TARGETS = %w(
https://www.youtube.com/playlist?list=PLA6DC52121CDE580A
https://www.youtube.com/playlist?list=PL1HChj_66u32ZsFs-p4hu7fjfzC6amQGl
https://www.youtube.com/playlist?list=PL1HChj_66u3250P_rvNy9e34N85-o1Obe
https://www.youtube.com/playlist?list=PL1HChj_66u31ydENSAG5LUxUGpS_ffx9j
https://www.youtube.com/playlist?list=PL1HChj_66u32u8-KZq-ptJjm0GoV0AqKb
https://www.youtube.com/playlist?list=PL1HChj_66u31Jg8b5TtEX-N2-RzN0oIKN
https://www.youtube.com/playlist?list=PL1HChj_66u31WYnGsc_7sXcv3tKYUKJb1
https://www.youtube.com/playlist?list=PL1HChj_66u314S_0ptuG2HXyUJpxDp3JC
https://www.youtube.com/playlist?list=PL1HChj_66u30bRWk0Ty_nEZUMzHa3B3TI
https://www.youtube.com/watch?v=BoSGFGg8ijU&list=PLvlw_ICcAI4cDtL3pBl80RMawk-sMTmki
https://www.youtube.com/watch?v=_D_Yhevp6r0&list=PLvlw_ICcAI4fShFuH9p4ugLuv75jyDjbu
https://www.youtube.com/watch?v=G30vzvuEmFo&list=PLvlw_ICcAI4dXql41zUwAY2FnsCIzT5b-
https://www.youtube.com/watch?v=XEh9KLg_sVQ&list=PLvlw_ICcAI4dT5siJAyQJag9_-T_X5VT_
https://www.youtube.com/watch?v=k8vwQF3v0sc&list=PLvlw_ICcAI4c4b2ZGM9BmSLGCQVf7x0CO
https://www.youtube.com/watch?v=CI6CX6g40AU&list=PLvlw_ICcAI4cqAVVnhRagLO5ortNNTE_X
https://www.youtube.com/watch?v=gaZPSqXxD3w&list=PLvlw_ICcAI4ermdmmjtr6uxYj0eZ_nKc4
https://www.youtube.com/watch?v=WBhE5OhhjKM&list=PLvlw_ICcAI4dgellaUrmAcV7s-VhfqHat
https://www.youtube.com/watch?v=PpQ3xcxJOis&list=PLvlw_ICcAI4ed3giZuufaP-0ccuK9ZsY9
https://www.youtube.com/watch?v=l2g3fE7Pn0M&list=PLvlw_ICcAI4f2cXiWqPrA9FckUS31E3ju
)
class App < Sinatra::Application
get '/start' do
`castnow #{params[:target] || DEFAULT_TARGETS.sample} &`
'ok'
end
get '/stop' do
`castnow stop &`
'ok'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment