Ag (aka "the silver searcher") is a very fast replacement for grep. It will parse your .gitignore for additional speedup...
Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...
When you're developing a gem, never list the same dependency as both runtime and development dependency in your .gemspec...
While you can use Apache as a reverse proxy, it tries to be too smart. Try nginx instead, it's...
There are many solutions, but a very concise one is this: hash.merge!(hash) do |key, old_value, new_value|
git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...
One useful postgres command I stumbled upon recently was \x. It gives you an expanded display which allows you to...
While you usually do not need a Content-Type on GET request (which have a blank body), an external API...
Nobody needs HTML e-mails. However, you occasionally might have to write an HTML message for some weird reason. Here...
A great walkthrough through several design iteration of the same landing page.
You can configure RSpec 3.3+ to raise an error when attempting to stub or mock a non-existing method. We...
Ruby has a set of methods to convert an object to another representation. Most of them come in explicit and...
When you make a simple TCP connection to a remote server (like telnet), your client won't normally notice when...
Installing SSL certificates usually implies additionally using intermediate certificates. If one of them is missing, some SSL client implementations might...
If you get an error like: subprocess installed post-removal script returned error exit status 78 when installing/removing/updating a package...
You want to test your 1GE or 10GE internet uplink? We needed to ensure we have full 10GE to the...
When dealing with AR scopes, you can remove conditions, order, etc by using the unscope method. It is available on...
You can say this in Javascript: $.fn.jquery => "1.11.1"
You cannot find your account passwords in the Account Settings – that'd be too easy. Here is where you find...
Redactor is yet another WYSIWYG editor. It definitely has its weak points, but I want to point out that it...
PostgreSQL's array data type is pretty useful, but manipulating values of arrays can be awkward because of its syntax...
Rails 4 introduced raising an error on pending migrations. This is most annoying when you are crafting a migration but...
Ruby allows multiple assignment: a, b, c = o In order to prove multiple values from a single object, Ruby calls...
Web fonts are great. They are also be really bad for front-end performance because they block rendering. You may...