Skip to content

Instantly share code, notes, and snippets.

View FabulousCupcake's full-sized avatar
😪

FabulousCupcake

😪
View GitHub Profile
@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
@FabulousCupcake
FabulousCupcake / tst-colored-tab-groups.css
Last active April 17, 2024 12:08
TreeStyleTabs – Colored and Spaced Tab Groups
/* ---
Config: moz-extension://61148767-1029-7e4d-810c-8847305901bd/options/options.html
Docs: https://github.com/piroor/treestyletab/wiki/How-to-inspect-tree-of-tabs
--- */
#tabbar {
background: linear-gradient(to bottom, #342735 0%, #4B5670 50%);
}
@FabulousCupcake
FabulousCupcake / xc1-de-yuzu-ahk.md
Created June 21, 2023 22:42
Yuzu Input Profile AutoHotkey Script for Xenoblade Chronicles: Definitive Edition

Why?

So in Xenoblade Chronicles: Definitive Edition, the combat controls are kinda awkward: you switch between Arts with Left D-Pad and Right D-Pad, but at the same time you also control your movement with the Left Joystick. Both actions are controlled by your left thumb, so they are effectively mutually exclusive: when you are switching your Arts, you cannot move, and vice versa.

One fairly common solution to this is to remap Left D-Pad to ZL and Right D-Pad to ZR.
This allows you to switch Arts while moving, very nice!

However now the menu navigations are very weird; moving left and right is ZL and ZR, not the Left D-Pad and Right D-Pad anymore, especially when you can also move up and down in the menu as well — you just naturally hit Left D-Pad and Right D-Pad but that does the wrong thing.

Wouldn't it be nice if the remap can be done only for combat...

This file has been truncated, but you can view the full file.
// ==UserScript==
// @name GBF Wiki April Fools 2023
// @namespace fabulous.cupcake.jp.net
// @version 2023.03.30.12
// @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
@FabulousCupcake
FabulousCupcake / blue-archive-3mat-ep-event.py
Last active March 28, 2023 14:37
Blue Archive Optimal Event Farming Problem
!pip install pulp
from pulp import *
from math import ceil
# 1-3 Materials, 4 Event Points
# INPUT Material Multipliers
m1mult = 2.0
m2mult = 1.7
m3mult = 1.7