You can find out about disk space usage of all tables within your database by running this: SELECT table_name...
Enter any command into explainshell and it will explain it to you: split into separate commands (if present), with each...
If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...
Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...
If you want to configure your nginx to drop connections to a specific location, you can do so by responding...
Imagine you have a list you want to render inline on large screens, but stacked on small screens. high
TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module.
Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...
A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...
In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...
First, decide if you want to pull with rebase. There are some implications of changing this, so think before you...
During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...
Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
You can tell git to ignore different kinds and amounts of whitespace when merging or cherry-picking. This often occurs...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available
Remove some old binaries (commands still exist in geordi) and mark others as deprecated Rewrite deploy command to support...
If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...
The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...