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...
Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs...
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...
In order to have more human readable git branches, do git pull --rebase To always pull like this, write these...
Sometimes sound breaks for me and speaker output is completely broken. This helped: pulseaudio -k && sudo alsa force-reload
Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...
Good article that tells you how to change behavior of certain keys via xmodmap (with the help of exv if...
No chance you would have ever guessed it... sudo palimpsest
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...
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...
We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...
In the following example the method update_offices_people_count won't be called when office_id changes, because it...
When you want to do a git diff but do not care about the full diff and just want to...
We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...
tl;dr: Ruby's Bundler environment is passed on to system calls, which may not be what you may want...
Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...
Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...