Skip to content

Instantly share code, notes, and snippets.

View andypiper's full-sized avatar
🛠️
tinkering

Andy Piper andypiper

🛠️
tinkering
View GitHub Profile

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 November 21, 2025 13:09
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:

  • UK users are shown a banner for attempting identity verification through Epic Games' Kids Web Services before they could access adult content, following the Online Safety Act.

  • Mississippi users are completely blocked from acccessing Bluesky due to

@Swyter
Swyter / remove-code-with-copilot.md
Last active October 6, 2025 20:26
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-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
Created June 15, 2025 04:44
uConsole GPS Setup

uConsole GPS Setup

gps-share

Main purpose is to ensure that location is available from device to localhost via TCP. It will allow geoclue to work properly. and enable support for gnome-maps and geoclue dependent applications.

Project location. Build the application. https://github.com/zeenix/gps-share

Default configuration on network is localhost:10110

@helloyanis
helloyanis / table.md
Last active October 2, 2025 12:58
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
@cassidoo
cassidoo / dark-light-demo.md
Created April 10, 2025 04:27
A demo of how to make an image adjust for dark mode or light mode on GitHub

Check out this picture and toggle dark mode or light mode on your GitHub profile to see it change!

Fallback image description