Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...
This note describes how to setup a box running Ubuntu to share its Internet connection with another PC.
Use this MySQL command to show further info about a table: SHOW CREATE TABLE tags; This will output a table...
After switching to Rails 3 you may get a LoadError with the following message when trying to use your application...
I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...
This can be helpful when you need the latest file inside a directory for processing in a shell script:
You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...
If you want to see how long your database queries actually take, you need to disable MySQL's query cache...
This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...
You need to install the following packages before you can build the Paperclip gem: sudo apt-get install imagemagick librmagick...
If a SSH shell dies (from timeout for example), you cannot kill it with the usual CTRL-C or CTRL...
These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
To only run a single describe/context block in a long spec, you can say spec spec/models/note_spec.rb:545 ... where the describe...
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
If you need to find all files inside a directory that were modified in the last 24 hours you can...
Be careful! The following solution will delete files on a volume. If you don't know exactly what you're...
Physical servers worked, EC2 did not.
WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...
When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...
By default, Cucumber uses mocha. This note shows to use RSpec stubs and mocks instead. Rspec 1 / Rails 2
Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com
If you want to exclude your staging site from Google using robots.txt without running the risk to forget deleting the...
There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...