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 civis | |
from base64 import b64decode | |
# from json import loads | |
import logging | |
import os | |
def get_credential_id(email): | |
credentials = client.credentials.list() |
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
[thing] | |
stuff=flibbleAndPtang | |
foo=bar!@$@ |
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
RELEASE := p4-rocketchat | |
NAMESPACE ?= rocketchat | |
CHART_NAME ?= stable/rocketchat | |
CHART_VERSION ?= 0.3.4 | |
fnord: | |
helm upgrade --install --force --wait $(HELM_RELEASE) \ | |
--namespace=$(NAMESPACE) \ | |
--version $(CHART_VERSION) \ |
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 | |
printf "%d < %d" "$1" "$2" | |
if [[ $1 -lt $2 ]] | |
then | |
echo " = true" | |
exit 0 | |
fi |
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
# Helm init | |
helm init | |
# Apply | |
kc apply -f https://gist.githubusercontent.com/27Bslash6/97d4b9ad55a87e8c9880d9f425b1d4ab/raw/0c25adf337fe181689dbf7d7be2741e00f06a8b1/helm-tiller-rbac.yaml | |
# Create cluster-admin cluster role binding for Helm in namespace kube-system | |
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
# Patch a running deployment to confirm access rights |
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: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: tiller-clusterrolebinding |
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
kube-lego Mar 8, 2018, 4:03:55 PM log: exiting because of error: log: cannot create log: open /tmp/kube-lego.kube-lego-75cf85bd4b-2g888.unknownuser.log.ERROR.20180308-050355.1: no such file or directory | |
kube-lego Mar 8, 2018, 4:03:55 PM E0308 05:03:55.315662 1 reflector.go:214] github.com/jetstack/kube-lego/pkg/kubelego/watch.go:104: Failed to list *extensions.Ingress: ingresses.extensions is forbidden: User "system:serviceaccount:kube-lego:default" cannot list ingresses.extensions at the cluster scope: Unknown user "system:serviceaccount:kube-lego:default" | |
kube-lego Mar 8, 2018, 4:03:55 PM E0308 05:03:55.315662 1 reflector.go:214] github.com/jetstack/kube-lego/pkg/kubelego/watch.go:104: Failed to list *extensions.Ingress: ingresses.extensions is forbidden: User "system:serviceaccount:kube-lego:default" cannot list ingresses.extensions at the cluster scope: Unknown user "system:serviceaccount:kube-lego:default" | |
kube-lego Mar 8, 2018, 4:03:55 PM time="2018-03-08T05:03:55Z" level=info msg="server listening on h |
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 | |
set -eu | |
# ---------------------------------------------------------------------------- | |
# Find real file path of current script | |
# https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within | |
# ---------------------------------------------------------------------------- | |
source="${BASH_SOURCE[0]}" | |
while [[ -h "$source" ]] | |
do # resolve $source until the file is no longer a symlink | |
dir="$( cd -P "$( dirname "$source" )" && pwd )" |
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 | |
set -ea | |
# ---------------------------------------------------------------------------- | |
# Pretty printing | |
TERM="${TERM:-'dumb'}" | |
if test -t 1 | |
then |
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 | |
#shellcheck disable=SC2034 | |
# beep | |
# ********************************************************* | |
# Generate a beep shell command for OSX 10.7.5+ | |
# Original idea (C)2012, B.Walker, G0LCU. | |
# Now issued as Public Domain, CC0. You may do with it as you please. | |
repeat=${1:-1} |
NewerOlder