Skip to content

Instantly share code, notes, and snippets.

@jehiah
jehiah / simulate_memcached.py
Created August 20, 2011 01:43
test script to simulate a partially reachable memcached instance
#!/bin/env python
"""
This is a test script to simulate a memcached instance on a server
that has gone south and is accepting connections, but generally not
responding.
The goal of this script is to help test/develop correct client
side settings for timeouts/failure scenarios
@Jmayhak
Jmayhak / get flurry data
Created June 30, 2011 00:03
pull all flurry data for your platforms
#!/usr/bin/php
<?php
// NOTE: create a folder for each metric. ./ActiveUsers and ./NewUsers and etc
$appMetrics = array('ActiveUsers', 'NewUsers', 'MedianSessionLength', 'AvgSessionLength', 'Sessions', 'RetainedUsers');
// define your platforms as listed in Flurry
$platforms = array();