Skip to content

Instantly share code, notes, and snippets.

View rakslice's full-sized avatar

rakslice rakslice

View GitHub Profile
@rakslice
rakslice / mastodon_internal_links.js
Created August 6, 2024 05:19
Userscript to redirect mastodon remote links matching the usual pattern to the local instance
@rakslice
rakslice / rfkillcheck
Last active August 28, 2024 09:20
An ifupdown-ng executor fragment to check if the wlan is disabled by rfkill before trying to bring it up
#!/bin/sh
# /usr/libexec/ifupdown-ng/rfkillcheck
rfkill_iface=wlan0
rfkill_file=/sys/class/rfkill/rfkill1/soft
check() {
if [ "$IFACE" = "$rfkill_iface" ] && [ "$PHASE" = "pre-up" ]; then