Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...

Recently I needed to benchmark an Active Record query for performance measurements. I wrote a small script that runs each...

sudo gitlab-rails console Note This takes some minutes to start Send a mail Use the following...

tl;dr To adjust code templates in RubyMine, navigate to Settings -> Editor -> File and Code Templates. Example You can navigate...

makandra dev

While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...

mise.jdx.dev

Add apt source: apt update -y && apt install -y gpg sudo wget curl sudo install -dm 755 /etc/apt/keyrings

As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...

makandra Operations
manned.org

If you want to use rsync to transfer files that don't belong to your user to another system you...

Your commit messages should include the ID of the issue your code belongs to. Our preferred syntax prefixes the issue...

This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:

Developing or debugging SAML functionality can be a hassle, especially when you need to go back and forth with someone...

makandra Operations

jq is great when dealing with JSON data. Check out the official jq Manual. Content Select only specific keys

makandra dev

10.0.0 2024-03-07 Compatible changes console command: You can now globally disable the IRB multiline feature by setting irb...

I recently built a screen with a very high and wide table in the center. This posed some challenges:

makandra dev

Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...

It happens from time to time that a job in a GitLab pipeline fails. Sometimes, however, the error message is...

Wondering what these numbers in the mount entries in /etc/fstab are meaning? The first number fs_freq When this field...

You can use pg_repack to do a VACUUM FULL without holding an exclusive lock during processing. There is still...

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

docs.ruby-lang.org

The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000

Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate...

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

If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple...

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