Subjectively

dd if=/dev/random | kirk > blog

Subjectively header image 4

Entries Tagged as 'Linux'

diff2html

May 8th, 2009 · No Comments · Linux

diff2html is a free and open source utility that uses the output of diff(1) to graphically compare two files in html. A python version of the same thing exists here.  This version of diff2html was created as an exercise in  writing bash string handling and array processing routines.  The python version is actually faster, but [...]

[Read more →]

Tags:

sed script to trim leading and trailing spaces

February 25th, 2009 · No Comments · Linux, OS X

i couldn’t find this anywhere, so just to make it generally public, this is my trim function: sed ‘s/^[[:space:]]*\(.*\)[[:space:]]*$/\1/’ For who’s looking, this command says: from beginning of line ^ take any amount of whitespace [[:space:]] then create a group containing anything \(.*\) up to whitespace at the end of the line [[:space:]]*$ replace this [...]

[Read more →]

Tags:

Getting Started with PostgreSQL

May 15th, 2008 · No Comments · Linux

Here is the guide that I wish were available when I started with PostgreSQL a few years ago. Getting PostgreSQL Fedora has a great group install utility for just this occasion. yum -y groupinstall “PostgreSQL Database” yum -y install postgresql-contrib service postgresql initdb service postgresql start Quotes and capitalization matter… Then we proceed to set [...]

[Read more →]

Tags: