Skip to content

Instantly share code, notes, and snippets.

View scottrigby's full-sized avatar
🤓

Scott Rigby scottrigby

🤓
View GitHub Profile
@scottrigby
scottrigby / plistDiff
Created January 7, 2017 22:15
Shows CLI diff between two plist files
#!/bin/bash
## @file
## Shows CLI diff between two plist files.
##
## Normally, Mac plist files are binary, so diffs do not display. However,
## there are cases where seeing diffs is important. For example, when tracking
## changes via Mackup's git storage option.
##
## Note this option allows seeing plist diffs without fully installing Xcode
@scottrigby
scottrigby / hands-on-gitops-patterns-for-helm-users.md
Last active February 1, 2026 14:32
Hands-On GitOps Patterns for Helm Users

Hands-On GitOps Patterns for Helm Users

  1. Install Flux CLI and Kind:

    $ brew reinstall flux kind
    $ kind --version
    kind version 0.10.0
    $ flux --version
    flux version 0.9.1
@scottrigby
scottrigby / demo.md
Last active February 18, 2025 18:00
How to Structure GitOps Repos

How to Structure GitOps Repos

  1. Let's get started

    $ tmp=`mktemp -d` && cd $tmp && pwd
    /var/folders/7w/tx9gxzkd4p79y2nsj7b5dmdw0000gn/T/tmp.YvRWeerz
  2. Set up simple monorepo directories, preview, and add all in one commit

@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

Flux use case: Cert Manager, Traefik, app with ingress, GitHub as source

Set up local cluster and Flux CLI

  1. Install Flux CLI and Kind:

    $ brew reinstall flux kind
    $ kind --version
    kind version 0.10.0
@scottrigby
scottrigby / demo.md
Last active February 3, 2023 20:13
Helm Users! What Flux 2 Can Do For You - KubeCon CLoudNativeCon EU 2021 - Scott Rigby & Kingdon Barrett, Weaveworks

Helm Users! What Flux 2 Can Do For You

This is the gist promised in our our KubeCon EU 2021 talk.

Go to https://github.com/kingdonb/kccnceu2021 for the full experience! 💖🤩

  • Check out the main branch for the full talk experience (warts and all)
  • Check out the present branch for the solutions according to the presenter
  • Check out the terminal branch for risky root shell fun
  • Check out the features branch for additional features as we incorporate them throughout the week based on your suggestions!
@scottrigby
scottrigby / readme.md
Last active February 3, 2023 20:12
Introduction to GitOps & The Flux Family of Projects

Introduction to GitOps & The Flux Family of Projects

Set up local cluster and Flux CLI

  1. Install Flux CLI and Kind:

    $ brew reinstall flux kind
    $ kind --version
    kind version 0.11.1
#! /bin/bash
set -u
# example: r6by/testoci
: GITHUB_REPOSITORY
yesno() {
read -p "${1} (y/n)?" choice
case "$choice" in
y|Y ) return 0;;
@scottrigby
scottrigby / Brewfile
Last active January 14, 2023 19:30
M1 ~/.Brewfile Apr 2022
tap "aquasecurity/trivy"
tap "fluxcd/tap"
tap "github/gh"
tap "helm/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "teamookla/speedtest"
tap "weaveworks/tap"
brew "bash-completion@2"