How to inspect really large directories
ls becomes slow in very large directories because it sorts names and formats columns before printing. Disabling both yields immediate streaming output.
Repeatedly execute a bash command and observe its output
Run a command at regular intervals and watch its output update, useful for monitoring changing files or other live system state with watch.
How to "git diff" with a graphical diff tool
Use git difftool to open diffs in a graphical viewer like Meld when the terminal diff is not enough.
tesseract.js: Pure Javascript OCR for 62 Languages
Browser-based OCR for scanned documents and images, with Web Worker processing and support for many input sources. Accuracy drops on distorted pages, mixed content, and layouts with tight borders.
Configure how VCR matches requests to recorded cassettes
VCR request replay depends on matching new HTTP requests to recorded ones; :match_requests_on lets you customize matching by URI, path, or a custom lambda.
Git: See more context in a diff
git diff can show more surrounding lines for each change, making it easier to understand context in modified files.
Debugging flickering VCR tests
VCR tests can flicker when recorded requests change because of randomness, timestamps, or generated sequences, making cassette mismatches hard to diagnose.
Ubuntu MATE: Custom time format for clock panel widget
The MATE panel clock can use a custom strftime format instead of the default display, making compact date-and-time layouts possible.
Styling SVGs with CSS only works in certain conditions
SVGs can be styled with CSS only when embedded inline; using them as images or sprites blocks styling, and IE support is limited.
Creating icon fonts with Icomoon
Custom icon webfonts need correct grid sizing, spacing, baseline, and backup handling; multicolor icons, blocked webfonts, and inline rendering add practical constraints.
Beware of rails' reverse_order!
reverse_order breaks on complex SQL sorting and can generate invalid queries in Rails 4; Rails 5 raises ActiveRecord::IrreversibleOrderError instead.
Master the chrome history and autocomplete
Address-bar suggestions can outrank bookmarks and recent sites in Chrome; SHIFT + DEL removes unwanted entries, and a custom history search restores easier access to recent pages.
AngularJS Cheat Sheet (PDF)
Quick reference for commonly used AngularJS features, useful when you need syntax and concepts at a glance.
Running awstats on a single logfile
Generate a one-time AWStats report from a single web log file by using a minimal config and disabling DNS lookups for faster output.
Git error: "badTimezone: invalid author/committer line - bad time zone"
Malformed commit timestamps can make git clone fail with badTimezone when strict object validation is enabled. Disabling fetch.fsckobjects works around the error.
Pexels: Free stock photos
Free stock photos for personal and commercial use without attribution, with permission to modify images.
Detecting if a Ruby gem is loaded
Activated gems can be checked through Gem.loaded_specs, and required libraries can be detected with defined? on a constant they define.
Ubuntu Mate: Get rid of F12 drop-down terminal
F12 on Ubuntu MATE can be reclaimed by stopping Tilda or disabling its autostart, preventing the drop-down terminal from intercepting the shortcut.
makandra/gemika: Helpers for testing Ruby gems
A library for testing a Ruby gem against multiple Ruby, dependency and database combinations, with shared local and CI setup for full permutation coverage.
Fix "libmysqlclient.so.20: cannot open shared object file: No such file or directory"
mysql2 can fail to load libmysqlclient.so.20 after a broken install; reinstalling the gem usually restores the missing client library link.
Sass: How to convert an RGBA color to its RGB look-alike
Convert an RGBA color into the RGB equivalent for a chosen background when transparency must be removed. A Sass rgba-to-rgb() helper can compute the blend automatically.
VCR fails if the same request is triggered multiple times
VCR records each request only once, so replaying repeated identical calls can fail unless allow_playback_repeats is enabled.
Heads up: "localhost" may be IPv6 on new linuxes
localhost can resolve to ::1 on newer Linux systems, which may affect firewall rules that assume 127.0.0.1.
What every coder should know about gamma
Gamma correction affects how colors are encoded and displayed, and sRGB defines a standard color space used by many systems.