Skip to content

Instantly share code, notes, and snippets.

@ml4
ml4 / gist:9012db298c428cd3f4084ff64e58f81c
Created November 19, 2026 14:30
hc_hcpt_remote_run.sh
#!/usr/bin/env bash
#
## hc_hcpt_remote_run
## 2021-05-28 ml4
## Automate/wrap the terraform run in order to keep config DRY without using terragrunt
#
## Uses a temp directory and downloads every provider and module fresh to ensure cleanliness/standardisation. At cost of time.
#
###############################################################################################################################
## cadvisor
#
variable "dh_uid" {
type = string
default = "mydh"
}
#
## pwd needs to be _read -sp_'d into the user's env before the job is run:
## read -sp '> ' NOMAD_VAR_dh_pwd && export NOMAD_VAR_dh_pwd=${NOMAD_VAR_dh_pwd}
#
@ml4
ml4 / hc-vault-recursive-namespace-list.sh
Created July 15, 2022 17:42
Recursive list of Vault Enterprise namespaces
#!/bin/bash
function list_namespace {
entry_point=$(echo ${1} | sed 's/\/$//')
echo "${entry_point}"
## first, check if root ns, and if so collect children slightly differently due to path specification
#
if [[ "${entry_point}" == "root" ]]
then

Keybase proof

I hereby claim:

  • I am ml4 on github.
  • I am ml4 (https://keybase.io/ml4) on keybase.
  • I have a public key whose fingerprint is A4D8 F831 732D B143 F30B 1405 3ED5 A50E 236F 6023

To claim this, I am signing this object: