My most popular articles

How to use Ansible's lineinfile module in a bulletproof way

Published on February 17th 2016

The lineinfile module is one of the most powerful ones in Ansible's toolbox. While it can introduce a lot of problems when used wrong, it pays to make yourself familiar with a bulletproof way to edit configuration files.

How to manage multiple Rails versions

Published on May 1st 2014

Coming from RVM, many people have problems separating gems (and thus Rails versions) for their applications when switching to rbenv. But this is actually Bundler's job.

Running Ruby scripts from within a cron job in an rbenv environment

Published on August 25th 2014

Executing a scheduled Ruby script from within a cron job is a bit tricky if you manage your Ruby versions with rbenv. Let me show you how to do it right.

Get in the loop

Join my email list to get new articles delivered straight into your inbox. I'll send you a free copy of my book Build Your Own Rails Server as a welcome gift.

No spam — guaranteed. You can leave at any time.

In chronological order

2017/04/26 How to cut your Rails server's provisioning time by more than 60%
2016/04/11 How to remotely generate a Let's Encrypt certificate for your production server
2016/03/30 How to automate rbenv installations
2016/03/10 5 steps to cut your deploy time in half
2016/02/17 How to use Ansible's lineinfile module in a bulletproof way
2015/12/30 2015
2015/11/03 How to set cookies across different top level domains
2015/09/22 A way to trigger a Rails action from a cron job you may not have thought about
2015/04/19 What you should know before setting environment variables for your Rails application
2015/02/02 How to compile a SELinux policy package
2015/01/12 Strange VirtualBox networking behaviour (and one possible cause)
2014/12/23 2014 in the rearview mirror
2014/12/15 How to build a Vagrant base box from a VirtualBox VM
2014/11/17 CentOS or Ubuntu?
2014/11/03 Early lessons learned while building a product business
2014/10/20 Develop your application with meaningful data
2014/09/29 5 bash tips useful for scripted provisioning
2014/09/01 Advanced use of merge tags to manage subscribers in MailChimp
2014/08/25 Running Ruby scripts from within a cron job in an rbenv environment
2014/08/18 Github-like repository hosting on your own server
2014/08/05 Use cron to add newsletter subscribers in the background
2014/07/06 Why chaining commands with pipes in Mac OS X does not always work
2014/07/01 Keeping your codebase healthy with git hooks
2014/06/22 Graceful error pages with nginx
2014/05/27 Two common pitfalls when using hashed passwords with Puppet
2014/05/14 Simple update notifications for your CentOS/RedHat-server
2014/05/12 How to make your server speak English
2014/05/08 4 simple steps to make Rails development on your Mac more productive
2014/05/01 How to manage multiple Rails versions
2014/02/10 Spam-free forms