github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

This will tunnel HTTP requests to one given domain and port through an intermediary SSH server: ssh -L 8080:targethost...

Open the configuration file: gksudo gedit /usr/share/vte/termcap/xterm Find a line like this: :co#80:it#8:li#24:\

makandra dev

Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).

In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...

makandra dev

From the shell: ls -l | wc -l

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

Unless all MySQL server defaults are set to UTF-8, mysqldump encodes UTF-8 characters incorrectly and only outputs correct...

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...

makandra dev

This is about converting Haml to ERB and not the other way round which you probably want! This process can...

When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...

web.archive.org

This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...

Append this to your ~/.bashrc: export PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s...

makandra dev

This is for people recovering from Subversion. Get an existing from the server for the first time git clone git@example.com...

You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...

mezzoblue.com

Maybe I haven’t been paying close enough attention, but over the past few years an interesting variation of CSS...

code.google.com

Web 2.0 sites have lots of tiny javascript/css files, which causes one extra round trip per file to the server...

tagaholic.me

Rails’ script/console makes it easy to fetch, view and edit your database records. But can you edit those records as...

tagaholic.me

Hirb provides a mini view framework for console applications, designed with irb in mind.

lambie.org

I’m working on a problem for a client which involves connecting to a Microsoft SQL Server 2005 database from...

code.google.com

MMM (MySQL Master-Master Replication Manager) is a set of flexible scripts to perform monitoring/failover and management of MySQL Master...