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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import subprocess | |
import sys | |
import re | |
from collections import defaultdict | |
from lxml import etree | |
report = ["Min", "Avg", "Median", "95%", "99%"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[snippets]] | |
description = "set katana namespace" | |
command = "k config set-context minikube --namespace=katana" | |
[[snippets]] | |
description = "Get global ip address" | |
command = "curl ifconfig.co" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |