Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...

Database connections are not thread-safe. That's why ActiveRecord uses a separate database connection for each thread.

In case you want to require a gem, that is not in the Gemfile of you bundle and therefore not...

For the initial setup or changes in the sentry reporting it might be useful to enabled reporting of sentry in...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

makandra dev

Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.

makandra dev
badssl.com

Website that offers lots of different kinds of HTTPS configurations, bad or good or complicated. They also offer a dashboard...

Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...

manpages.ubuntu.com

run-one is a wrapper script that won't run the given command while another instance of it is running...

Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...

To create a 10 GB file: fallocate -l 10G huge_file.dat

We generally use multiple application servers (at least two) and you have to search on all of them if you...

If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...

On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

Chrome gives you the currently selected element in the inspector with $0. If you select a button in the DOM...

TL;DR: Update the 'net-ssh' gem by adding to your Gemfile: gem 'net-ssh', '=2.9.1' Now run bundle update...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

You can use three different versions of the regular expression syntax in grep: basic: -G extended: -E(POSIX)

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

If your external displays not switching on or showing a weird behavior (for e.g. all displays getting the same configuration...

When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...