Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
bail() {
printf "${RED}$1${NC}\n" 1>&2
exit 1
}
function registry_pki_secret() {
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: support-bundle
spec:
version: "{{ TagName }}"
platforms:
- selector:
matchLabels:
os: linux
package main
import (
"bufio"
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"os"
apiVersion: troubleshoot.replicated.com/v1beta1
kind: Collector
metadata:
name: collector-sample
labels:
applicationName: my sample app 1
spec:
- clusterInfo: {}
- clusterResources: {}
- secret:
apiVersion: troubleshoot.replicated.com/v1beta1
kind: Troubleshoot
metadata:
name: support-io
spec:
uploadResultsTo: https://hookb.in/Z26mz8R9VpC7q7eYrWob
analyzers:
- clusterVersion:
outcomes:
- fail:
specs:
- meta.redact:
scrubs:
# This will scrub env variables from container stdout files
- regex: '(?i)((?:username|password_?=))(\").*(\")([\s\n\r\t]*)'
replace: '${1}${2}***SCRUBBED***${3}${4}'
# This will scrub env variables from container/service JSON files
- regex: '(?i)((?:password_?=))(\\\").*(\\\"\")(,?)([\s\n\r\t]*)'
@divolgin
divolgin / keybase.md
Created April 5, 2016 02:22
keybase.md

Keybase proof

I hereby claim:

  • I am divolgin on github.
  • I am 418 (https://keybase.io/418) on keybase.
  • I have a public key ASCsNvyw_h-CXSa-_nxn8UcIqADGJbgDLSi-qwAqyUiIaAo

To claim this, I am signing this object:

$ sudo iptables -L -v
Chain INPUT (policy ACCEPT 85668 packets, 17M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
1173K 62M DOCKER all -- any docker0 anywhere anywhere
1161K 60M ACCEPT all -- any docker0 anywhere anywhere ctstate RELATED,ESTABLISHED
576K 980M ACCEPT all -- docker0 !docker0 anywhere anywhere
0 0 ACCEPT all -- docker0 docker0 anywhere anywhere