I hereby claim:
- I am aaronaddleman on github.
- I am addlema (https://keybase.io/addlema) on keybase.
- I have a public key whose fingerprint is CADE E0FC 983A 45E7 03FF C7E0 BEA4 7B59 27AE 6EC9
To claim this, I am signing this object:
| # 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) |
| gem install passenger | |
| port install apache2 | |
| export APXS=/opt/local/apache2/bin/apxs | |
| passenger-install-apache2-module |
| # Virtual host method | |
| <VirtualHost *:80> | |
| ServerName www.yourhost.com | |
| DocumentRoot /somewhere/public | |
| </VirtualHost> |
| # 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> |
| 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 |
| # $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 | |
| } |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: