Skip to content

Instantly share code, notes, and snippets.

View phosphene's full-sized avatar

Ed Phillips phosphene

View GitHub Profile
@phosphene
phosphene / du_ch_pipe_to_ack.txt
Created January 8, 2011 20:20
disk usage human readable output pipe to ack and show only dirs with Gig multiples
[root@phosphene /]# du -ch | ack "^[\d\.]*?G"
require 'rsruby'
r = RSRuby.instance
# mod of Peter Lane's Ruby for Scientific Research plot example
# construct data to plot, graph of x vs exp(x)
xs = 10.times.collect {|i| i}
ys = xs.collect {|x| r.exp(x)}
r.png("exp_example.png") # tell R we will create png file