Skip to content

Instantly share code, notes, and snippets.

@pogodan
pogodan / tunnel.thor
Created May 3, 2011 07:30
thor/pow reverse SSH tunnel
class Tunnel < Thor
method_options :environment => "development", :aliases => "-e", :desc => "Config environment"
desc "start", "Start an ssh tunnel"
def start
command = "ssh -nNT -g -R *:#{tunnel['public_port']}:0.0.0.0:#{tunnel['local_port']} #{tunnel['username']}@#{tunnel['public_host']}"
puts "executing #{command}"
exec command
end
@pogodan
pogodan / Gemfile
Created April 24, 2011 14:10
edge rails/3.1 Gemfile
source :rubygems
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git'
gem 'sqlite3'
# Asset template engines