This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1) Go to - http://www.mozilla.com/en-US/firefox/fx/ in FF3-4, Chrome | |
// 2) Run this: | |
(function () { | |
var p = document.getElementsByTagName('p')[3]; | |
p.style.boxShadow = '5px 5px red'; | |
p.style.MozBoxShadow = '5px 5px yellow'; | |
p.style.WebkitBoxShadow = '-5px -5px blue'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Go to - https://developer.mozilla.org/en/css/-moz-transform | |
// Go to timeline view | |
// Copy/pasta into URL bar | |
javascript:(function(){var a=document.getElementsByTagName('pre')[1];a.style.WebkitTransform=a.style.WebkitTransform.replace('rotate(20deg)', 'rotate(90deg)');setTimeout(function(){a.style.position='absolute';},1000);}()); | |
// Start timeline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
'window' : this, | |
'position' : 'UI Engineer', | |
'location' : 'SmugMug', | |
'website' : 'http://smugmug.com/jobs', | |
'skills' : [ 'javascript', 'css', 'web standards', 'object oriented programming', 'php' ], | |
'benefits' : { | |
'awesomeTeam' : true, | |
'technicalCEO' : true, | |
'microManagement' : false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(w,d){var a=d.getElementById('hplogo'),b=w.setInterval(function(){if(a.childNodes.length>2){a.removeChild(a.childNodes[a.childNodes.length-1]);}else{w.clearInterval(b);}},83);}(this,this.document)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var x=encodeURIComponent('\'\';!--"<XSS>=&{()}'),u=[],n={},i=0,a=[].concat([].slice.call(document.getElementsByTagName('input')),[].slice.call(document.getElementsByTagName('select')),[].slice.call(document.getElementsByTagName('textarea'))),l=a.length;for(;i<l;++i){if(a[i].name&&!n[a[i].name]){n[a[i].name]=1;u.push(a[i].name);}}if(u.length){window.location.href+=(!~~window.location.href.indexOf('?')?'&':'?')+u.join('='+x+'&')+'='+x;}else{alert('No inputs!');}}()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(i){while(++i<70){localStorage['level_star_'+i]=3;}}(-1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
untiny() { | |
for U in $*; do | |
curl -I $U 2>/dev/null | grep ^Location | cut -d' ' -f2; | |
done; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nuke() { | |
local prompt="?"; | |
until [[ "^[YyNn]" =~ "$prompt" ]]; do | |
echo -n "Are you really sure? (y/n) "; | |
read prompt; | |
done; | |
if [[ "^[Yy]" =~ "$prompt" ]]; then | |
prompt="?"; | |
until [[ "^[YyNn]" =~ "$prompt" ]]; do | |
echo -n "Like REALLY sure? (y/n) "; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find the root of the local svn checkout | |
svnroot() { | |
[ -d $1/.svn ] && svnroot $1/../ $1 || ( cd ${2:-$1} && echo $PWD ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find the most popular author with svn blame | |
svnauthor() { | |
local FILE; | |
local AUTH; | |
local PERCENT; | |
local BIGGEST; | |
local WRITTEN; | |
local TOTAL; | |
for FILE in $*; do | |
SVN_ST=$(svn st $FILE 2>&1); |