Building Node JS on Raspberry Pi 12 Jun 2012

‘gcc’: { ‘all’: { ‘CCFLAGS’: [‘$DIALECTFLAGS’, ‘$WARNINGFLAGS’, ‘-march=armv5t’], if bld.env[“SNAPSHOT_V8”]: snapshot = “” else: snapshot = “”

Read more | Add a comment

Find and Replace with QueryPath in PHP 28 May 2012

To find and replace using querypath without destroying existing context you can use the following: $temp = qp($output, 'table')->addclass('table'); $output = $temp->top('body')->innerHTML();

Read more | Add a comment

Coder Manifest 25 Apr 2012

Herein lies the coder manifest. Thou shalt not commit debug to production Thou shalt create test for everything Thou shalt not commit code to production and not deploy Database shall not be kept it thy repository control system

Read more | Add a comment

Managing CLI config accross multiple servers/desktops 17 Mar 2012

After using CLI for more than three years I’ve amassed multiple .*rc files for configuration. When I bring a new server/desktop online I needed a way to quickly import all my settings and get up and running. My standard configuration always consists of ZSH with the great oh-my-zsh scripts. Additional to this I have my own .zshrc/.vimrc/.ackrc configs. I created the following script to automatically install my config files on any new server: #!/bin/bash rm ~/.ackrc rm ~/.vimrc rm ~/.zshrc echo "Removed old config files" ln -s ~/homeconfig/.zshrc ~/.zshrc ln -s ~/homeconfig/.ackrc ~/.ackrc ln -s ~/homeconfig/.vimrc ~/.vimrc echo "Installed new...

Read more | Add a comment

Making the web a little friendlier. 26 Feb 2012

Below is a list of rules for Adblock Plus (for Chrome) that remove social media crap from sites. As I add more I’ll update this list. encrypted.google.com###aerhs encrypted.google.com##.rhsvw reviews.cnet.com###cnetToolbarWrap reviews.cnet.com###shareBar reviews.cnet.com##.expanded reviews.cnet.com##.shareBar reviews.cnet.com##.side-sharebar reviews.cnet.com##.userTools twitter.com##div[data-component-term="trends"] twitter.com##div[data-component-term="user_recommendations"]

Read more | Add a comment

Subscribe via RSS