Skip to content

Instantly share code, notes, and snippets.

@NeySlim
NeySlim / compile.sh
Created December 17, 2025 23:11
Kea dhcp server sanitize hostname hook
#!/bin/bash
#debian trixie:
apt update && apt -y install kea-dev libboost-dev g++
g++ -fPIC -shared -o libkea_sanitize_hostname.so sanitize_hostname.cc \
-I/usr/include/kea -lkea-dhcp++ -lkea-hooks
cp libkea_sanitize_hostname.so /usr/local/lib/libkea_sanitize_hostname.so
@NeySlim
NeySlim / install-sunshine-wake-monitor-service.sh
Created April 29, 2025 20:33
Sunshine monitor and wake up on incoming connection for multiple DEs
#!/bin/bash
# Define paths
SCRIPT_DIR="$HOME/.local/bin"
SERVICE_DIR="$HOME/.config/systemd/user"
SCRIPT_PATH="$SCRIPT_DIR/monitor-wakeup.sh"
SERVICE_PATH="$SERVICE_DIR/monitor-wakeup.service"
# Create directories
mkdir -p "$SCRIPT_DIR"