Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# REQUIREMENTS: wget, grep, sed, awk, date, basename
set -e
scrape_shows() {
curl -s https://krcl.org/shows/ | grep -oP '(?<=href="/shows/)[^"/]+' | sort -u | grep -vE '^(about|events|shows|rss|news|programs|genre|support)'
curl -s https://krcl.org/shows/ | grep -oP '(?<=href="/)[^"/]+' | sort -u | grep -vE '^(about|events|shows|rss|news|programs|genre|support)'
}
@FalsePhilosopher
FalsePhilosopher / ODPR.txt
Last active March 18, 2024 00:26
OpenWRT Dual Partition Reboot
You can see what partition is currently being booted from by running: /usr/sbin/fw_printenv -n boot_part
Tell the router which partition to boot from: /usr/sbin/fw_setenv boot_part 2
reboot
Props to Kamameel on this reddit post with the info https://www.reddit.com/r/openwrt/comments/eji1sg/force_router_to_boot_to_specific_partition/