Skip to content

Instantly share code, notes, and snippets.

View donnaken15's full-sized avatar
🌲
PINE GANG 2⃣1⃣⛷💨😝😱😭💾💾😉📠♿️😇😬😄🔥🔥🔥🙌🌚

Wesley donnaken15

🌲
PINE GANG 2⃣1⃣⛷💨😝😱😭💾💾😉📠♿️😇😬😄🔥🔥🔥🙌🌚
View GitHub Profile
@donnaken15
donnaken15 / st.asm
Last active July 28, 2023 23:30
floating point tests
; jan 2023
format PE console 3.1
entry main
include 'win32a.inc'
section '' code data readable writeable executable
#!/bin/zsh
echo why did i make this
offset=679074
end=9382322
srate=48000
#resamp=40000
offset=$(evl $offset.0/$srate) # to seconds
end=$(evl $end.0/$srate) # to seconds
@donnaken15
donnaken15 / dtm.bms
Created July 14, 2023 02:40
parse Dolphin DTM to plain text
// https://tasvideos.org/EmulatorResources/DTM
endian little
idstring "DTM\x1A"
getdstring game 6
get wii byte
getbits ctrl 8 // bitfield
get state byte
get vic longlong
get ic longlong
@donnaken15
donnaken15 / optcompact
Last active October 30, 2023 19:49
fail shell script to compress/decompress files for more physical free space, might be entirely useless, screw it
#!/bin/sh
# CYGWIN REQUIRED!! (maybe)
#
# optimal compact
# by wesley
# BECAUSE SOMEHOW IT TAKES MORE SPACE
# sometimes
#
# might've just been created out of
# the false assumption that it does
@donnaken15
donnaken15 / gamemenu.q
Created July 1, 2023 06:12
leaked script file from THUG, im getting c@#^&d by these neversoft seclude-ers
// start autoduck documentation
// @DOC gamemenu
// @module gamemenu | None
// @subindex Scripting Database
// @index script | gamemenu
; ==========================================================================
;
; Initialization scripts
@donnaken15
donnaken15 / scn.bms
Created June 27, 2023 04:57
Extract GH3 SCN for buildtex2
// :/
namecrc dummy 0 "names.txt"
endian big
get magic_check long # 0x00
if magic_check != 0
exit
endif
for i = 1 < 8
get magic_check long
This file has been truncated, but you can view the full file.
gh3_Final
Timestamp is 4abaaa55 (Wed Sep 23 18:08:05 2009)
Preferred load address is 00400000
Start Length Name Class
0001:00000000 00000001H .aa_code_start CODE
0001:00000010 004b29bfH .text CODE
0001:004b29d0 0000cdc3H .text$x CODE
@donnaken15
donnaken15 / NodeQBC.udl.xml
Last active December 29, 2023 12:13
Q UDL for Notepad++
<NotepadPlus>
<UserLang name="Q (for export)" ext="q" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00; 00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@donnaken15
donnaken15 / DDS.cs
Last active January 16, 2023 03:25
highway PAK generator for FastGH3
/*
*
* DDSImage.cs - DDS Texture File Reading (Uncompressed, DXT1/2/3/4/5, V8U8) and Writing (Uncompressed Only)
*
* By Shendare (Jon D. Jackson)
*
* Rebuilt from Microsoft DDS documentation with the help of the DDSImage.cs reading class from
* Lorenzo Consolaro, under the MIT License. https://code.google.com/p/kprojects/
*
* Portions of this code not covered by another author's or entity's copyright are released under
@donnaken15
donnaken15 / perftest.sh
Created January 15, 2023 10:40
FastGH3 encoding speed test / requires shell (from Cygwin or MinGW), run in DATA/MUSIC/TOOLS
if [ ! "$(dirname "$0")" = "." ]; then
here=$(realpath "$0")/
else
here=$(which "$0")/
fi
here=$(dirname "$here")
TIMEFORMAT=%R
LPARAMS="--cbr -b 128 --resample 44100 -m j"