Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* GitHub webhook handler template.
*
* @see https://developer.github.com/webhooks/
* @author Miloslav Hůla (https://github.com/milo)
*/
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check
@wypb
wypb / SparkUtils.scala
Created February 29, 2016 09:21 — 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
@wypb
wypb / json
Created August 8, 2014 10:29
json
{
"ret": true,
"data": {
"zookeeperClientDetailMap": {
"0x5475d9437fd000e": {
"port": 51182,
"ip": "192.168.6.226",
"sent": 393387,
"received": 393025,
"establishTime": 1406186062245,