Skip to content

Instantly share code, notes, and snippets.

---
PolicyDescriptions:
- PolicyName: ELBSecurityPolicy-2014-10
PolicyTypeName: SSLNegotiationPolicyType
PolicyAttributeDescriptions:
- AttributeName: Protocol-SSLv2
AttributeValue: false # http://en.wikipedia.org/wiki/Transport_Layer_Security#SSL_2.0
- AttributeName: Protocol-TLSv1
AttributeValue: true # generally recognized as safe
- AttributeName: Protocol-SSLv3
# running version=latest is great to solve the immediate vulnerability,
# but becomes slow with continuous deployment. Here's our solution,
# made easier by our hetrogenous environment.
- name: update apt cache if not done today
apt: update_cache=yes cache_valid_time=86400
- name: install standard dependencies
apt: pkg={{item}} force=yes state=present
with_items:
# http://seclists.org/oss-sec/2014/q3/650
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
earliest=-4h index=\"ittools\" NAME=\"cactilog\" Time:
| rex \"Time:(?<polltime>[\\d\\.]+)\"
| trendline sma30(polltime) as smoothed_polltime
| eval timelimit=52
| timechart avg(polltime) max(polltime) avg(smoothed_polltime) avg(timelimit)
### Keybase proof
I hereby claim:
* I am tedder on github.
* I am tedder42 (https://keybase.io/tedder42) on keybase.
* I have a public key whose fingerprint is F7B5 7051 77AD F15D 39E0 BE29 CF4D 3C41 DAEF 5557
To claim this, I am signing this object:
@tedder
tedder / gist:8203137
Created December 31, 2013 23:00
mlkshk top images of 2013 html generatomagic script
import requests
hotlist = requests.get('http://mlkshk.com/static/outfile.txt').text
count = 0
for line in hotlist.splitlines():
share_key, created, like_count, username = line.split("\t")
count += 1
if share_key == 'share_key': continue
print """
<div class="theimage"><a href="http://mlkshk.com/p/%s"><img src="http://s.mlkshk.com/r/%s" border=0 width="500"></a>
@tedder
tedder / gist:4366001
Created December 23, 2012 20:48
ascii histogram
0 *
10 ***
20 ********************
30 ********************
40 *********************************
50 *************************
60 ******************
70 *************************************************
80 ***********************************************************
90 *************************************************
{"0": 1, "640": 1, "130": 58, "260": 67, "390": 27, "520": 2, "10": 3, "140": 70, "270": 56, "400": 17, "530": 8, "20": 20, "150": 66, "280": 63, "410": 13, "540": 2, "30": 20, "160": 64, "290": 50, "420": 18, "550": 2, "40": 33, "170": 75, "300": 38, "430": 13, "560": 2, "50": 25, "180": 73, "310": 45, "440": 17, "570": 3, "60": 18, "190": 72, "320": 30, "450": 6, "580": 1, "70": 49, "200": 59, "330": 42, "460": 9, "590": 2, "80": 59, "210": 63, "340": 20, "470": 10, "600": 1, "90": 49, "220": 55, "350": 31, "480": 9, "100": 55, "230": 67, "360": 26, "490": 9, "620": 1, "110": 62, "240": 69, "370": 23, "500": 11, "120": 65, "250": 50, "380": 19, "510": 5}
package net.inervo;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FilenameFilter;
import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
import com.amazonaws.AmazonClientException;
import boto
s3 = boto.connect_s3("key", "secret")
for bucket in s3.get_all_buckets():
if not bucket.name.islower():
print "-- skipping bucket, cannot handle uppercase bucket names: " + bucket.name
continue
for file in bucket:
print "\t\t" + str(file.size) + "\t" + file.name