Skip to content

Instantly share code, notes, and snippets.

View sroysf's full-sized avatar

Saptarshi Roy sroysf

  • Salesforce.com
  • San Francisco, CA
View GitHub Profile
@sroysf
sroysf / gist:1395241
Created November 26, 2011 07:36
owner:saptarshir@gmail.com
Validate
@sroysf
sroysf / gist:1280410
Created October 12, 2011 06:04
Creating and configuring a new postgres database for an app

Search and replace

Replace DB_USER
Replace DB_NAME
Replace DB_PASS
Replace PROJ_NAME

Create and setup the database

sudo adduser DB_USER

@sroysf
sroysf / herokuUbuntuGettingStarted.md
Created July 15, 2011 01:29
Getting started with Heroku client on Ubuntu 10.04

Getting started with Heroku client on Ubuntu 10.04

Note : This actually does work on a GSE Linux box as well.

First, prepare your system with all the libraries needed for Ruby / RVM. You will need to pay attention to the output from aptitude as it resolves the various dependencies. You may or may not have conflicts depending on your specific system setup. Make sure that you agree with what aptitude is about to do before proceeding.

sudo aptitude install build-essential bison openssl libreadline6 libreadline6-dev curl git 
sudo aptitude install zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev 
sudo aptitude install sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev subversion