Skip to content

Instantly share code, notes, and snippets.

@stephankoelle
stephankoelle / snippet.java
Created June 17, 2025 09:48
Integrating AWS Secrets Manager for Secure Secrets Management in Quarkus application.properties
package de.sk;
import io.quarkus.runtime.annotations.StaticInitSafe;
import org.eclipse.microprofile.config.spi.ConfigSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient;
import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueRequest;
@stephankoelle
stephankoelle / snippet.html
Created June 17, 2025 09:48
Simple, good looking, css only, burger menu
<style>
/* Burger Menu Styles */
.burger-menu {
position: relative;
z-index: 1001;
}
.burger-icon {
position: fixed;
top: 20px;
@stephankoelle
stephankoelle / custom.sh
Created June 17, 2025 09:49
podman systemd service (with quadlet) starting a private container with ecr login
# custom.container
#
# This does login into ECR and starts a private container on boot with podman and quadlet / systemd.
# The container is running rootless, the systemd service is a 'user' service
# This is build to work on Fedora CoreOS, even the aws-cli does not need to be installed, it's used from aws public container repo.
# You need to have valid aws credentials in ~/.aws/
# Replace the *** with your correct aws ecr url
#
# This file was partly generated with podlet
#
@stephankoelle
stephankoelle / manual.md
Created November 7, 2025 11:00
Auto cleanup podman images

Use filters to avoid surprises, e.g. keep images used in last 7 days:

podman image prune -a -f --filter "until=168h"

Use podman’s auto-prune via events (Podman 4.4+)

  • Podman supports automatic prune on certain events via containers.conf.
  • Rootless: edit ~/.config/containers/containers.conf
  • Rootful: edit /etc/containers/containers.conf
@stephankoelle
stephankoelle / fix-xdg-runtime.sh
Created January 5, 2026 08:57
Fix: $XDG_RUNTIME_DIR not define
# how to fix:
# Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
mkdir -p ~/.bashrc.d
echo "export XDG_RUNTIME_DIR=/run/user/$(id -u)" > ~/.bashrc.d/systemd
source ~/.bashrc.d/systemd
@stephankoelle
stephankoelle / info.md
Last active March 20, 2026 07:50
debug socket issue

netstat -s | grep -E "pruned|collapsed"
166 packets pruned from receive queue because of socket buffer overrun
8 packets pruned from receive queue
1787 packets collapsed in receive queue due to low socket buffer

nstat -az | grep -i listen
Fri Mar 20 07:49:54 UTC 2026
TcpExtListenOverflows 3748 0.0
TcpExtListenDrops 3748 0.0
TcpExtTCPFastOpenListenOverflow 0