Skip to content

Instantly share code, notes, and snippets.

if ( window.addEventListener ) {
var kkeys = [], konami = "38,38,40,40,37,39,37,39";
window.addEventListener("keydown", function(e){
kkeys.push( e.keyCode );
if ( kkeys.toString().indexOf( konami ) >= 0 ) {
alert("ça rox");
kkeys = [];
}
}, true);
}
@charles-lebrun
charles-lebrun / git_agent.bash
Created October 10, 2017 20:23
init ssh agent
eval `ssh-agent -s`
@charles-lebrun
charles-lebrun / clean_git.bash
Last active January 5, 2018 13:58
remove file in all commit
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch PATH_FILES' --prune-empty --tag-name-filter cat -- --all
rm -rf .git/refs/original/ rm -rf .git/logs/
git gc --aggressive --prune=now