Skip to content

Instantly share code, notes, and snippets.

@nnewc
nnewc / docker-compose.yaml
Created April 26, 2024 17:52
Netboot.xyz docker compose
---
services:
netbootxyz:
image: ghcr.io/netbootxyz/netbootxyz:latest
container_name: netbootxyz
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MENU_VERSION=2.0.47 #optional
@nnewc
nnewc / minio-nginx-selfsigned.sh
Created December 9, 2023 17:58 — forked from superseb/minio-nginx-selfsigned.sh
Minio + NGINX in Docker using self signed certificates
#!/bin/bash
if [ "$#" -lt 0 ]; then
echo "Usage: $0"
exit 1
fi
echo "Generating nip.io based on found external IP"
FOUNDIP=$(docker run --rm --net=host appropriate/curl https://api.ipify.org)
APIFQDN="minio-api.${FOUNDIP}.nip.io"
FQDN="minio.${FOUNDIP}.nip.io"
@nnewc
nnewc / etcd.go
Last active March 9, 2023 18:18
etcd decrypt secret
package main
import (
"crypto/aes"
"crypto/cipher"
"fmt"
"os"
)
const transformerPrefix = "k8s:enc:aescbc:v1:k-wcldg:"
@nnewc
nnewc / extract-c-c-secrets.sh
Last active October 8, 2022 17:20 — forked from jakefhyde/extract-c-c-secrets.sh
run with `bash -ex extract-c-c-secrets.sh <SNAPSHOT_FILE_NAME> <ETCD_VERSION>`
#!/usr/bin/env bash
set -ex
if [ $# -ne 2 ]; then
echo "Usage: $0 [filename] [etcd_version] [decryption-key]"
exit 1
fi
FILENAME=$1