Skip to content

Instantly share code, notes, and snippets.

View akshaymankar's full-sized avatar
Behold! The unquenchable fire of the stars!

Akshay Mankar akshaymankar

Behold! The unquenchable fire of the stars!
View GitHub Profile
import org.apache.http.HttpException;
import org.apache.http.HttpHost;
import org.apache.http.HttpRequest;
import org.apache.http.conn.SchemePortResolver;
import org.apache.http.impl.conn.DefaultRoutePlanner;
import org.apache.http.protocol.HttpContext;
import org.slf4j.LoggerFactory;
* ***[recommended]**** Use System default planner like this :
source $HOME/.bashrc
rvm use 1.9.3
bundle install
read -d '' database_yml <<"EOF"
login: &login
adapter: "postgresql"
encoding: utf8
username: "postgres"
password: "postgres"