Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
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...
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...
I recently stumbled over a problem that my feature tests broke in CI because of a mismatching chromedriver version.
We regularly have tasks that need to be performed around a deploy. Be it to notify operations about changed application...
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...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
You can use rake --where task to find the source location that defines task: bundle exec rake --where assets:precompile...
Within Vim do the following: Move cursor to the first starting line where you want to start editing
With this Ruby script you can print all values in a Redis database to your console (derived from this bash...
I recently noticed that better_errors allows you to to open files from within your favorite editor. However it was...
Debugging your integration tests, that run a headless Chrome inside a docker image, is tricky. In many cases you can...
tl;dr asdf allows you to manage multiple runtime versions with a single CLI tool and is backwards compatible by...
If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...
Sometimes I ran across a GitHub merge request of a gem where it was not completely obvious in which version...
Sometimes, the rails dev server doesn't terminate properly. This can for example happen when the dev server runs in...
The linked article found a simple way to rewrite legacy git aliases to make them work with differently named default...
Bundler so far ignored the version specified under BUNDLED_WITH in the Gemfile.lock. This had two annoying consequences: