Skip to content

Instantly share code, notes, and snippets.

2B || !2B

Amitkumar Karnik karnikamit

2B || !2B
View GitHub Profile
karnikamit / quickpick
Created Jul 15, 2018 — forked from Dyrcona/quickpick
A bash script to batch git cherry-pick of many commits from a single source branch. It can become a new git command if you save it in your path with a name like git-quickpick. Then, you can run it like so `git quickpick foo/bar'. Very handy, that.
View quickpick
# Author: Thomas Berezansky <>
# Author: Jason Stephenson <>
# Feel free to use and to share this script in anyway you like.
# This script is intended as a shortcut for the git cherry-pick
# command when you have several commits that you want to cherry-pick
# into your local branch from another branch. It often results in a
karnikamit /
Created Mar 28, 2018 — forked from trhura/
A small python script for cdp device discovery
#! /usr/bin/env python
# A small script for cdp devices discovery
import sys
import pcapy
import socket
from dpkt import ethernet
from dpkt import cdp
from docopt import docopt
karnikamit /
Last active Sep 18, 2017 — forked from iansheridan/
A cheat sheet for GIT


git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

Get both a and b attributes, here 0 is a valid value.
Don't use comparison==0
What if c = '', its invalid!
class A(object):
a = 1
import requests
url = "http://localhost:5000/"
fin = open('simple_table.pdf', 'rb')
files = {'file': fin}
r =, files=files)
print r.text