$ ruby TheSIGnal.rb ~/untz-untz.ogg # start music deamon
Started as 13561
$ kill -s SIGSTOP 13561 # pause
$ kill -s SIGCONT 13561 # unpause
Note left by Noxn: Not tested because I lack rubygame and dont want it on my vps.
$ ruby TheSIGnal.rb ~/untz-untz.ogg # start music deamon
Started as 13561
$ kill -s SIGSTOP 13561 # pause
$ kill -s SIGCONT 13561 # unpause
Note left by Noxn: Not tested because I lack rubygame and dont want it on my vps.
require 'rubygems' | |
require 'rack' | |
class Object | |
def webapp | |
class << self | |
define_method :call do |env| | |
func, *attrs = env['REQUEST_PATH'].split('/').reject(&:empty?) | |
[200, {}, send(func, *attrs)] | |
end |