Wednesday, May 4, 2011

rename files with ruby

#!/usr/bin/env ruby
# This script renames files with white spaces with
# files with underscores in the current working directory.

require 'fileutils'
Dir.glob("*\ *").each do |original_file|
underscore_file = original_file.gsub(" ","_")
FileUtils.mv(original_file,underscore_file)
puts "Renamed: #{original_file} => #{underscore_file}"
end

Monday, April 11, 2011

How to check md5sum on OSX

[ 12:57:03 user@machine:~/Downloads/tech_apps ]
(0.42 0.49 0.45)$ md5 CentOS-5.6-i386-bin-DVD.iso
MD5 (CentOS-5.6-i386-bin-DVD.iso) = 181142a5845586579d5d4d96e43a4827

Monday, March 28, 2011

Velocity 2011 Tracks









06/14/2011 - 6/16/2011
  • Automation strategies
  • Cloud computing: the good bits
  • JavaScript speedups
  • Storing and managing big data: NoSQL, Hadoop
  • Metrics and monitoring
  • Building and supporting the business case

Friday, March 4, 2011

Pico visudo?

Had an issue with visudo, every time i

$sudo visudo

pico/nano would start up - WTF.

fix: .bashrc

export EDITOR=/usr/bin/vim
alias visudo='sudo -E visudo'