If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...
This card needs to be updated for Rails 3+. Since there is no --debugger flag you need to run:
When using state_machine you sometimes need to know whether an object may execute a certain transition. Let's take...
There is a new card about how to do this with the new AWS Command Line Interface
You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...
If you get an error "Adress already in use" with autossh check with lsof or netstat if something already listen...
Grep prints one line per match. To return the number if matches, use the -c switch: grep -c "something" filename...
Date::Performance is a gem that replaces various method in Ruby's Date class with fast C implementations. Unfortunately it...
Attached is a working config to deploy an application with Capistrano that needs to monitor Resque workers with God.
If you want to have an English Ubuntu UI, but still see dates, money amounts, paper formats, etc. in German...
You can unpack a .tar.gz file into the current directory like this: tar -xzvf archive.tar.gz The options used are
If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...
Today I needed to execute a ruby gem executable with sudo. But, surprisingly, bash would tell me command not found...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
Pressing the ? key will display a list of keyboard shortcuts. Available shortcuts are: |search |/| |help|?| |add story|a| |toggle backlog...
On 32bit systems, the maximum representable Time is 2038-01-19 03:14:07 in UTC or 2038-01-19...
When you are using Apache for development, it still accepts connections from everyone in the same network as you.
RSpec 1, RSpec 2 To test whether two arrays have the same elements regardless of order, RSpec 1 and 2...
Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...
If you need to look at the list of methods that are called upon certain events (like before/after saving etc...
If a SSH shell dies (from timeout for example), you cannot kill it with the usual CTRL-C or CTRL...
Getting started with Ruby extensions in C.
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...