I hereby claim:
- I am michaelfox on github.
- I am michaelfox (https://keybase.io/michaelfox) on keybase.
- I have a public key ASBGi0B0HzDkYT0KTVWSJO7KtLySf8opq9tDtV_4MTiLZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
javascript:function toArray (c){var a, k;a=new Array;for (k=0; k<c.length; ++k)a[k]=c[k];return a;}function insAtTop(par,child){if(par.childNodes.length) par.insertBefore(child, par.childNodes[0]);else par.appendChild(child);}function countCols(tab){var nCols, i;nCols=0;for(i=0;i<tab.rows.length;++i)if(tab.rows[i].cells.length>nCols)nCols=tab.rows[i].cells.length;return nCols;}function makeHeaderLink(tableNo, colNo, ord){var link;link=document.createElement('a');link.href='javascript:sortTable('+tableNo+','+colNo+','+ord+');';link.appendChild(document.createTextNode((ord>0)?'a':'d'));return link;}function makeHeader(tableNo,nCols){var header, headerCell, i;header=document.createElement('tr');for(i=0;i<nCols;++i){headerCell=document.createElement('td');headerCell.appendChild(makeHeaderLink(tableNo,i,1));headerCell.appendChild(document.createTextNode('/'));headerCell.appendChild(makeHeaderLink(tableNo,i,-1));header.appendChild(headerCell);}return header;}g_tables=toArray(document.getElementsByTagName('table')); |
git init | |
touch .gitignore | |
# edit .gitignore to ignore files you don't want tracked | |
git add . | |
git commit -m 'Initial Commit' | |
git remote add origin <github-url> | |
git push origin master |
# Site: sitename.local | |
<VirtualHost *:80> | |
ServerName sitename.local | |
ServerAlias *.sitename.local | |
DirectoryIndex index.php index.html | |
DocumentRoot "/www/sitename/web" |
<IfModule mod_rewrite.c> | |
# Force www | |
RewriteEngine on | |
RewriteCond %{HTTPS} (on)? | |
RewriteCond %{HTTP_HOST} !^www\..+$ [NC] | |
RewriteRule ^ http(?%1s)://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> | |
@Brett's searches | |
@Brett's custom searches | |
go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo) | |
b https://duckduckgo.com/?q=%21%s Bang search (DuckDuckGo) | |
grep https://www.cueup.com/?q=%s&fq=1 Greplin | |
ss https://duckduckgo.com/site:%d%20%s Current site (DuckDuckGo) | |
bt https://duckduckgo.com/site:brettterpstra.com%20%s BrettTerpstra.com (DuckDuckGo) | |
gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything) | |
hints http://hints.macworld.com/search.php?query=%s&keyType=all&datestart=&dateend=&topic=0&type=stories&results=50&mode=search Search Mac OS X Hints | |
mu http://www.macupdate.com/find/mac/%s Search MacUpdate (Software) |
See html5.org/r/6884
/^[a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/
#!/usr/bin/env php | |
<?php | |
$system_support_dir = '/Library/Application Support/TextMate'; | |
$system_bundles_dir = $system_support_dir . "/Bundles"; | |
$official_bundles = array( | |
"ActionScript" => "https://github.com/textmate/actionscript.tmbundle", | |
"Apache" => "https://github.com/textmate/apache.tmbundle", | |
"AppleScript" => "https://github.com/textmate/applescript.tmbundle", |
{ | |
"searchEngine": "http://www.google.com/search?q=", | |
"commandEngine": "quix", | |
"quixUrl": "https://dl.dropbox.com/s/jpc1gu600xunbs5/quix.txt", | |
"searchBookmarks": true, | |
"scrollingSpeed": "500", | |
"outsideScrolling": false, | |
"shortcutKey": "71", | |
"upScrollingKey": "87", | |
"downScrollingKey": "83", |
javascript:(function(){var%20script=document.createElement('script');script.src='http://mir.aculo.us/dom-monster/dommonster.js?'+Math.floor((+new Date)/(864e5));document.body.appendChild(script);})() |