Skip to content

Instantly share code, notes, and snippets.

View rfc2822's full-sized avatar
🐑
Looking at sheep

Ricki Hirner rfc2822

🐑
Looking at sheep
View GitHub Profile
@rfc2822
rfc2822 / trekking-chill.brf
Last active November 11, 2021 23:34
Adapted trekking profile (chill mode) for BRouter
# *** The trekking profile is for slow travel
# *** and avoiding car traffic, but still with
# *** a focus on approaching your destination
# *** efficiently.
---context:global # following code refers to global config
# Bike profile
assign validForBikes = true
@rfc2822
rfc2822 / mkv-to-mp4.sh
Last active March 3, 2024 15:35
Convert MKV to MP4 without recoding (so that Samsung TV can seek/pause)
find *.mkv -exec basename -s .mkv '{}' \; | xargs -I{} ffmpeg -i {}.mkv -c copy {}.mp4
parallel ffmpeg -i {.}.mkv -c copy {.}.mp4 ::: *.mkv
@rfc2822
rfc2822 / fetch-github-ips.sh
Created September 29, 2025 11:12
Fetch Github IPs
#!/bin/bash
# OUTPUT_FILE="/etc/hosts.github"
OUTPUT_FILE="hosts.github"
GITHUB_META_API="https://api.github.com/meta"
SCRIPT=`realpath $0`
echo "# GitHub Actions Runner IP Ranges [$GITHUB_META_API]" > $OUTPUT_FILE
echo "# Fetched by $SCRIPT on $(date)" >> $OUTPUT_FILE