Skip to content

Instantly share code, notes, and snippets.

@chrisalbright
chrisalbright / index.html
Last active July 25, 2016 02:23
Bookmarklets :)
<a href='javascript:(function(){var a=alert,b=Date,c=Number,d="";if("undefined"!=typeof window.getSelection){var e=window.getSelection();if(e.rangeCount){for(var f=document.createElement("div"),g=0,h=e.rangeCount;g<h;++g)f.appendChild(e.getRangeAt(g).cloneContents());d=f.innerHTML}}else"undefined"!=typeof document.selection&&"Text"==document.selection.type&&(d=document.selection.createRange().htmlText);a(new b(c(d)));})();'>Parse Epoch</a>
@chrisalbright
chrisalbright / cleanup_compromized_php.sh
Created January 23, 2014 01:27
Clean up eval(base64_decode(..*)) PHP code (php hates programmers)
ack-grep -c 'eval\(base64_decode' --php | grep -ve '0$' | cut -d: -f1 | xargs perl -pi -e 's@<..*eval.base64_decode..*?>@@'