Skip to content

Instantly share code, notes, and snippets.

---
sys/dev/bxe/bxe.c | 27 +++++++++++++++----
sys/dev/bxe/bxe.h | 1 +
sys/dev/bxe/bxe_elink.c | 57 ++++++++++++++++++++++++++++++++++++-----
3 files changed, 74 insertions(+), 11 deletions(-)
diff --git a/sys/dev/bxe/bxe.c b/sys/dev/bxe/bxe.c
index 920a5a9bcbc..164f3d44f07 100644
--- a/sys/dev/bxe/bxe.c
+++ b/sys/dev/bxe/bxe.c
@cleanhands
cleanhands / dailywire-dl.sh
Created June 17, 2026 17:25
Download videos from dailywire.com using yt-dlp versions which don't support dailywire
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<'EOF'
Usage: dailywire-dl [options] <url>
Download a Daily Wire episode by fetching signed playback data from the
middleware API, then downloading the Mux stream with yt-dlp.
@cleanhands
cleanhands / tucker.sh
Last active March 17, 2026 17:05
Download from tuckercarlson.com using browserless and yt-dlp
#!/usr/bin/env bash
# tucker-dl.sh - Download Tucker Carlson videos using browserless + yt-dlp
set -Eeuo pipefail
shopt -s inherit_errexit nullglob 2>/dev/null || true
trap 'echo "❌ ERROR: Script failed at line $LINENO (exit code $?)" >&2' ERR
for cmd in curl jq yt-dlp; do
command -v "$cmd" >/dev/null || { echo "❌ ERROR: '$cmd' is required." >&2; exit 1; }
done
@cleanhands
cleanhands / README.md
Last active February 20, 2025 05:59
PlutoTV on NextPVR in docker using maddox/pluto-for-channels with streamlink
@cleanhands
cleanhands / aaget.sh
Last active May 14, 2026 21:34
Bash script for downloading books from Anna's Archive using CLI (requires: xq aria2c)
#!/usr/bin/env bash
set -Eeuo pipefail
shopt -s inherit_errexit nullglob 2>/dev/null || true
trap 'echo "❌ ERROR: Script failed at line $LINENO (exit code $?)" >&2' ERR
for cmd in curl xidel aria2c; do
command -v "$cmd" >/dev/null || { echo "❌ ERROR: '$cmd' is required." >&2; exit 1; }
done
# ==================== CLI PARSING ====================
@cleanhands
cleanhands / dufs@.service
Created January 28, 2025 18:31
systemd service for https://github.com/sigoden/dufs behind nginx reverse proxy
[Unit]
Description=Dufs daemon (%i instance)
Wants=network-online.target
After=network-online.target
AssertPathExists=/srv/%i
StartLimitIntervalSec=30
StartLimitBurst=2
[Service]
User=%i
@cleanhands
cleanhands / mediasources.sh
Last active October 2, 2025 20:17
Generate mediasources.xml for Kodi using https://github.com/AquilaIrreale/urlencode
#!/bin/bash
IFS= read -rp 'Server name: ' server_name < /dev/tty
IFS= read -rp 'Username: ' username < /dev/tty
IFS= read -rsp 'Password: ' password < /dev/tty
echo 1>&2
password_encoded=$(urlencode -bc $' "#$%&\'*+,/:;<=>?@[\\]^`{|}~' <<< "$password")
tee "$HOME/.kodi/userdata/mediasources.xml" <<EOF
<mediasources>
<advancedsettings>
<cache>
<buffermode>4</buffermode>
<memorysize>314572800</memorysize>
<readfactor>40</readfactor>
<chunksize>1048576</chunksize>
</cache>
<videolibrary>
<cleanonupdate>true</cleanonupdate>
</videolibrary>
@cleanhands
cleanhands / install-mkinitcpio-firmware.sh
Last active May 23, 2024 17:44
Fix "Possibly missing firmware for module XXXX" by installing mkinitcpio-firmware and dependencies from AUR
#!/usr/bin/env bash
set -euo pipefail
t="$(mktemp -d)"
if [[ ! -e ${t} ]]; then
>&2 echo "Failed to create temp directory"
exit 1
fi
trap 'rm -rf "${t}"' EXIT