Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
Did you know you can do in-place batch processing with plain ruby? The following script will in-place replace...
You can use xmllint to pretty-print ugly XML files on your terminal. Just say: xmllint --format file.xml
A great and enjoyable introduction into the concept of the web and about what HTTP was designed for. The original...
1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...
Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...
ActionMailer per default uses http as protocol, which enables SSL-stripping. When a logged-in user follows an http link...
Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...
Sometimes sound breaks for me and speaker output is completely broken. This helped: pulseaudio -k && sudo alsa force-reload
The Ruby on Rails security list archive can be found here: http://groups.google.com/group/rubyonrails-security You can subscribe to this mailing...
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
In order to clone a git repository including all branches and tags you need to use two parameters when cloning...
When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...
Option 1: Creating a self-signed certificate with the openssl binary As igalic commented on this gist. openssl req -new...
Issue this command: sqlite3 ~/Library/Application\ Support/Dock/*.db "DELETE from apps WHERE title='APP_NAME';" && killall Dock This tells sqlite3 to...
When HTTP clients make an request they can define which response formats they can process. They do it by adding...
Authentication is hard: there are many edge cases, and most users (including yourself) usually only go the "happy path" once...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...
Awesome battle report from Pinterest trying to scale their setup using different approaches. When you push something to the limit...
tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...