homelab
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
format = """ | |
$hostname\ | |
$golang\ | |
$git_branch\ | |
$directory\ | |
$cmd_duration\ | |
$character""" | |
[hostname] | |
ssh_only = 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
#!/bin/sh | |
set -e | |
appname="--generatename" | |
orgname="personal" | |
region="" | |
internal_port="8080" | |
external_port="" |
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
FROM ghcr.io/inlets/inlets-pro:0.8.5 | |
CMD ["tcp", "server", "--auto-tls=false", "--token-env=TOKEN"] |
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
job "faasd_bundle" { | |
datacenters = ["dc1"] | |
type = "system" | |
group "faasd-provider" { | |
network { | |
port "provider" { | |
static = 8081 | |
to = 8081 | |
} |
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
job "fabio" { | |
datacenters = ["dc1"] | |
type = "system" | |
group "fabio" { | |
network { | |
mode = "host" | |
port "lb" { | |
static = 9999 |
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
#!/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" |
docker-compose --env-file ghost.env up
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
version: '3.2' | |
services: | |
inlets: | |
image: inlets/inlets-pro:0.6.1 | |
restart: always | |
command: [ | |
"client", | |
"--connect", "${INLETS_REMOTE}", |
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
#!/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}' ) |
NewerOlder