Skip to content

Instantly share code, notes, and snippets.

#Output
#Jerome-Gagners-MacBook-Pro:amazon jgagner$ ruby bids.rb
#Current bid: 6, bid total 6, current max 0
#Current bid: 6, bid total 12, current max 6
#Current bid: 6, bid total 18, current max 12
#Current bid: 3, bid total 12, current max 18
#Accepted bids = 666 at 18
#Current bid: 6, bid total 6, current max 0
#Current bid: 5, bid total 10, current max 6
#Current bid: 4, bid total 12, current max 10
@mikehale
mikehale / kernel_module.rb
Created September 4, 2009 18:55
A chef definition for installing kernel modules on ubuntu/debian.
# A chef definition for installing kernel modules on ubuntu/debian.
define :kernel_module, :action => :install do
if params[:action] == :install
bash "modprobe #{params[:name]}" do
code "modprobe #{params[:name]}"
not_if "lsmod |grep #{params[:name]}"
end
bash "install #{params[:name]} in /etc/modules" do