Skip to content

Instantly share code, notes, and snippets.

View FabulousCupcake's full-sized avatar
💫

FabulousCupcake

💫
View GitHub Profile
@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
// ==/UserScript==
@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
@FabulousCupcake
FabulousCupcake / ba-account-data-dump.md
Last active March 28, 2023 07:56
Obtaining Blue Archive Account Data Dump

This guide will briefly explain how to obtain your own account data dump in JSON, which you can then process in Google Spreadsheet or some tools such as [justin163's planner][1].

This guide assumes you have the game running on a mobile phone and you have desktop running in the same network.
If you run the game using an emulator on Windows, see the addendum section further below.

⚠️ Disclaimer

This breaks the game [Terms of Service][5] and is NOT allowed.
You are responsible for any actions taken to your account, do it at your own risk.

Pre-requisites

# This script migrates keys from a redis instance to another using only redis-cli
# This is necessary if you're migrating from a redis instance where MIGRATE command is removed
# such as heroku or aws elasticache
# Caveat & Notes:
# • Does not preserve expiry time or ttl
# • Slow, copies keys sequentially, took about 5 minutes for 500 keys
set -Eueo pipefail