Skip to content

Instantly share code, notes, and snippets.

@ksarmalkar
ksarmalkar / System Design.md
Created June 6, 2019 15:05 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ksarmalkar
ksarmalkar / who_is_my_mummy.sh
Created December 21, 2015 16:57 — forked from joechrysler/who_is_my_mummy.sh
Find the nearest parent branch of the current git branch
#!/usr/bin/env zsh
branch=`git rev-parse --abbrev-ref HEAD`
git show-branch | ack '\*' | ack -v "$branch" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'`
# How it works:
# 1| Display a textual history of all commits.
# 2| Ancestors of the current commit are indicated
# by a star. Filter out everything else.
@ksarmalkar
ksarmalkar / Readme.md
Created July 3, 2014 04:11
How to host maven repo on GitHub ?

The first step is to create a separate clone of your GitHub repository in a directory next to your primary local repository:

$ pwd
/Users/ksarmalkar/workspace/Android-ViewPagerIndicator
$ cd ..
$ git clone git@github.com:ksarmalkar/Android-ViewPagerIndicator.git Android-ViewPagerIndicator-Pages
$ cd Android-ViewPagerIndicator-Pages