Skip to content

Instantly share code, notes, and snippets.

View srvaroa's full-sized avatar
🎧

Galo Navarro srvaroa

🎧
View GitHub Profile
$ git diff serving.0.2.2.yaml serving.0.2.2._witheventing.yaml
diff --git a/serving.0.2.2.yaml b/serving.0.2.2._witheventing.yaml
index f38b802..dc42e81 100644
--- a/serving.0.2.2.yaml
+++ b/serving.0.2.2._witheventing.yaml
@@ -14006,6 +14006,15 @@ data:
"legendFormat": "knative-build",
"refId": "C"
},
+ {
package com.github.srvaroa.jmh;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
import java.util.concurrent.TimeUnit;
@State(Scope.Benchmark)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Warmup(iterations = 4)
@srvaroa
srvaroa / post.py
Created November 23, 2016 09:51 — forked from bhornseth/post.py
Simple tornado server
#!/usr/bin/env python
import tornado.ioloop
import tornado.web
import pprint
import urllib
class MyDumpHandler(tornado.web.RequestHandler):
def post(self):
unquoted = urllib.unquote(self.request.body)
@srvaroa
srvaroa / gist:f1a8e5aab4bffd767ded
Created October 23, 2015 11:32
Generate changelog from git + JIRA
git log | grep -E '\s*(Fix|Ref).*MN' | grep MNA | sed 's/^.*MNA/MNA/g' | tr , '\n' | while read no; do echo $no $(curl -s https://midonet.atlassian.net/rest/api/latest/issue/$no?fields=summary) ; done
#!/bin/sh
#
# foo init.d script.
#
# All java services require the same directory structure:
# /usr/local/$APP_NAME
# /var/log/$APP_NAME
# /var/run/$APP_NAME
APP_NAME="foo"