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...
In order to have more human readable git branches, do git pull --rebase To always pull like this, write these...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
Do it like this: attribute :active, Virtus::Attribute::Boolean Long story In Virtus you define attribute with their type...
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...
Back in the old days, we couldn't do something like that: .foo { position: absolute; bottom: 0; /* This was bad...
When you need to find out in which kind of spec you are during run-time, it's definitely possible...
Sometimes you need a piece of code to do something different for specs than for features. If you don't...
When your site is on HTTPS and you are linking or redirecting to a HTTP site, the browser will not...
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...
Getting a regular expression from a string in JavaScript is quite simple: new RegExp('Hello Universe'); # => /Hello Universe/
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...
When you want to do a git diff but do not care about the full diff and just want to...
Create a directory mkdir ~/.aws Initialise git repository cd ~/.aws && git init Create a git branch with a name you...
You probably haven't configured version control for your project. Go to Project Settings / Version Control and set the director...
We ran into trouble when adding additional compute units to our railscomplete Hosting environment lately. VM-instances on the new...
When you download or upgrade RVM it has a hardcoded notion which patch level it considers to be "1.9.3".
Awesome battle report from Pinterest trying to scale their setup using different approaches. When you push something to the limit...