Skip to content

Instantly share code, notes, and snippets.

@phoenixr-codes
phoenixr-codes / config.yaml
Last active August 28, 2025 21:49
Wii Cover Downloader Script
language: DE
games: wbfs
paths:
2d: game_covers/2d
3d: game_covers/3d
full: game_covers/full
disc: game_covers/disc
@phoenixr-codes
phoenixr-codes / extract-ansi.nu
Created July 29, 2025 14:06
Nushell commands to extract ansi values
def "ansi extract" []: string -> list<list<string>> {
$in | parse --regex "\u{1b}\\[(.*?)m" | get capture0 | each { split row ";" }
}
# extract ansi values from string
open path/to/file.ansi | ansi extract
# display ansi colors with occurences from string
open path/to/file.ansi | ansi extract | where (($it | take 2) == ["38", "2"]) | each { skip 2 } | uniq --count | sort-by count | each {
let a = ansi --escape $"($in.value.0);($in.value.1);($in.value.2)m"
@phoenixr-codes
phoenixr-codes / BlockBroken-001.json
Last active July 25, 2025 23:03
MCBE WebSocket response dumps
{
"body": {
"block": {
"aux": 0,
"id": "magma",
"namespace": "minecraft"
},
"count": 1,
"destructionMethod": 0,
"player": {
@phoenixr-codes
phoenixr-codes / wifi_qr.nu
Created May 14, 2025 17:27
Nu script to generate QR Code (data) for a wifi
#!/usr/bin/env nu
# NOTE: This script depends on `formats` plugin (https://github.com/nushell/nushell/tree/main/crates/nu_plugin_formats)
if not (is-admin) {
panic "Please run as superuser"
}
if not (plugin list | any {|x| $x.name == "formats"}) {
panic "Missing `formats` plugin"
@phoenixr-codes
phoenixr-codes / SMM3DS_course_format.md
Last active October 14, 2024 18:47
SMM 3DS course file format

Format

This is the specification for Super Mario Maker 3DS courses as of version 1.05.

Offset Type Description
0x00 unknown
0x44 UTF-16 encoded string Name of course (32 characters)
0x84 unknown
0x86 M1 | M3 | MW | MU M1 = Super Mario Bros, M3 = Super Mario Bros 3, MW = Super Mario World, WU = New Super Mario Bros U
@phoenixr-codes
phoenixr-codes / ord.ua
Last active October 8, 2024 23:19
Get the ordinal indicator of an integer
⨬"th" (
◿ 10
⊡ :["st" "nd" "rd" ⍥"th" 7] -1
) =0/+ ⌕ :[11 12 13].
@phoenixr-codes
phoenixr-codes / mdbook-overview.md
Created December 21, 2023 12:53
A Markdown file which can be used to test mdbook themes.

Overview

Heading 2

Heading 3

Heading 4

Heading 5