Skip to content

Instantly share code, notes, and snippets.

format = """
$hostname\
$golang\
$git_branch\
$directory\
$cmd_duration\
$character"""
[hostname]
ssh_only = true
@jsiebens
jsiebens / README.md
Last active December 1, 2021 19:40
homelab

homelab

#!/bin/sh
set -e
appname="--generatename"
orgname="personal"
region=""
internal_port="8080"
external_port=""
@jsiebens
jsiebens / Dockerfile
Created June 11, 2021 11:58
inlets PRO and Fly.io
FROM ghcr.io/inlets/inlets-pro:0.8.5
CMD ["tcp", "server", "--auto-tls=false", "--token-env=TOKEN"]
@jsiebens
jsiebens / faasd.nomad
Last active February 19, 2021 16:13
faasd on Nomad
job "faasd_bundle" {
datacenters = ["dc1"]
type = "system"
group "faasd-provider" {
network {
port "provider" {
static = 8081
to = 8081
}
@jsiebens
jsiebens / fabio.nomad
Last active September 24, 2023 06:23
Nomad monitoring with Thanos
job "fabio" {
datacenters = ["dc1"]
type = "system"
group "fabio" {
network {
mode = "host"
port "lb" {
static = 9999
#!/bin/bash
export OWNER="openfaas"
export REPO="faasd"
version=""
echo "Finding latest version from GitHub"
version=$(curl -sI https://github.com/$OWNER/$REPO/releases/latest | grep -i location | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')
echo "$version"
@jsiebens
jsiebens / README.md
Last active September 8, 2021 13:26
Ghost + Inlets PRO http client
docker-compose --env-file ghost.env up
@jsiebens
jsiebens / docker-compose.yaml
Created May 13, 2020 06:20
Ghost + Traefik + Inlets PRO
version: '3.2'
services:
inlets:
image: inlets/inlets-pro:0.6.1
restart: always
command: [
"client",
"--connect", "${INLETS_REMOTE}",
#!/bin/bash -e
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name )
TEMPDIR=$( mktemp -d )
trap "{ rm -rf $TEMPDIR ; exit 255; }" EXIT
SA_SECRET=$( kubectl get sa -n $1 $2 -o jsonpath='{.secrets[0].name}' )