Skip to content

Instantly share code, notes, and snippets.

View barzik's full-sized avatar

Ran Bar-Zik barzik

View GitHub Profile
@barzik
barzik / .gitconfig
Last active August 30, 2021 13:22
Recommended git alias list
#Based on http://haacked.com/archive/2014/07/28/github-flow-aliases/
[alias]
co = checkout
ec = config --global -e
up = !git pull --rebase --prune $@ && git submodule update --init --recursive
cob = checkout -b
cm = !git add -A && git commit -m
save = "!f(){ ARG1=${1:-SAVEPOINT}; git add -A && git commit -m \"$ARG1\"; };f"
wip = !git add -u && git commit -m "WIP"
@barzik
barzik / doppelganger.user.js
Last active December 12, 2015 03:28
Anti-doppelganger Grease Monkey script
// ==UserScript==
// @name Anti-doppelganger ver 1.3
// @namespace http://internet-israel.com
// @description Remove doppelganger week from my fucking feed
// @grant none
// @include https://www.facebook.com/*
// @include http://www.facebook.com/*
// @require http://code.jquery.com/jquery.js
// ==/UserScript==
// console.lol by @RonnyOrbach, idea by Erez Avny
if (typeof console != 'undefined') console.lol = function(){
var args = [].slice.call(arguments, 0);
args.unshift("LOL");
args.push("LOLOLOL!")
console.log.apply(console, args);
};