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.
If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...
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
OpenAI is currently limiting the Audio generating API endpoint to text bodies with a maximum of 4096 characters.
Make sure that you use the correct property when editing an HTML attribute. Using innerHTML with unsafe arguments makes your...
When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...
The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000
Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...
View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...
We regularly have tasks that need to be performed around a deploy. Be it to notify operations about changed application...
Do you remember finding where a method is defined? I recently that Method objects are quite useful within a debugging...
Browsers can auto fill-in one time codes if advised. Use it like this: Demo: https://twitter.com/sulco/status/1320700982943223808 Browser support...
You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...
You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...
Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...
Note: You won't need this for single lines of text. In this case it is better to just use...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
So you have a heading that is just barely wider than the container it should fit into, and it wraps...
We have a long-standing checklist for merge requests. However, it hardly matches the intricate requirements for design. This checklist...
Geordi will now suggest related commands and options (hand-picked). If a command has suggestions, a single suggestion is printed...
With this Ruby script you can print all values in a Redis database to your console (derived from this bash...