Getting output from SSH commands in Ruby

I usually do SSH in to servers to check if things are okay with raid and shit. But now I’m going hardcore, with Ruby. First add NOPASSWD to sudoers to get what commands you want working without password in sudo, with “sudo visudo” You can probably skip passwords with ssh-copy-id.

This code SSH’s into the […]

Cargo cult programming

Cargo cult programming is a style of computer programming that is characterized by the ritual inclusion of code or program structures that serve no real purpose. Cargo cult programming is typically symptomatic of a programmer not understanding either a bug he or she was attempting to solve or the apparent solution . The term ‘cargo cult programmer’ may also […]

Ubuntu, Eclipse, Golang, Gocode Tutorial

You want to program Golang but having a hard time working on Eclipse to get it working? Here is a simple speedorial: 1 Eclipse Install golang package: sudo apt-get install golang Download Eclipse Start Eclipse Go to Help->Install new software Add Goclipse URL: http://goclipse.googlecode.com/svn/trunk/goclipse-update-site/ Select All Availible sites and search for goclipse, select and install. Restart Eclipse […]

Crayon Syntax Highlighter test!

Testing a new highlighter!

Function that creates a function and returns that function

Golang find smallest number in array

Well, it works.