Skip to content

Instantly share code, notes, and snippets.

@queeup
queeup / OpenWrt detect new device and send text message.md
Created April 21, 2025 08:59 — forked from jwalanta/OpenWrt detect new device and send text message.md
Detect new network devices connecting to OpenWrt and send text message
@queeup
queeup / README.md
Created April 20, 2025 11:32 — forked from bnhf/README.md
Tailscale - Deploying with Docker and Portainer

Just thought I'd put together some detail on deploying Tailscale using Docker and Portainer. These bits-and-pieces are available elsewhere, but not together, so hopefully this will save someone a bit of time if you'd like to add Tailscale to an existing Docker install:

Here's my annotated recommended docker-compose, to use with Portainer-Stacks. Note that I'm not using a pre-made Auth Key. I started that way, but realized it was very easy to simply check the Portainer log for the tailscaled container once the stack is running. In that log you'll see the standard Auth link that you can use to authorize the container. This way you don't need to create a key in advance, or create a reusable key that introduces a security risk:

version: '3.9'
services:
  tailscale:
    image: tailscale/tailscale
    container_name: tailscaled
@queeup
queeup / openwrt-on-proxmox.md
Created April 12, 2025 19:24 — forked from subrezon/openwrt-on-proxmox.md
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
@queeup
queeup / openwrt-23-05-802-11r.md
Created March 10, 2025 21:14 — forked from vuori/openwrt-23-05-802-11r.md
OpenWRT 23.05 802.11r + EAP

Getting 802.11r Fast Transition working with WPA(2)-Enterprise is quite painful. There is information on the forums, but things have changed quite a bit during the last few years. These are notes mostly for my own benefit.

Tricky bits as of OpenWRT 23.05 (in Luci "WLAN roaming" tab of wireless network settings):

  • NAS Id should be set to something unique, like the name of the AP.
  • Mobility domain defaults to a sane value. Leave it empty.
  • Reassociation deadline's default of 1000 is bad. Apparently Cisco uses 20000 here, setting that appears to be helpful.
  • FT Protocol "Over the air" is the good setting.

If you're using WPA2-PSK, check "Generate PMK locally" and you're done. Save&apply and it should just work.

@queeup
queeup / readme.md
Created September 10, 2024 17:20 — forked from vadimstasiev/readme.md
ProxMox - Enable IOMMU using systemd

ProxMox - Enable IOMMU using systemd

You found that you are using systemd, adding bits to GRUB will not work. Instead, follow these steps:

Edit the kernel command line

Open the /etc/kernel/cmdline file for editing:

nano /etc/kernel/cmdline

@queeup
queeup / bash_strict_mode.md
Created July 2, 2024 22:49 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@queeup
queeup / bash_strict_mode.md
Created July 2, 2024 22:48 — forked from vncsna/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
@queeup
queeup / torrents.md
Created June 12, 2024 11:56 — forked from shmup/torrents.md
transmission blocklist guide

Transmission Blocklist

The Transmission torrent client has an option to set a Blocklist, which helps protect you from getting caught and having the DMCA send a letter/email.

It's as simple as downloading and installing the latest client:

@queeup
queeup / auto-profile-update.sh
Created May 23, 2024 19:40 — forked from vwbusguy/auto_profile
Auto Update for power-profiles-daemon
#!/bin/bash
dbus-monitor --system "type='signal',path='/org/freedesktop/UPower/devices/battery_BAT0',member='PropertiesChanged'" | while read LINE; do
echo ${LINE} | grep battery_BAT0 | grep -q PropertiesChanged
if [ $? -eq 0 ]; then
BATT_STAT=$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UPower /org/freedesktop/UPower/devices/battery_BAT0 org.freedesktop.DBus.Properties.Get string:org.freedesktop.UPower.Device string:State | awk '{ print $3; }')
if [ $BATT_STAT -eq 1 ] || [ $BATT_STAT -eq 4 ]; then
LEVEL=$(powerprofilesctl list | grep -q performance && echo "performance" || echo "balanced")
elif [ $BATT_STAT -eq 5 ]; then
LEVEL="balanced"