Skip to content

Instantly share code, notes, and snippets.

View telegraf.conf
# Global tags can be specified here in key="value" format.
[global_tags]
# dc = "us-east-1" # will tag all metrics with dc=us-east-1
# rack = "1a"
## Environment variables can be used as tags, and throughout the config file
# user = "$USER"
# Configuration for telegraf agent
[agent]
@plytro
plytro / kubealias.sh
Created Aug 10, 2017
kubectl aliases for all the clusters
View kubealias.sh
alias kcoreops='kubectl --context=ops-blue.us-east-1.core.shuttercloud.org'
alias kcoreprod='kubectl --context=apps-prod-green.us-east-1.core.shuttercloud.org'
alias kcoreqa='kubectl --context=apps-qa-green.us-east-1.core.shuttercloud.org'
alias kcoredev='kubectl --context=apps-dev-green.us-east-1.core.shuttercloud.org'
alias kcoreprodb='kubectl --context=apps-prod-blue.us-east-1.core.shuttercloud.org'
alias kcoreqab='kubectl --context=apps-qa-blue.us-east-1.core.shuttercloud.org'
alias kcoredevb='kubectl --context=apps-dev-blue.us-east-1.core.shuttercloud.org'
alias kmini='kubectl --context=minikube'
alias hcoreops='helm --kube-context=ops-blue.us-east-1.core.shuttercloud.org'
View v0.3.0-broken.md
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ helm delete --purge myjenkins
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ helm install --name=myjenkins .
NAME:   myjenkins
LAST DEPLOYED: Thu Mar 30 23:24:45 2017
NAMESPACE: default
STATUS: DEPLOYED

RESOURCES:
==> extensions/Deployment
View v0.2.0-working.md
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ helm delete --purge myjenkins
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.3.0-broken) $ git co v0.2.0-working 
Switched to branch 'v0.2.0-working'
Your branch is up-to-date with 'origin/v0.2.0-working'.
plytro@plytro-lnxlap:~/tmp/jenkins-master (v0.2.0-working) $ helm install --name=myjenkins .
NAME:   myjenkins
LAST DEPLOYED: Thu Mar 30 23:27:26 2017
NAMESPACE: default
STATUS: DEPLOYED
View keybase.md

Keybase proof

I hereby claim:

  • I am plytro on github.
  • I am plytro (https://keybase.io/plytro) on keybase.
  • I have a public key ASBpuSubhIUmUsxRb1KbEQfBrinkiXzoqQNlhIQBJtkJrAo

To claim this, I am signing this object:

View ssh-agent-setup.sh
#!/bin/bash
#
# File: ~/.ssh/ssh-agent-setup
#
# Checks authentication environment.
# If the ssh-agent is not running, starts a new one.
#
# Setup instructions:
#
# 1) For bash and ksh users:
@plytro
plytro / gist:3559359
Created Aug 31, 2012
Register subsonic without doing a code patch
View gist:3559359
// Running a webserver on port 80, add this to your hosts file
// 127.0.0.1 localhost subsonic.org
// Then "mkdir ${wwwroot}/backend && echo true >> ${wwwroot}/backend/validateLicense.view"
//
// Run this in beanshell (bsh) to get the key to match an email address. Enter the address
// and output into the correct screen in subsonic and you're done.
//
// You should be able to remove the hosts file entry at this point.e4658
@plytro
plytro / gist:1881471
Created Feb 22, 2012
smith running total
View gist:1881471
REM ***** BASIC *****
Option Explicit
Sub calcSeries
Dim oSheet As Object
Dim iCell as Object, oCell As Object
Dim dataStartColumn as Integer, rowOffset as Integer
Dim inputColumn as Integer, inputRow as Integer
Dim outputColumn as Integer, outputRow as Integer
@plytro
plytro / tmbo.sh
Created Jan 8, 2011 — forked from oogali/tmbo.sh
bash post to tmbo
View tmbo.sh
#!/bin/sh
## tmbo.sh -- my attempt at posting from the command line
## tmbo: lnk, twitter: @oogali
##
BASE_URL=thismight.be/offensive
TMBO_CONFIG=${HOME}/.tmbo
CURL=`which curl 2>/dev/null`
if [ -z "${CURL}" ]; then
echo "$0: curl is not installed"