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...
Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...
Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...
We all struggle with pricing. Here is some interesting information that helps you with your pricing decisions.
When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...
Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print
Google Chrome saves your profile data in ~/.config/google-chrome. To transfer the profile to for example a system you have setup...
Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...
Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on.
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch