Let's say you have a folder images and want to to move all files in there to a new...

RSpec allows defining methods inside describe/context blocks which will only exist inside them. However, classes (or any constants, for that...

askubuntu.com

While the hardware mute button of my Lenovo x230 worked on Ubuntu 14.04 out of the box, it does not...

After loading a staging dump into development, you might get an ActiveRecord::EnvironmentMismatchError when trying to replace the database (like...

forums.linuxmint.com

On my Ubuntu MATE machine, switching applications with ALT + TAB was impossible, because it took nearly 2 seconds. The culprit...

askubuntu.com

You need to disable "Bluetooth low energy", then follow these core steps: Make sure the headphones are in pairing mode...

gist.github.com

Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...

If you want to ssh into your vagrant box without switching into the project directory and typing vagrant ssh, you...

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

makandra dev

In the ruby shell (IRB) and rails console the return value of the previous command is saved in _ (underscore). This...

You can configure a Ubuntu system as a gateway in order to share it's internet connection (maybe via WLAN...

Ubuntu might create several keyrings for you. Note that keyring passwords are initially set to the user password but do...

These tools help you in checking websites globally: DNS Checker This tool allows for global DNS propagation checking. GeoScreenshot

Middleman is a static page generator that brings many of the goodies that Rails developers are used to.

Sometimes, through some firewall or proxy misconfiguration, you might have to deploy to a server that cannot access the git...

askubuntu.com

Luckily, this is simple. Just install three packages: sudo apt install ipheth-utils libimobiledevice-dev libimobiledevice-utils

blog.jetbrains.com

RubyMine allows bookmarking lines of code. This is super-helpful when working on a complex problem. I've been using...

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...

You can start vim with a read-only option. This prevents making accidentally changes in files you don't want...

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

There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...

manpages.ubuntu.com

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

Using the dialog command you can launch ASCII-art dialogs from your shell scripts. Check out man dialog for a...