Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
🛠️
tinkering

Andy Piper andypiper

🛠️
tinkering
View GitHub Profile
@dupontgu
dupontgu / code.py
Last active February 5, 2026 15:12
CircuitPython WiFi HTTP Sensor Template
import time
import wifi
import socketpool
import wifi
import mdns
from adafruit_httpserver import (GET, JSONResponse, Request, Server)
WIFI_SSID = "your-wifi"
WIFI_PASSWORD = "your-password"
POLL_INTERVAL_S = 31

High-Performance Windows 11 KVM Guide for Fedora

This guide provides a comprehensive walkthrough for setting up a high-performance Windows 11 virtual machine on a Fedora Workstation host, with a focus on GPU passthrough and system optimization. It is intended for users with a moderately technical background.


Part 0: System Information & Prerequisites

Before starting, ensure you have the required components and gather critical information about your hardware.

Prerequisites:

#!/bin/sh
# dfn: df normalized, or df not noisy, or df nicely, or df new
#
# Whatever you want to call it, this script makes df useful again.
# It removes read-only disks for Time Machine backups, system volumes
# that can't be modified, unbrowsable volumes, and other stuff you don't
# really care about.
#
# Instead, you get the same drives that you see on your Mac desktop in an
@mary-ext
mary-ext / bluesky-osa.md
Last active February 5, 2026 14:23
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access, prompting users to verify their age through Epic Games' Kids Web Services before they can access adult content.

This sucks, but thankfully there are ways to work around it.

Before diving in: I encourage you to read this entire document, including the

@Swyter
Swyter / remove-code-with-copilot.md
Last active December 13, 2025 01:31
Remove the «Code with Copilot Agent Mode» / «Code with agent mode» / «Your Copilot» button spam from GitHub issues

Install uBlock Origin and add this rule to your filters, blocking this cruft even when Copilot has been technically fully-disabled site-wide in your GitHub account options:

github.com##button[data-testid='open-in-copilot-agent-button']:upward(div[data-testid='sidebar-development-section']) /* swy: 'Code with agent mode' button in every issue */
github.com##a[href='/settings/copilot'] svg.octicon-copilot:upward(li[class*='prc-ActionList-ActionListItem'])        /* swy: 'Your Copilot' option on sidebar */
@cablespaghetti
cablespaghetti / snac-backup.sh
Last active August 10, 2025 14:12
Backup Snac to Backblaze with just Curl and Jq
#!/bin/sh
cd /var/lib/snac
filename=snac-$(date -u +%Y-%m-%dT%H:%M:%SZ).tar.gz
tar czf backups/$filename data
# Upload to Backblaze B2
BUCKET_ID=... # From the Backblaze Console
ACCOUNT_ID=... # Your API Key ID
APPLICATION_KEY=... # API Key Secret
@sulph68
sulph68 / uConsole MouseKeys Setup.md
Created June 15, 2025 04:49
uConsole MouseKeys Setup

uConsole MouseKeys Setup

As the trackball on the uConsole can be tricky, i used the YXBA buttons to move the cursor for more refined movements. This is done via ydotool and ydotoold in order to work with wayland.

References

Important to know that ydotool should be built from source in order to provide relative mouse movements.

Once built and installed, ydotoold should be started as root listening to a socket file, but changing socket ownershop to a target user. I added the following to rc.local

@sulph68
sulph68 / uConsole Auto changing battery wallpaper.md
Last active September 7, 2025 11:45
uConsole Auto changing battery wallpaper

uConsole Auto rotating battery wallpaper

To automatically change wallpaper on battery level, read the battery level from /sysclass and change the wallpaper setting using gsettings.

my $batt_file = "/sys/class/power_supply/axp20x-battery/capacity";

[...some code...]
chomp(my $current = `gsettings get org.gnome.desktop.background picture-uri`);
$current =~ s/^'file:\/\/\///;
$current =~ s/'$//;
@sulph68
sulph68 / uConsole GPS Setup.md
Last active February 6, 2026 01:02
uConsole GPS Setup

uConsole GPS Setup

After some more mucking around on a desktop with GPS setup, and taking some of those experiences over to uConsole. Here are Some updated notes on getting GPS setup properly on uConsole. This also applies to Ubuntu setups. Can't comment on the correctness for other distributions, but it should be able to serve as a guide.

This has some improvement over the older method as it no longer uses gnss-share.

NOTE: i use pam_usb for authentication so it is convienient to use sudo in my scripts so it doesn't acrually prompt for a password everytime i use it. YMMV.

geoclue

@helloyanis
helloyanis / table.md
Last active November 25, 2025 16:11
Federation Compatibility : Mastodon and Lemmy

For an easy understanding of how federation works between Lemmy and Mastodon (interacting with Lemmy from a Mastodon instance and vice versa), have a look at this handy table!

All tests were done using the default Mastodon UI and the default Lemmy UI.

Legend

  • Works as expected
  • ✳️ Works, but is missing some features
  • Barely works, can not be used practically
  • Does not work at all, I couldn't find a way to make it work