Skip to content

Instantly share code, notes, and snippets.

@plytro
plytro / tmbo.sh
Created January 8, 2011 17:24 — forked from oogali/tmbo.sh
bash post to tmbo
#!/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"
@plytro
plytro / gist:1881471
Created February 22, 2012 04:41
smith running total
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 / gist:3559359
Created August 31, 2012 21:31
Register subsonic without doing a code patch
// 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
#!/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:

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:

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
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
@plytro
plytro / kubealias.sh
Created August 10, 2017 23:16
kubectl aliases for all the clusters
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'
# 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]