Skip to content

Instantly share code, notes, and snippets.

View FabulousCupcake's full-sized avatar
😶‍🌫️

FabulousCupcake

😶‍🌫️
View GitHub Profile
@FabulousCupcake
FabulousCupcake / 2025-10-software-kvm-apps.md
Created October 31, 2025 02:24
Notes on Software KVM Switch Applications – 2025.10

Notes on Mouse & Keyboard Sharing / Software KVM Switch Applications

A random report comparing the input-emulation quality of software kvm switch applications available today.
I decided to write this since it's a chore to test them all out, and I figured it's useful for someone delving into this, also to cast more spotlight into the best one.

My intended use is occasional gaming on my Windows PC.
This sets the bar: the input needs to be reliable and as true as possible.

tl;dr

Uploading and embedding images to github gist a bit weird.
It cannot be done directly on the initial gist creation.

However if you do it on a comment section of a public gist first, you can embed it when creating a new gist.

This gist exists so I can do just that.

# The following bash snippet plays SFX when a matching pattern is found
# in the stdout (or stderr) when running another command
# I personally use it for input-leap / barrier
# To indicate when my cursor is locked or unlocked to the current screen
# or when it reconnects.
# Pairs of pattern and path to sfx file
declare -A SOUNDS=(
// ==UserScript==
// @name Google Search • Force Language English
// @namespace fabulous.cupcake.jp.net
// @version 2025.09.16.1
// @description Adds lr=lang_en if not there
// @author FabulousCupcake
// @match https://www.google.com/search*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
// @run-at document-start
@FabulousCupcake
FabulousCupcake / swarm-fm-oneliner.md
Last active February 25, 2025 13:05
Swarm FM Oneliner
# Install yt-dlp and ffmpeg
brew install yt-dlp ffmpeg
yt-dlp ytsearch:swarmfm -qxo - | ffplay -v error -nodisp -
@FabulousCupcake
FabulousCupcake / webp-lossless-lossy.md
Created November 26, 2024 11:51
How to tell if a `.webp` image is Lossless or Lossy

How to tell if a .webp image is Lossless or Lossy

Surprisingly doable with the ubiquitous file command:

$ file lossy.webp
lossy.webp: RIFF (little-endian) data, Web/P image, VP8 encoding, 1536x2560, Scaling: [none]x[none], YUV color, decoders should clamp

$ file lossless.webp
lossless.webp: RIFF (little-endian) data, Web/P image
@FabulousCupcake
FabulousCupcake / mediawiki-special-gadgets-tabular-view.user.js
Created May 3, 2024 11:53
MediaWiki Special:Gadgets • Tabular View
// ==UserScript==
// @name MediaWiki Special:Gadgets • Tabular View
// @namespace fabulous.cupcake.jp.net
// @version 2024.05.03.1
// @description Less cluttery and more readable Special:Gadgets view as table
// @author FabulouCupcake
// @license MIT
// @include */Special:Gadgets
// @grant none
// ==/UserScript==
// ==UserScript==
// @name GBF Wiki April Fools 2024
// @namespace fabulous.cupcake.jp.net
// @version 2024.04.01.2
// @description Pesky notifications on gbf.wiki!
// @author FabulousCupcake
// @match https://gbf.wiki/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gbf.wiki
// @grant none
// ==/UserScript==
// ==UserScript==
// @name gbf.wiki – April Fools 2024 Ready
// @namespace fabulous.cupcake.jp.net
// @version 2024.04.01.1
// @description Ready loading screen on page load
// @author FabulousCupcake
// @match https://gbf.wiki/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gbf.wiki
// @run-at document-start
// @grant none
// ==UserScript==
// @name gbf.wiki – Paywall
// @namespace fabulous.cupcake.jp.net
// @version 2024.04.01.3
// @description Paywall gbf.wiki a la WSJ/CNN
// @author FabulousCupcake
// @match https://gbf.wiki/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gbf.wiki
// @run-at document-idle
// @grant none