esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...
Terser is a really good minifier ("compressor") for JavaScript code. I'm often surprised by the thoughtfulness of its compressed...
With this command you can run all the spec files which have been edited or added in the current branch...
I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:
This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...
After an upgrade to rails 7 I noticed that async reindexing jobs of Searchkick were failing for Model.reindex(mode: :async...
If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
Your commit messages should include the ID of the issue your code belongs to. Our preferred syntax prefixes the issue...
There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout...
If you are using git submodules in Gitlab CI, you might run into a "The project you were looking for...
I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...
Sometimes you have a file that is related to a project, while not actually being part of it. You'd...
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...
You can ignore certain commits when using git blame with the --ignore-revs-file option. This is handy to ignore...
The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...
In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels jobs that have...
If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...
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...
Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...
Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...
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...