Skip to content

Instantly share code, notes, and snippets.

@bhurlow
bhurlow / user agent node
Created May 17, 2012 00:58
user agent node
req.headers['user-agent']
@bhurlow
bhurlow / gist:2974526
Created June 22, 2012 18:59
copy current dir to clipboard osx
$ pwd | tr -d '\n' | pbcopy
alias cpwd="pwd | tr -d '\n' | pbcopy"
@bhurlow
bhurlow / gist:2985153
Created June 24, 2012 21:51
Disable Web Security Chromium
$ cd /Volumes/Brian\ Main\ HD/Applications/ && open Chromium.app --args --disable-web-security
@bhurlow
bhurlow / gist:2991064
Created June 25, 2012 20:37
svn url for hartribune
http://dev.startribune.com/svn/repos/intern_party_house/trunk/htdocs/ad-data/hartribune
ssh -i ubby-amazon.pem ubuntu@ec2-184-72-145-38.compute-1.amazonaws.com
@bhurlow
bhurlow / gist:2993458
Created June 26, 2012 05:10
Return just your ip address etc in bash
/sbin/ifconfig eth0| grep 'inet addr:'
@bhurlow
bhurlow / gist:2996817
Created June 26, 2012 16:21
svn merge for dummys

cd into your working copy of the trunk then: svn merge BRANCH_URL TRUNK_URL

sudo /etc/init.d/nginx restart
sudo /etc/init.d/php5-fpm restart
@bhurlow
bhurlow / gist:3034062
Created July 2, 2012 16:19
setup configuration
$ sass --watch style.sass:../src/style.css
$ coffee -wc --output ../src/ ./
@bhurlow
bhurlow / gist:3034253
Created July 2, 2012 16:56
Padding goes like
padding: Top Right Bottom Left