Skip to content

Instantly share code, notes, and snippets.

View naveensrinivasan's full-sized avatar

Naveen naveensrinivasan

View GitHub Profile
@naveensrinivasan
naveensrinivasan / gh-dl-release
Created May 1, 2017 15:36 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@naveensrinivasan
naveensrinivasan / golang_on_rpi.md
Last active April 28, 2017 18:24 — forked from konradko/golang_on_rpi.md
Install Golang 1.7 on Raspberry Pi
cd ~
wget https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go1.8.linux-armv6l.tar.gz
export PATH=/usr/local/go/bin:$PATH
rm go1.8.linux-armv6l.tar.gz
@naveensrinivasan
naveensrinivasan / locust-wrapper.py
Created April 14, 2017 16:55 — forked from wiebren/locust-wrapper.py
Locust MonKit wrapper for Jenkins
import argparse
import subprocess
import sys
import re
from collections import defaultdict
from lxml import etree
report = ["Min", "Avg", "Median", "95%", "99%"]
@naveensrinivasan
naveensrinivasan / after.sh
Created April 13, 2017 02:49 — forked from justincampbell/after.sh
Jenkins + GitHub Commit Status API
if [[ $BUILD_STATUS == "success" ]]
then
export STATUS="success"
else
export STATUS="failure"
fi
curl "https://api.github.com/repos/justincampbell/my_repo/statuses/$GIT_COMMIT?access_token=abc123" \
-H "Content-Type: application/json" \
-X POST \
@naveensrinivasan
naveensrinivasan / creategist.cs
Created December 3, 2015 00:14
CreateGist using octokit
async Task Main(string[] args)
{
var userName = string.Empty;
GitHubClient client = new GitHubClient(new Octokit.ProductHeaderValue("Octokit.Samples"));
client.Credentials = new Credentials(Util.GetPassword("github"));
var observableclient = new ObservableGitHubClient(client);
var gists = await observableclient.Gist.GetAllForUser(userName).Dump();
@naveensrinivasan
naveensrinivasan / zipkin-starter-0.1.5-kubernetes.yml
Created March 25, 2017 01:25
Zipkin for k8s using PersistentVolumeClaim and Dynamic Provisioning
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: "v1"
kind: "Service"
metadata:
annotations:
fabric8.io/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/kafka/src/main/fabric8/icon.png"
fabric8.io/git-commit: "500219733b1151415686940f4b893d7add206822"
@naveensrinivasan
naveensrinivasan / zipkin-starter-0.1.5-kubernetes.yml
Created March 25, 2017 01:24
Zipkin for k8s using PersistentVolumeClaim and Dynamic Provisioning
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: "v1"
kind: "Service"
metadata:
annotations:
fabric8.io/iconUrl: "https://cdn.rawgit.com/fabric8io/fabric8-ipaas/master/kafka/src/main/fabric8/icon.png"
fabric8.io/git-commit: "500219733b1151415686940f4b893d7add206822"
[[snippets]]
description = "set katana namespace"
command = "k config set-context minikube --namespace=katana"
[[snippets]]
description = "Get global ip address"
command = "curl ifconfig.co"
[[snippets]]
description = "katana"
[[snippets]]
description = "set katana namespace"
command = "k config set-context minikube --namespace=katana"
[[snippets]]
description = "Get global ip address"
command = "curl ifconfig.co"
{
"clnt/daemonsetTransformer/available" : 1.0,
"clnt/daemonsetTransformer/cancelled_connects" : 0,
"clnt/daemonsetTransformer/closes" : 0,
"clnt/daemonsetTransformer/connect_latency_ms.count" : 0,
"clnt/daemonsetTransformer/connection_duration.count" : 0,
"clnt/daemonsetTransformer/connection_received_bytes.count" : 0,
"clnt/daemonsetTransformer/connection_requests.count" : 0,
"clnt/daemonsetTransformer/connection_sent_bytes.count" : 0,
"clnt/daemonsetTransformer/connections" : 1.0,