In shell scripts you can use $1 to refer to the first argument, $2 for the second, etc. If you...

apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

If you need Google Chrome to run in English, and your system locale is a non-English one, you have...

If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...

geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...

(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...

You know there is the du command to fetch the disk usage of a directory (“.” in this example). By default...

In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...

makandra dev

If you want to enforce soft tabs (spaces instead of tabstops) in Vim put this into your ~/.vimrc (Linux) or...

Copy the attached Ruby code to config/initializers, or paste it into your IRB console. You can now dump any two...

Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...

howtogeek.com

One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window...

makandra dev

Before installing chef, make sure curl is installed and sudo finds your gems setup chef-client: follow this guide

We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy...

makandra dev

When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...

We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...

Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...

Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...

You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...

When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...