Useful code snippets and scripts¶
Don't F&_k with Paste
// Prevents websites from blocking copy/paste
var allowPaste = function(e){
e.stopImmediatePropagation();
return true;
};
document.addEventListener('paste', allowPaste, true);
List the available versions of a PyPi package
curl -s https://pypi.org/pypi/<package>/json | jq '.releases | keys | .[]'
Git¶
Sign all commits from the commit id
git rebase --exec 'git commit --amend --no-edit -n -S' -i <commit id>