You can ignore certain commits when using git blame with the --ignore-revs-file option. This is handy to ignore...

Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...

This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

In Capistrano 3, your Capfile requires 'capistrano/rails/migrations', which brings two Capistrano tasks: deploy:migrate and deploy:migrating. The former checks...

makandra dev

Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...

If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...

Every modern Rails app should have a Content Security Policy enabled. Very compatible default The following "default" is a minimal...

While upgrading CarrierWave from version 0.11.x to 3.x, we encountered some very nasty fails. Below are the basic...

TLDR Using .includes or .eager_load with 1-n associations is dangerous. Always use .preload instead. Consider the following ActiveRecord...

ruby-doc.org

Do you remember finding where a method is defined? I recently learned from a senior colleague that Method objects are...

github.com

The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...

Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

The git doc states on the difference of these two commands: git-restore[1] is about restoring files in the...

Newest versions of Chromedriver breaks the user agent for device emulation via device name. In previous versions the user agent...

In CI test runs I noticed that string sorting order changed after switching from a debian-based PostgreSQL docker image...

You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...

Note: You won't need this for single lines of text. In this case it is better to just use...

atlassian.com

Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...

When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips

So you have a heading that is just barely wider than the container it should fit into, and it wraps...

Splitting up commits makes the process of reviewing often easier, since you can create several merge requests or review every...

It most cases it's not necessary to add a version constraint next to your packages in the package.json. Since...