Interactively rebase your current branch onto main, keeping the original base commit (i.e. not rebasing onto main directly).

makandracards.com

Added reference to git who.

Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...

ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...

makandracards.com

Added methods to keep the line number steady while you time-travel between commits: Copy the file to a new...

Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...

makandra dev

Git has the concept of hooks: bash scripts that are invoked at certain points in the Git lifecycle. One handy...

We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...

makandra dev

I noticed that tig 2.5.1 that is provided by Ubuntu 22.04 repositories has inferior bash completion than older versions after...

While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...

On our Ubuntu machines we have nautilus file manager with nautilus-extension-gnome-terminal installed. This adds an entry to...

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...

makandra dev

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...