Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...

tldp.org

$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra Operations

Create a 1 GB file to swap to (we have sufficient space on / on this machine. Use a different partition...

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

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...

linuxsa.org.au

Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...

The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...

Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...

makandra dev
rakeroutes.com

Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...

makandra dev

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...

makandra dev
askubuntu.com

Good article that tells you how to change behavior of certain keys via xmodmap (with the help of exv if...

railway.at

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...

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...

We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...

Rails gives you migrations to change your database schema with simple commands like add_column or update. Unfortunately these commands...

stackoverflow.com

Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on.