Skip to content

Instantly share code, notes, and snippets.

View hrishimittal's full-sized avatar

Hrishi Mittal hrishimittal

View GitHub Profile
@hrishimittal
hrishimittal / gist:4754b7d5a5c5ad68c673ba5562573a73
Created July 23, 2018 11:22 — forked from jacobvosmaer/gist:3187346
Open all files with git merge conflicts in Vim

Open all files with git merge conflicts in MacVim

git diff --name-only | uniq | xargs mvim

When git encounters a merge conflict, e.g. during a rebase, it drops you back into the shell with a dirty working directory. I like this one-liner for opening all files with a merge conflict in MacVim.

Once you're in Vim, you can then switch between the files with :n and :prev, or another favourite: :w | n (save current file and open the next command line-supplied file).

UPDATE: see below for a version that works with real terminal commands.

@hrishimittal
hrishimittal / Equity.md
Last active March 1, 2024 21:13 — forked from isaacsanders/Equity.md
Joel Spolsky's Totally Fair Method to Divide Up The Ownership of Any Startup

This is a post by Joel Spolsky, originally posted on answers.onstartups.com in response to a question. You can find a copy here.

Forming a new software startup, how do I allocate ownership fairly?

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