Skip to content

Instantly share code, notes, and snippets.

$ rpm help
RPM version 4.4.2.3
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Usage: rpm [-aKfgpWHqV] [-aKfgpWHqVcdils] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqV] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVK] [-aKfgpWHqVcdilsaKfgpWHqVKi] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv] [-aKfgpWHqVcdilsaKfgpWHqVKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
[--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
[--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles]
config = SimpleConfig.new
config.load_file File.join(File.dirname(__FILE__), "sample.rb")
config.get(:foo) #=> "bar"
config[:save_path] #=> "/var/www/download"
@yaychris
yaychris / gist:285410
Created January 24, 2010 19:54
1.in? [2, 3]
# Turn this:
# [1, 2].include? 3
#
# Into this:
# 3.in? [1, 2]
#
# Why? Shorter, more readable conditionals:
# puts 'booya' if 3.in? [1, 2]
class Object