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

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

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

The rubygems binary gem allows to extract a local gem with gem unpack GEMNAME. For more details see the official...

makandra dev

In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...

makandra dev

There are several tools for DNS debugging which offer you more or less information. Most of the time the more...

makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

Whenever requires you to set the application attribute in your Capistrano configuration. Otherwise your cronjobs are created multiple times.

Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...

Installing old Rubies (<= 2.3) with a standard rbenv + ruby-build is no longer possible on Ubuntu 20.04. This is because...

makandra dev
github.com

If you render markdown from user input, an attacker might be able to use this to inject javascript code into...

Embedding videos on a website is very easy, add a tag to your source code and it just works...

Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...

makandra dev

SimpleScreenRecorder I recommend simplescreenrecorder, it produces an adequate output with only a few clicks. The audio recording contained some...

Rails uses a CSRF token in forms and AJAX requests to verify a user request. Internally it compares the injected...

Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...

github.com

From Ubuntu 17, rbenv fails to install Ruby below 2.4 because of a mismatching OpenSSL dependency: it needs libssl1.0-dev for...

If rspec hangs with no output and you dont get a backtrace neither with --backtrace nor by just killing it...

The gem json fails to install for Ruby 2.5 if you use a version equal or below 1.8.3.

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

makandra dev

To restart all tasks monitored by God, don't use god restart. This command is only meant to soft-restart...

S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...