Jasmine is a great tool to unit test your JavaScript components without writing an expensive end-to-end test for...

Resources RubyGuides: Mastering Ruby Regular Expressions Using regular expressions in JavaScript Testing regular expressions visually Regular Expressions: Quantifier modes...

Sometimes you need to access a dev server running on localhost from another machine that is not part of the...

dev.to

In my case [...] the catalog is an XML that contains all kinds of possible products, categories and vendors and it...

TL;DR When using Cache-Control on a Rails application, make sure the Vary: Accept header is set.

The Interactive Advertising Bureau (IAB) is a European marketing association which has introduced a standard how advertising can be served...

github.com

I sometimes had the issue that I received an error when starting an existing vagrant box with vagrant up:

A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...

makandra dev

If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...

This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.

You want to use fields in your applications. However, your desktop users may encounter some weird quirks: Aside from allowing...

makandra dev

Inspired by recent "git shortcut" cards I figured it would be nice to have one of these for rebasing a...

makandra dev

Besides their default styling properties, HTML elements have a semantic meaning. For example, an h1 tag is usually styled with...

Bookmarks for directories will be most helpful if you are forced to work in deeply nested projects. Then it's...

With cd .. you can navigate one directory up from the one you are at now. If you use that a...

The tree command will show you the contents of a directory and all its sub directories as a tree:

There is an option you can set so that when using the cd command, small typos are automatically corrected. Add...

Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...

This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...

We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...

If you want to expand your Areca Raid by swapping out the disks for larger ones you will need to...

When you get this error message from e.g. loginctl show-user [...] after you deleted a user from your system:

peter.sh

An extensive list of command line options when booting Chrome. This is useful for building a Capybara driver with custom...

I ran into a situation in which I received the yarn integrity check warning when starting the rails console even...