git tips and tricks...
This is a sweet way of getting current git info in your prompt in OS X…this saves me from those “damn, I’m on the wrong branch…” moments - http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/
using git with a proxy
Some of us are stuck behind a corporate firewall, but need to access all the great little github plugins through git! So what do you do?
Create the following wrapper:
( ~/bin/proxy-wrapper ):
#!/bin/sh
# Put your own values
PROXY_IP=127.0.0.1
PROXY_PORT=1090
nc -x${PROXY_IP}:${PROXY_PORT} -X5 $*
and add this to your ~/.profile or ~/.bash_rc etc…
export GITPROXYCOMMAND=~/bin/proxy-wrapper
I stole this solution from http://blogs.gnome.org/juanje/2009/07/17/git_behind_proxy/ Cheers, Dave
Security on Rails is Beta!
Our book is now available as a Pragmatic Bookshelf Beta - Security on Rails
0% Interest for 6 Months
Coding without Unit Tests is like using a Credit Card
Occasionally I find myself a few days (or sometimes weeks) into some piece of code that I’ve been working on without good test coverage. I just realized that it’s the same feeling I get when I use a credit card. I know I’ll be in trouble if I don’t take care of it ASAP.