Articles
-
Reproducing test failures with RSpec
RSpec test failures related to ordering may sometimes appear, particularly on larger and older projects.
-
Create PostgreSQL indexes concurrently to minimize performance impact
Creating new indexes for an existing table in Postgres–particularly a large one–can impact performance, as locks are taken and the index is built in a single pass.
-
Remove stale remote branches with git
There’s a simple way to list remote branches with git:
-
Restore a file from a previous commit with git
Here is a simple recipe for restoring a file to its state in a prior commit in git using
git-checkout
(unlike the effects ofgit-revert
orgit-reset
): -
Managing Node versions with n
It’s easy to install versions of Node.js with various package managers (Homebrew on Mac, etc.) but there are situations where version consistency is important–in a team environment, for example–and using different versions of Node can introduce subtle incompatibilities, or cause tests to fail.