Skip to content

Instantly share code, notes, and snippets.

View Noxn's full-sized avatar

Noxn Xon Noxn

  • None.
  • None either.
View GitHub Profile
$ 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.

@Noxn
Noxn / webapp.rb
Created November 15, 2010 20:53 — forked from igrigorik/webapp.rb
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