Skip to content

Instantly share code, notes, and snippets.

View mhawkins's full-sized avatar

Matt Hawkins mhawkins

  • San Francisco, CA
View GitHub Profile
@mhawkins
mhawkins / Paperclip expiring urls
Created November 2, 2009 23:16
Generate expiring URLs for private S3 files.
module Paperclip::Storage::S3
def expiring_url(time = 3600)
AWS::S3::S3Object.url_for(path, bucket_name, :expires_in => time )
end
end
@mhawkins
mhawkins / oinkmaster-stories.txt
Created January 2, 2009 18:38 — forked from bryanl/gist:42630
oinkmaster stories
A User through Oinkmaster's config disables rules in a downloaded rule pack to remove unwanted rules.
A User through Oinkmaster's config modifies rules in a downloaded rule pack to customize rules for his environment.
A User through Oinkmaster's config ignores files in a downloaded rule pack to remove unwanted rule categories.
A User through Oinkmaster's config enables rules disabled in a downloaded rule pack to include deprecated rules he wants to run.
A User through Oinkmaster's config prevents updated rules from being copied to the Snort installation so it will not override an older version of the rule he wants to run.
A User running Oinkmaster compares the rules in a downloaded pack to the rules already installed to determine which rules downloaded are to be copied over.
A User running Oinkmaster downloads one or more rule packs to update their Snort installation so his server will have current rules.
A User running Oinkmaster downloads rule packs over http to get rules from Snort.org or BleedingSn