Skip to content

Instantly share code, notes, and snippets.

View F21's full-sized avatar

Francis Chuang F21

View GitHub Profile

Keybase proof

I hereby claim:

  • I am f21 on github.
  • I am f21 (https://keybase.io/f21) on keybase.
  • I have a public key whose fingerprint is 1FBD EDB8 F7F4 4A77 FDF3 56F2 A11A 8EE1 92A0 36A4

To claim this, I am signing this object:

@F21
F21 / cleanup-docker.md
Last active March 7, 2024 10:05
Commands to clean up docker

Remove dangling images

docker images -qf dangling=true | xargs docker rmi

Remove dangling volumes

docker volume ls -qf dangling=true | xargs -r docker volume rm
@F21
F21 / gist:08bfc2e3592bed1e931ec40b8d2ab6f5
Last active October 23, 2022 12:36
Minikube RBAC Quick Start
minikube start --kubernetes-version=v1.7.0 --extra-config=apiserver.Authorization.Mode=RBAC
kubectl create clusterrolebinding add-on-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
minikube dashboard
@F21
F21 / raft.go
Created November 15, 2017 05:05
Sample hashicorp/raft + hashicorp/serf app
package main
import (
"crypto/md5"
"flag"
"fmt"
"io"
"log"
"os"
"path/filepath"
@F21
F21 / signing-gpg-keys.md
Last active May 5, 2024 20:59
Signing someone's GPG key

This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.

Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint

The commands will work for both GPG and GPG2.

I use Julian's key for the examples. His key id is 2AD3FAE3. You should substitute with the appropriate key id when running the commands.

Signing the key

  1. List the keys currently in your keyring: gpg --list-keys.
@F21
F21 / update-pulled-images.md
Last active February 19, 2021 17:31
Update all pulled docker images

Update all pulled docker images

docker images |grep -v REPOSITORY|awk '{printf "%s:%s\n", $1, $2}'|xargs -L1 docker pull