Skip to content

Instantly share code, notes, and snippets.

View stelb's full-sized avatar
💭
Try stuff, break stuff, fix stuff. Learned some lesson.

Stefan Le Breton stelb

💭
Try stuff, break stuff, fix stuff. Learned some lesson.
View GitHub Profile
@stelb
stelb / README.md
Created May 13, 2025 17:41
add mta-sts support for mailcow

what is mta-sts?

Just quoting part of the answer (What is MTA-STS?)

MTA-STS, which stands for Mail Transfer Agent Strict Transport Security, is an email standard that secures inbound email and prevents attackers from exploiting a weakness in standard SMTP security. The MTA-STS standard, at its core, is a combination of having all of your email servers using Transport Layer Security (TLS), having valid publicly-trusted certificates for those servers, a published DNS record, and a TXT file. MTA-STS, once implemented, actively enhances security of inbound email to your domain from attackers looking to intercept unsecured emails.

summary: you should set this up and it's quite easy actually.

@stelb
stelb / docker-compose.env
Last active November 13, 2024 09:39
paperless@home
USERMAP_UID=1000
USERMAP_GID=1000
PAPERLESS_TIME_ZONE=Europe/Berlin
PAPERLESS_OCR_LANGUAGE=deu
PAPERLESS_CONSUMPTION_DIR=/usr/src/paperless/consume
PAPERLESS_TIKA_ENABLED=true
@stelb
stelb / redirect_alt_hosts_netscaler.cmd
Created July 9, 2022 10:38
netscaler simple redirect only hosts with sni contentswitch
# pattern sets for hosts to redirect
add policy patset pats_alt_host
bind policy patset pats_alt_host "www.my.site" -charset ASCII
bind policy patset pats_alt_host "myold.site" -charset ASCII
bind policy patset pats_alt_host "marketing-failed.site" -charset ASCII
bind policy patset pats_alt_host "www.marketing-failed.site" -charset ASCII
# responderconfig
# action: redirect
@stelb
stelb / pvmove-sample..sh
Last active December 3, 2021 14:15
replace pvc - kubernetes storage migration
ns=default
src_sc=longhorn
src_sz=1Gi
src_name=original
dst_sc=freenas-nfs-csi
dst_sz=1Gi
dst_name=bigger
@stelb
stelb / getPortMapping.sh
Last active May 26, 2020 07:49
footloose: get hostPort for given machine/containerPort
footloose status -o json | jq '
.machines[] |
select(.container | contains("-'$MACHINE'")) |
.spec.portMappings[] |
select(.containerPort == '$PORT') |
.hostPort'