How to Send "User Is Logging Into App" Alerts from authentik to Discord

authentik can post to Discord out of the box, but the default embed only names the user and the event type. I wanted a short message that says who signed into which app: alex is logging into Grafana Tested on authentik 2026.8. Why the default doesn’t work The plain login event happens at the authentik level, before any app is involved, so it has no app name. The authorize_application event fires when a user is authorized for a specific app. That’s the one to match on. The transport mode called “Slack Webhook (Discord compatible)” uses a fixed embed and ignores property mappings entirely. Step 1: Create a Discord webhook In Discord: Channel Settings → Integrations → Webhooks → New Webhook, then copy the URL. It should look like this: ...

How to Protect Traefik Services with CrowdSec

If you expose self-hosted apps to the internet through Traefik, you will see scanners and brute-force attempts within hours. CrowdSec reads Traefik’s access log, spots attack patterns, and tells a Traefik plugin to return 403 to the offenders. This guide walks through the full setup with Docker Compose. How it fits together Internet → Traefik (https entrypoint) → crowdsec@file middleware → app │ │ │ writes JSON access log │ asks "is this IP banned?" ▼ ▼ ./traefik/logs ──────────► CrowdSec container (reads log, detects, decides) Traefik writes a JSON access log. The CrowdSec engine reads that log, matches attack scenarios, and creates ban decisions. It also pulls the community blocklist. The bouncer is a Traefik plugin, not a separate container. It asks CrowdSec’s local API whether an IP is banned and returns 403 if so. CrowdSec ignores private ranges (10.x, 172.16-31.x, 192.168.x) by default, so LAN traffic can’t get banned. ...

How to Upgrade (and Set Up) authentik on Docker Compose Without Breaking Outposts

authentik upgrades are usually painless, until an LDAP or proxy outpost keeps running the old image and your NAS logins or forward-auth apps start acting strange. This is the routine I use for a Docker Compose install behind Traefik, plus a from-scratch setup at the end. Gotchas to know first sudo cmd > file fails in root-owned directories, because the redirect runs as your user. Write backups to ~/ (or pipe to sudo tee). Keep backups outside the stack directory. Outposts on the Local Docker connection don’t reliably redeploy after a server upgrade. docker stop then docker start does nothing useful: the container comes back on the same old image. It has to be removed so authentik recreates it. The compose file is now compose.yml (it was docker-compose.yml before 2026.2). Diff before overwriting so you don’t lose custom Traefik labels. AUTHENTIK_POSTGRESQL__CONN_OPTIONS is deprecated; remove it from .env. 2026.8 rewrote the proxy outpost, so re-test any forward-auth apps after major upgrades. Upgrading Move one release family at a time. Patch bumps are routine; read the release notes before major bumps. ...

How to Plan a CircuitPython Macropad Layout (with a Bongo Cat Screen)

The Adafruit MacroPad RP2040 packs 12 mechanical keys with RGB LEDs, a rotary encoder, and a tiny OLED into one board you program in CircuitPython. Before writing any code, it helps to plan what each key does. Here’s how I laid mine out. The layout Input Action How Encoder turn Volume up/down Consumer Control VOLUME_INCREMENT / DECREMENT Encoder click Play/pause Consumer Control PLAY_PAUSE Key 1 Open my homelab dashboard Win+R, type the URL, Enter Key 2 Quick search Alt+Space (PowerToys Run / Command Palette) Key 3 File Explorer Win+E Key 4 Desk LEDs on/off Home Assistant service call Key 5 Cycle desk LED effect Home Assistant script Key 6 Screenshot Win+Shift+S Keys 7-10 Spare Room to grow Key 11 System mute Consumer Control MUTE Key 12 Discord mute Alt+M (set as Discord’s mute keybind), LED red when muted, green when live The OLED: bongo cat The screen shows a bongo cat all the time: ...

How to Run Phantom on a GL.iNet Router So Remote Minecraft Bedrock Servers Show Up as LAN Games

Minecraft Bedrock on consoles makes it awkward to join custom servers, but every client will happily join a game listed under LAN Games. Phantom is a small proxy that makes a remote Bedrock server appear on your local network. Running it on your router means it’s always on and starts on boot, with no PC left running. GL.iNet routers run OpenWrt underneath, so this works on most OpenWrt devices too. Step 1: Get a shell on the router Open the router’s admin panel, go to Applications → Plugins, and install nano (optional, but easier than vi). SSH in. The password is the same as the admin panel password: ssh root@<router-ip> Step 2: Put the Phantom binary on the router Check the router’s CPU architecture: uname -m Download the matching build from the Phantom releases page and copy it to /root/phantom (for example with scp). Make it executable: chmod +x /root/phantom Step 3: Create a procd service OpenWrt manages services with procd, which is different from the SysV init.d scripts on Debian or Ubuntu. Create /etc/init.d/phantom with this content, replacing mc.example.com with your server’s address: ...

How to Send Notifications Anywhere with Apprise (Email, Discord, Matrix, Home Assistant)

Apprise sends a notification to almost any service using a single URL format. It’s great for cron jobs, backup scripts, and anything else that should tell you when it finishes or fails. Install pip install apprise # or: brew install apprise The basic shape apprise -vv -t "Title" -b "Body" "<service-url>" -v adds verbosity; stack them (-vv, -vvv) when debugging. Send to several services at once Just list more URLs: apprise -vv --body="Backup finished" \ "mailto://user:password@example.com" \ "slack://token_a/token_b/token_c" \ "kodi://media-box.local" Service examples Gmail Gmail needs an app password (Google Account → Security → App passwords), not your normal password. Turn on 2-step verification first. ...

How to Troubleshoot Constant Blue Screens After a PC Upgrade

I upgraded nearly everything in my desktop (CPU, motherboard, RAM and GPU) but kept the old SSD, case and fans. On first boot it blue-screened over and over during light use: a Discord call and a browser. Resetting Windows didn’t fix it. When you see a different stop code almost every crash, that’s a clue. It usually means something low-level (memory, CPU stability, firmware or a driver) is corrupting whatever happens to be running, rather than one specific broken program. ...

Handy Terminal Commands I Keep Coming Back To (macOS, Windows, Linux)

A running list of commands I keep having to look up. Bookmark it and steal whatever is useful. macOS Back up your list of installed apps Handy before reinstalling macOS or setting up a new Mac: brew list > ~/Desktop/brew_installed_apps.txt mas list > ~/Desktop/macappstore_apps.txt # needs: brew install mas Better still, make a Brewfile that can reinstall everything in one go: brew bundle dump --file=~/Desktop/Brewfile brew bundle --file=~/Desktop/Brewfile # on the new Mac Download a video with yt-dlp brew install yt-dlp ffmpeg # as MP4 yt-dlp --recode-video mp4 "URL" # audio only, as MP3 yt-dlp -x --audio-format mp3 "URL" Only download things you have the right to keep. ...

How to Fix "All Predefined Address Pools Have Been Fully Subnetted" in Docker

You run docker compose up on a new stack and get this: failed to create network file-browser_default: Error response from daemon: all predefined address pools have been fully subnetted Every Compose project gets its own bridge network, and Docker’s default pools (172.17-31.0.0/16 plus some 192.168.x.x blocks) only stretch so far. Once you have a few dozen stacks, you run out. I hit this on an ASUSTOR NAS running Docker CE from App Central, which has some quirks: no systemd, a BusyBox shell, and sudo needed for every Docker command. The fix works on any Linux host; only the restart step differs. ...

How to Sort Photos into Device/Year/Month/Day Folders with exiftool and Python

Old phone backups and SD card dumps end up as one giant folder of IMG_1234.HEIC files. This script reads the camera model and capture date from each file’s metadata and moves it into: Sorted Pictures/ └── iPhone 13/ └── 2023/ └── 07/ └── 14/ └── IMG_1234.HEIC What makes it safe Dry run by default. Nothing changes until you add --move. Moves, never copies. On the same drive that’s a true rename, so created and modified dates are preserved. Never overwrites. Name clashes get _1, _2 and so on. Re-runnable. The output folder is skipped when scanning. Step 1: Install the tools These steps are for macOS, but the script works anywhere Python 3 and exiftool are installed. ...