Shell script

Handle large JSONs effortlessly with jq
September 15, 2015

How to find files with filenames that are too long
Here’s a neat regular expression trick that you can use to find pathnames longer than a certain length, say, 20 characters:
February 19, 2014

How to insert the encoding: UTF-8 directive automatically in Ruby 1.9 files
I had to upgrade a project to Ruby 1.9.3, and, as usual, the encoding problem came up – if your source file is in UTF-8 (or any other non-ASCII encoding), you have to explicitly declare that.
September 23, 2011, revised March 4, 2013

Расстановка директивы encoding: UTF-8 для Ruby 1.9
В процессе переноса проекта на Ruby 1.9.3, как всегда, возникла проблема кодировки файлов, а именно того, что кодировку <span class="nobr">UTF-8</span> (как и любую другую, отличную от ASCII), нужно указывать явно.
September 23, 2011, revised April 9, 2012