Skip to content

Instantly share code, notes, and snippets.

@powersj
powersj / telegraf-build.sh
Created August 14, 2024 16:55
Telegraf Build
#!/bin/bash
# Checks out specified release tag and builds the binary
#
VERBOSITY=0
TEMP_D=""
error() { echo "$@" 1>&2; }
fail() { [ $# -eq 0 ] || error "$@"; exit 1; }
bad_usage() { usage 1>&2; [ $# -eq 0 ] || error "$@"; return 1; }
@powersj
powersj / main.go
Created March 29, 2023 19:20
memguard loop
package main
import (
"fmt"
"sync"
"github.com/awnumar/memguard"
)
func loadSecret(wg *sync.WaitGroup, enclave *memguard.Enclave) {
@powersj
powersj / template.sh
Created September 6, 2017 20:47
Bash Shell Script Template
#!/bin/bash
# Bash script template
#
# Copyright 2017 Canonical Ltd.
# Joshua Powers <[email protected]>
VERBOSITY=0
TEMP_D=""
error() { echo "$@" 1>&2; }