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
<IfModule mod_rewrite.c> | |
RewriteCond %{REQUEST_FILENAME} \.(?:list|of|file|types)$ | |
RewriteCond %{HTTP_REFERER} !^https?://(?:(?:sub|doms|go|here)\.sites|go|here) [NC] | |
RewriteRule \.(?:list|of|file|types)$ - [F,L] | |
</IfModule> |
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
# reload this profile | |
reloadprofile() { | |
[ -x ~/.bash_profile ] && . ~/.bash_profile; | |
} | |
# edit this profile | |
editprofile() { | |
$EDITOR ~/.bash_profile; | |
} |
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); |
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
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
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
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
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(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
({ | |
'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, |