dev.to

If you have fzf installed, you may add an alias such as this to your ~/.bashrc: alias recent-branch="git...

We are using Spring in our tests for sequential test execution but not for parallel test execution. And Rails requires...

With cd .. you can navigate one directory up from the one you are at now. If you use that a...

The tree command will show you the contents of a directory and all its sub directories as a tree:

There is an option you can set so that when using the cd command, small typos are automatically corrected. Add...

github.com

age is a simple, modern and secure file encryption tool, format, and Go library. It features small explicit keys, no...

Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...

It is generally discouraged to load your JavaScript by a tag in the : The reason is that a tag will pause the DOM parser until the script has loaded and executed. This will delay the browser's first contentful paint. A much better default is to load your scripts with a tag: A deferred script has many...

This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...

The attached compiler() function below applies JavaScript behavior to matching HTML elements as they enter the DOM. This works like...

Often people need links which are not linked directly, but should trigger execution of JavaScript. ❌ Bad workarounds

maulwuff.de

The linked article provides a description of commonly found problems with TLS and hints on debugging / solving them.

tl;dr: Avoid to memoize methods with default (keyword) arguments! When you are using Memoized with default arguments or default...

makandra dev

The need for clearfix hacks has been greatly reduced since we could layout with Flexbox or CSS Grid.

We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...

The rubygems binary gem allows to extract a local gem with gem unpack GEMNAME. For more details see the official...

Our gem spreewald supports a few helpers for development. In case you notice errors in your Cucumber tests, you might...

You can scale background images in CSS to the container size using background-size (Demo). Commonly, we use contain or...

When you get this error message from e.g. loginctl show-user [...] after you deleted a user from your system:

When using custom properties in your stylesheets, you may want to set a specific property value to an existing variable...

It seems like changing the HTTP_ACCEPT_LANGUAGE is not possible for a headless chrome. On Ubuntu the headless Chrome...

You can throttle the network in your headless chrome via Selenium. This might be useful for debugging issues with flaky...

peter.sh

An extensive list of command line options when booting Chrome. This is useful for building a Capybara driver with custom...

en.wikipedia.org

Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...