Skip to content

Instantly share code, notes, and snippets.

@matt-dres
matt-dres / install_certs_mac.sh
Created December 15, 2022 23:50
Download & install selfsigned certs from TAP onto macOS
#!/bin/bash
set -euo pipefail
#####
# Simple bash script to retrieve the selfsigned cert from TAP and install it locally on macOS
#####
echo "--- Fetching TAP Ingress Certificate ---"
kubectl get secret -n cert-manager tap-ingress-selfsigned-root-ca -o yaml | yq '.data."ca.crt"' | base64 -d > ca.crt
@grihabor
grihabor / Makefile.version
Last active May 27, 2024 13:36
Makefile to use for incremental semantic versioning
MAKE := make --no-print-directory
DESCRIBE := $(shell git describe --match "v*" --always --tags)
DESCRIBE_PARTS := $(subst -, ,$(DESCRIBE))
VERSION_TAG := $(word 1,$(DESCRIBE_PARTS))
COMMITS_SINCE_TAG := $(word 2,$(DESCRIBE_PARTS))
VERSION := $(subst v,,$(VERSION_TAG))
VERSION_PARTS := $(subst ., ,$(VERSION))