- Install Google Chrome
- Install Karabiner-Elements and map fn key to ctrl - https://github.com/tekezo/Karabiner-Elements
- Install Homebrew - http://brew.sh/
- Install GnuPG -
brew install gnupg2
- Generate SSH key -
ssh-keygen -t rsa -b 4096 -C "hrishimittal@gmail.com"
- Install rvm - http://rvm.io/
- Install ruby -
rvm install 2.4.0
(or whatever the latest version is) - Install Postgres.app - https://postgresapp.com/ Add psql to path - /Applications/Postgres.app/Contents/Versions/latest/bin/psql
- Git -
brew install git
I hereby claim:
- I am hrishimittal on github.
- I am hrishio (https://keybase.io/hrishio) on keybase.
- I have a public key whose fingerprint is 8A14 B5B8 2EFD B349 E1F7 F38A C84E 006F 6C18 3EED
To claim this, I am signing this object:
This is a post by Joel Spolsky, originally posted on answers.onstartups.com in response to a question. You can find a copy here.
This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.
The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea
#Given an array, get counts of occurences for each element | |
#H/T http://jerodsanto.net/2013/10/ruby-quick-tip-easily-count-occurrences-of-array-elements/ | |
def count_array_element_occurences(arr) | |
arr.each_with_object(Hash.new(0)) { |word,counts| counts[word] += 1 } | |
end | |
#Given a hash, convert it to an HTML table | |
def hash_to_table(h) | |
t = "<table><thead>" | |
if h.present? |
#Dump database | |
pg_dump -Fc -f filename.pgdump database_name | |
#Restore db from dump | |
dropdb database_name && createdb database_name | |
pg_restore -n public -x -d database_name -j 2 -Fc filename.pgdump > /dev/null | |
psql: | |
#create role |