Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
#!/usr/bin/ruby # require 'gconf2' path = "/desktop/gnome/lockdown" gclient = GConf::Client.default if ARGV[1].nil? puts "Pass a gconf path as the first arg." puts "Defaulting to #{path}" else path = ARGV[1] end gclient.all_entries("/desktop/gnome/lockdown").each do |entry| puts "Key: #{entry.key} | Value: #{entry.value}" end
This paste will be private.
From the Design Piracy series on my blog: