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
convert-env-file-to-fish: ## take the existing .env and convert to fish format in .env.fish | |
@awk '{ split($$1, a, "="); printf "set -gx %s \"%s\"\n", a[1], a[2]; }' .env > .env.fish |
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
.DEFAULT_GOAL := help | |
.PHONY: help | |
help: ## This help message | |
@awk -F '[, ]+' '/^[a-zA-Z0-9_-]+:.*##/ { \ | |
target = $$0; \ | |
sub(/^[ \t]*/, "", target); \ | |
sub(/:.*##/, "##", target); \ | |
split(target, parts, "##"); \ | |
gsub(/^[ \t]*|[ \t]*$$/, "", parts[1]); \ |
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
name: Example of building a container and it's relevant helm chart, and pushing to container registry | |
on: | |
release: | |
types: [ published ] | |
permissions: | |
contents: read | |
jobs: |
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
########################################## | |
# Cert manager | |
########################################## | |
data "http" "cert_manager_crds" { | |
url = "https://github.com/cert-manager/cert-manager/releases/download/v${var.cert_manager_version}/cert-manager.crds.yaml" | |
} | |
locals { | |
cert_manager_crds = { |
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
# It's recommended to install this before the chart | |
# This is part of bootstrapping a cluster, | |
# but you probably should not be doing it this way, dingus | |
data "http" "cm_crds" { | |
url = "https://github.com/cert-manager/cert-manager/releases/download/v${var.cert_manager_version}/cert-manager.crds.yaml" | |
} | |
locals { | |
crd_map = { |
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
terraform { | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = "~> 4.0" | |
} | |
azuread = { | |
source = "hashicorp/azuread" | |
version = "~> 3.0" |
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
{ | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | |
nix-darwin.url = "github:LnL7/nix-darwin"; | |
nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; | |
}; | |
outputs = inputs@{ self, nix-darwin, nixpkgs }: | |
let | |
configuration = { pkgs, ... }: { |
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
az ssh vm --ip 1.2.3.4 -- "-L 3000:127.0.0.1:3000" |
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
{ | |
# minimized for clarity. | |
# Some of these might not be needed. After some trial and error | |
# I got this working with these configs. | |
# I do not have the patience to rn an elimination test. | |
services.gnome.gnome-remote-desktop.enable = true; | |
# Enable the X11 windowing system. | |
services.xserver.enable = true; |
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
kubectl config unset clusters && kubectl config unset contexts && kubectl config unset users && kubectl config unset current-context |
NewerOlder