Barby is a great Ruby gem to generate barcodes of all different sorts. It includes support for QR codes via...
Crontabs are often unordered, especially when generated for an application where you usually group tasks by their domain/scope.
This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...
There are various ways to run external commands from within Ruby, but the most powerful ones are Open3.capture3 and Open3.popen3...
Occasionally, you have to talk to APIs via HTTPS that use a custom certificate or a misconfigured certificate chain (like...
run-one is a wrapper script that won't run the given command while another instance of it is running...
Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...
Using the dialog command you can launch ASCII-art dialogs from your shell scripts. Check out man dialog for a...
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...
The pages listed here contain tests and experiments about features, possibilities, browsers’ bugs concerning CSS. That is, over 200 experiments...
Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...
Sometimes your code has long lines: describe 'foo' do describe 'bar' do really_long_line_really_long_line_really_long...
window.getSelection().toString(); Browser support: IE9+, Android 4.3+, Safari 5+
A collection of code snippets which return a boolean value for a regex comparison. regexp.match?(string) # Recommended for Ruby >= 2.4...
There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...
To create a 10 GB file: fallocate -l 10G huge_file.dat
Adding a gem means you take over the liability towards the external code. Checklist Based on "To gem, or not...
We have projects that have been developed using many different versions of Ruby. Since we do not want to...
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...
There are some inconvenient Gem dependencies. Resolve them by adding/modifying these lines in your Gemfile: gem 'guard-livereload', '>= 2.5.2', require...
Reminder of what you can do with Geordi. Note: If you alias Geordi to something short like g, running commands...
TLDR: When you put CSS rules into a partial and import that partial multiple times, the CSS rules will be...
First find the reference for the entry you want through looking at the stash: $ git stash list stash@{0}: WIP...