Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## lrwxrwxrwx 1 aj aj 7 2008-05-16 22:57 /home/aj/bin/s -> service #!/usr/bin/env ruby begin if ARGV.length > 1 unless File.exists?(ARGV[0]) system("sudo /etc/init.d/" + ARGV.join(" ")) else raise "/etc/init.d/" + ARGV[0] + " doesn't exist\n" end else raise "Not enough arguments\nservice <processname> <command(s)>\n" end end
This paste will be private.
From the Design Piracy series on my blog: