Skip to content

Instantly share code, notes, and snippets.

View FabulousCupcake's full-sized avatar
💫

FabulousCupcake

💫
View GitHub Profile
@FabulousCupcake
FabulousCupcake / windows-bluetooth-autoconnect.md
Created August 27, 2021 18:49
Actually Disabling Bluetooth Autoconnect on Startup in Windows

Actually Disabling Bluetooth Autoconnect on Startup in Windows

Situation

I use multiple devices with my bluetooth earphone connected to my mac machine, phone, or tablet.
When I boot my windows machine, it automatically connects to and snatches my bluetooth earphone. This is very annoying.

Results from google on ways to disable this are unhelpful:

  • Unpair the device (???)
  • Disable bluetooth support system service via services.msc
  • Disable the device via Device Manager
@FabulousCupcake
FabulousCupcake / fetch-mapping.sh
Created October 16, 2021 10:23
Minecraft Mappings Fetcher Script
#!/usr/bin/env bash
VERSION_MANIFEST_FILE="/mnt/c/Users/fbcpck/AppData/Roaming/.minecraft/versions/version_manifest_v2.json"
# Prints usage help text
function usage {
echo "Usage: fetch-mapping.sh <version> [version-manifest-path]"
echo " <version>: Fetch server mappings of a specific version e.g. 21w41a"
echo " Use --latest-release to fetch latest release version"
echo " Use --latest-snapshot to fetch latest snapshot version"
#!/usr/bin/env bash
# Special
readonly DIM="$(tput dim)"
readonly REVERSE="$(tput rev)"
readonly RESET="$(tput sgr0)"
readonly BOLD="$(tput bold)"
echo "Colors: $(tput colors) Text Number: [FG-BG]"
echo
# 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
@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

@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
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 / 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...

@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%);
}
// ==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