Skip to content

Instantly share code, notes, and snippets.

View mravi's full-sized avatar

Ravi Magham mravi

  • Lyft
  • Santa Clara
View GitHub Profile
@mravi
mravi / gist:5a78c56a4e06741f0ad6
Last active September 20, 2015 16:33 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@mravi
mravi / SparkUtils.scala
Created July 26, 2016 13:51 — forked from ibuenros/SparkUtils.scala
Spark productionizing utilities developed by Ooyala, shown in Spark Summit 2014
//==================================================================
// SPARK INSTRUMENTATION
//==================================================================
import com.codahale.metrics.{MetricRegistry, Meter, Gauge}
import org.apache.spark.{SparkEnv, Accumulator}
import org.apache.spark.metrics.source.Source
import org.joda.time.DateTime
import scala.collection.mutable
@mravi
mravi / gist:86e6cab649929dc74d0a9578670cca64
Created January 24, 2017 16:43 — forked from mikeyk/gist:1329319
Testing storage of millions of keys in Redis
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])