git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| function proml { | |
| local BLUE="\[\033[0;34m\]" | |
| local RED="\[\033[0;31m\]" | |
| local LIGHT_RED="\[\033[1;31m\]" | |
| local GREEN="\[\033[0;32m\]" | |
| local LIGHT_GREEN="\[\033[1;32m\]" |
| # Some good references are: | |
| # http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
| # http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
| # http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
| #1. Install PostgreSQL postgis and postgres | |
| brew install postgis | |
| initdb /usr/local/var/postgres | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| class Array | |
| def by(n) | |
| buff, self_ = [], self.clone | |
| if self.size % n == 0 | |
| (self.size/n).times{ buff << self_.shift(n) } | |
| end | |
| buff | |
| end |
| #!/usr/bin/env ruby | |
| # API Documentation at http://api.wikia.com/wiki/LyricWiki_API | |
| require 'open-uri' | |
| require 'json' | |
| require 'tmpdir' | |
| ARTIST = "Johnny Cash" |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| AWS_CONFIG = { | |
| 'access_key_id' => YOUR_ACCESS_KEY, | |
| 'secret_access_key' => YOUR_SECRET_ACCESS_KEY, | |
| 'bucket' => 'froala', | |
| 'acl' => 'public-read', | |
| 'key_start' => 'uploads/', | |
| 'region' => 's3' # For other regions than us-east-1, use s3-region. E.g.: s3-eu-west-1 | |
| } |