Skip to content

Instantly share code, notes, and snippets.

View pierot's full-sized avatar
🏠
Working from home

Pieter Michels pierot

🏠
Working from home
View GitHub Profile
@pierot
pierot / gist:2005886
Created March 9, 2012 09:52
brew install v8
brew install v8
@pierot
pierot / gist:2005873
Created March 9, 2012 09:47
therubyracer problems
/Users/pieterm/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
checking for main() in -lobjc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
@pierot
pierot / rvm-default.sh
Created January 23, 2012 19:33
rvm-default
$ rvm --default use 1.9.3
@pierot
pierot / rvm-repair.sh
Created January 23, 2012 19:32
rvm repair all
$ rvm repair all
backend www {
.host = "www.example.com";
.port = "http";
.connect_timeout = 15s;
.first_byte_timeout = 25s;
.between_bytes_timeout = 25s;
}
Error 503 Service Unavailable
Service Unavailable
Guru Meditation:XID: 828451354
Varnish cache server
$ sudo reboot
# don't forget to install ssh server :)
sudo apt-get install ssh openssh-server
# put it in headless-mode
sudo mv /etc/init/gdm.conf /etc/init/gdm.conf.disabled
$ sudo /etc/init.d/networking restart
auto eth0
iface eth0 inet dhcp
auto eth1
address 192.168.56.5
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255