Skip to content

Instantly share code, notes, and snippets.

@santisaez
santisaez / memcached-oom.py
Created January 5, 2012 10:09
SERVER_ERROR out of memory storing object with memcached 1.4.10
#!/usr/bin/python
import memcache
import sys
import random
MEMCACHED_SERVER = sys.argv[1]
MEMCACHED_PORT = '11211'
MEMCACHED_KEY = 'testing.' + str(random.randint(1, pow(2,16))) + '.'
@santisaez
santisaez / benchmark.py
Created July 15, 2011 15:43
InnoDB 1GB data
#!/usr/bin/python
import MySQLdb
import time
conn = MySQLdb.connect(host="localhost", db= "benchmark", read_default_file="~/.my.cnf")
cursor = conn.cursor()
id = 1
count = 28200000
@santisaez
santisaez / poodle.md
Last active August 29, 2015 14:07
#poodle recap

#poodle recap

Enable SSL debug on Apache and check if your clients are using SSLv3, you will get the protocol+cipher used for each HTTPS request:

CustomLog /tmp/apache_ssl.log "%v %a %{SSL_PROTOCOL}x %{SSL_CIPHER}x"

Tip: see mod_ssl documentation if you need other SSL environment variables.

If possible, disable SSLv3 on the web server: