I hereby claim:
- I am aaronaddleman on github.
- I am aaronaddleman (https://keybase.io/aaronaddleman) on keybase.
- I have a public key ASCC4jHeYgDuLdjPw0AjlFhvGm4rfymjua7e7shGfQZqwwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# $1 = username | |
# $2 = left_port | |
# $3 = right_port | |
# $4 = final_port | |
function p2p { | |
ssh -At $1@hostone -L $2:localhost:$3 ssh -At hosttwo -L $2:localhost:$3 -At ssh hostthree -L $2:localhost:$4 | |
} |
LoadModule passenger_module /opt/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so | |
PassengerRoot /opt/local/lib/ruby/gems/1.8/gems/passenger-2.0.6 | |
PassengerRuby /opt/local/bin/ruby |
# in shell | |
cd /somewhere/already | |
ln -s /rails_app/public /new_app | |
# in apache.conf | |
<VirtualHost *:80> | |
ServerName www.yourhost.com | |
DocumentRoot /somewhere/already | |
RailsBaseURI /new_app | |
</VirtualHost> |
# Virtual host method | |
<VirtualHost *:80> | |
ServerName www.yourhost.com | |
DocumentRoot /somewhere/public | |
</VirtualHost> |
gem install passenger | |
port install apache2 | |
export APXS=/opt/local/apache2/bin/apxs | |
passenger-install-apache2-module |
# Method 1 | |
class Object | |
# Return only the methods not present on basic objects | |
def interesting_methods | |
(self.methods - Object.instance_methods).sort | |
end | |
end | |
# Method 2 | |
Class.instance_methods(false) |