Skip to content

Instantly share code, notes, and snippets.

View scottrigby's full-sized avatar
🤓

Scott Rigby scottrigby

🤓
View GitHub Profile
@scottrigby
scottrigby / demo.md
Last active January 14, 2021 06:01
Demo: Flux Helm Operator -> Controller Migration

Demo: Flux Helm Operator -> Controller Migration

  1. Create local cluster

    kind create cluster
  2. Barebones flux2 install for demo

#!/bin/bash
settings() {
set -eu
if [ "${DEBUG:-}" = 1 ]; then
export PS4='+ ($LINENO) '
set -x
fi
}
#!/bin/bash
# See https://github.com/helm/charts/issues/23971
settings() {
set -eu
if [ "${DEBUG:-}" = 1 ]; then
export PS4='+ ($LINENO) '
set -x
fi
@scottrigby
scottrigby / git-docker-tag-formats.md
Created September 6, 2019 14:22
git docker tag formats
@scottrigby
scottrigby / keybase-team-encrypted-fs.md
Last active August 10, 2024 23:35
🔐 Keybase team encrypted file sharing

🔐 Keybase team encrypted file sharing

Keybase is a cryptographically secure, popular tool to verify identities, and provide secure groups, files and chats.

We are using keybase filesystem (KBFS) for securely sharing encrypted files (containing keys, passwords, etc). This announcement explains the high-level, this documentation page goes into further detail, and the KBFS Crypto Spec explains how their cryptography works (see the link to Saltpack, which is used for the encryption format).

Team file sharing directories are mounted to /Volumes/Keybase/team/TEAM.NAME. For example, the helm_project file sharing would be mounted to /Volumes/Keybase/team/helm_project (see Known issues and workarounds below).

Prerequisites

@scottrigby
scottrigby / aws_vault_exec.bash
Created July 19, 2019 17:17
aws-vault assume role prompt exec for ~/.bash_profile
function aws_vault_exec() {
if ! which aws-vault >/dev/null; then
echo You must have 'aws-vault' installed. See https://github.com/99designs/aws-vault/
return 1
fi
local list=$(grep '^[[]profile' <~/.aws/config | awk '{print $2}' | sed 's/]$//')
if [[ -z $list ]]; then
echo You must have AWS roles and profiles set up to use this. See https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-cli.html
return 1
fi
@scottrigby
scottrigby / spin.sh
Created April 1, 2019 01:50
Shell script to begin or end a spinner background process
#!/bin/sh
help() {
cat << EOF
spin(1)
NAME
spin - begin or end a spinner background process
SYNOPSIS
@scottrigby
scottrigby / coc-pr.sh
Created November 10, 2018 05:27
Quick helper for making Helm Code of Conduct PRs
#! /bin/bash
PROJECT=$1
ORG=${2:-helm}
BRANCH=${3:-helm-coc}
SOURCE=${4:-~/development/Go/src/github.com/helm/chart-testing/code-of-conduct.md}
FORK=$(whoami)
FILE=code-of-conduct.md
GIT_MESSAGE_HEAD="Helm code of conduct"
GIT_MESSAGE_BODY="See https://github.com/helm/chart-testing/issues/48"
@scottrigby
scottrigby / auto-dco.sh
Last active April 5, 2022 22:04
Add to ~/.bash_profile (or ~/.zshrc) to auto-sign git commits.
# Always signs commits for DCO (popularized by The Linux Foundation, required by
# most CNCF projects including Helm).
# See `git help commit`:
# > -s, --signoff
# > Add Signed-off-by line by the committer at the end of the commit log
# message. The meaning of a signoff depends on the project, but it typically
# certifies that committer has the rights to submit this work under the same
# license and agrees to a Developer Certificate of Origin (see
# http://developercertificate.org/ for more information).
git() {

Keybase proof

I hereby claim:

  • I am scottrigby on github.
  • I am r6by (https://keybase.io/r6by) on keybase.
  • I have a public key ASAX5QbeNWjrxE7mzyr1wbwlNJGNep29TnDJOJXvZwJvtQo

To claim this, I am signing this object: