Skip to content

Instantly share code, notes, and snippets.

@telent
Created November 4, 2011 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save telent/1339565 to your computer and use it in GitHub Desktop.
Save telent/1339565 to your computer and use it in GitHub Desktop.
wsrv() { ruby -r sinatra -e "a=ARGV;;enable :run; set :port, ((i=a.index('-p') and a.slice!(i,2)[1].to_i)||8000); set :public, File.join(Dir.pwd,a[0]||'.'); get '/' do Sinatra::VERSION ; end;" -- $* ;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment