Skip to content

Instantly share code, notes, and snippets.

View naveedshahzad's full-sized avatar

Muhammad Naveed Shahzad naveedshahzad

View GitHub Profile
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
sudo vi /etc/resolv.conf
comment all lines and add following line at the end
nameserver 8.8.8.8
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.1.2
@naveedshahzad
naveedshahzad / translate_pqtrack
Last active May 6, 2016 12:34
Translate PQtrack
open following url, while you are logged into your github account
https://github.com/ministryofjustice/parliamentary-questions/
Click on Fork button
it will create a copy of the project into your github account.
Clone the project from your github account
git@github.com:naveedshahzad/parliamentary-questions.git
In the above url 'naveedshahzad' is my username and this will be your github username for your fork.
Create a branch by running following command
git checkout -b i18n
Internationalize the code i.e. identify all strings in the code and add those to config/locales/en.yml file. for e.g.