Below is a strict, but still workable Content Security Policy for your Ruby on Rails project. Use this CSP if...
In rare circumstances, you want to use a websites full domain (say https://mywebsite.com) while testing in dev mode. This...
Leaving old unused DB columns around after a migration is confusing for other developers. However, dropping columns too eagerly might...
If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser...
A simple web tool for generating lighter (tints) and darker (shades) versions of any HEX color value. Tip
Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:
Follow the installation guidelines at https://mise.jdx.dev/getting-started.html. Remove rbenv configuration Search for rbenv config in .bashrc and...
You want to prevent input to a form field, but all the solutions have side effects: The [readonly] attribute is...
The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...
I had to modify the time for an application that I launch through Docker. Here is an approach that worked...
JSON Web Tokens are often times used for authentication delegation from one system to another. They can be decoded for...
Important wkhtmltopdf is deprecated and shouldn't be used anymore. Please consider switching to another tool We can install wkhtmltopdf...
Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...
Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...
When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...
Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...
With Ubuntu 24.04 it's not longer possible to setup FDE with BTRFS The new installer won't offer you...
Some key highlights and points from the linked article TestProf II: Factory therapy for your Ruby tests. The Problem with...
Rails' fragment caching caches subtrees of an HTML document tree. While constructing that tree though, it can be really hard...
YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).
Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...
Ever needed to migrate data between Redis instances? Give RIOT - Redis Input/Output Tools a try. It supports migration to different...
Add apt source: apt update -y && apt install -y gpg sudo wget curl sudo install -dm 755 /etc/apt/keyrings
Why do we migrate? Due to a change in licensing, we cannot provide Elasticsearch versions >= 8.0. Version 7.17.x will...