Practical Unix for Ruby & Rails
summary
Shows concrete shell recipes: use tail -f | grep to filter Rails logs, sed to normalize numeric IDs, then sort uniq -c to get hit counts (example yields token hits like 2667). Replaces slow editor searches with ag, pipes filenames into xargs to run only relevant specs, and detects running servers with lsof to choose spork/zeus/nailgun/Bundle invocations. Includes a reusable bash script that auto-selects the fastest test runner and explains how pipelines spawn concurrent processes with OS buffering.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 3:58Unix philosophy basics
- 4:43Tailing logs with tail and grep
- 7:34Unix processes and streams
- 10:01Counting Rails endpoint hits
- 16:46Unix pipelines efficiency
- 19:35Finding text in files
- 21:40Filtering RSpec specs
- 24:34Speeding up JRuby tests
- 27:05Smart RSpec wrapper script
- 33:49Smart spec script in practice
- 35:14Customizing Unix workflows
- 37:20Q&A
related talks
31mThe Unix Chainsaw
39mThe Ruby Developer's Command Line Toolkit
34mThe Ruby Developer's Command Line Toolkit
35mBlack-boxing with Ruby
49mShort Order Ruby
42mUsing Ruby to Craft and Test Beautiful Command Line Applications
34mCode Spelunking: teach yourself how Rails works
48mOn the Edge of Rails Performance
