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 / aubio.zsh
Created August 29, 2025 11:47
wrapper thing for aubio, made for zsh on windows
#!/bin/zsh
# windows is cool and linux is cringe
[ $# -lt 1 ] && {
expand -t 4 <<use
No arguments supplied. Usage:
${0:t} [utility name (without aubio prefixed)] [input] [utility parameters (no --input)]
or
${0:t} [utility name (without aubio prefixed)] --help
to get the usage information of one of the following utilities:
- onset: outputs the time stamp of detected note onsets
@donnaken15
donnaken15 / nwtrlz.zsh
Created August 24, 2025 12:17
archive neutralizer (7z/rar/zip/tar/... => lrzip) | WIP
#!/bin/zsh -e
# NewtraLZ / new tar.l(r)z
set -o pipefail
#set -x
{ # ------------ deeeefines
# KSH_ARRAYS DOESN'T ALLOW EXPANSION WITHOUT [@],
# AND (generally) CAN'T DEFINE ALIASES WITHIN BLOCKS, WTFFFFFFFFFFF
nul='/dev/null'; bools=(true false); LRZIP=NOCONFIG; this="$0"; best=lrzip; die() {
expand -t 4 <<!!
${this:t:r} - archive neutralizer
@donnaken15
donnaken15 / ytclip.bat
Created August 4, 2025 07:21
download and label clipped section of a video, with some allowance for extra arguments (screw memorizing the parameter)
@echo off
chcp 65001
:: %1 == id, %2 == start, %3 == end, %4 %5 %6 %7 %8 %9 additional arguments
if [%3]==[] exit /b 1
set "URL=%~1" & set "START=%~2" & set "END=%~3"
shift & shift & shift
python -m yt_dlp --download-sections "*%START%-%END%" -o "%%(title)s {%START::=:%–%END::=:%} [%%(id)s].%%(ext)s" %1 %2 %3 %4 %5 %6 %7 %8 %9 -- "%URL%"
@donnaken15
donnaken15 / old QbScripts
Created August 2, 2025 16:05
2021--2023
script() {
dispatch_solos(<...>);
if (*disable_particles > 1)
{
return;
}
//FormatText(ChecksumName=pstruct,'player%d_status',d=%player);
//color = (*%pstruct.last_hit_note);
if (%color == green) // kill me
@donnaken15
donnaken15 / wsl2exe
Created February 23, 2025 11:32
run windows programs from WSL with path conversion and support running functions straight from cmd
#!/bin/zsh
# execute Windows program from WSL shell
# where Windows paths are present, and
# converted to normal paths like for compact
#
# rename this script to anything besides wsl2exe
# to act as a proxy to the program you want to execute,
# as long as it refers to a program existing in PATH,
# and that windows PATH is added to the WSL instance
@donnaken15
donnaken15 / markers
Last active August 30, 2025 02:45
Embed YouTube timestamps/Audacity label track as chapters in audio
#!/bin/zsh
[ $# -lt 1 -a $# -gt 2 ] && {
echo "Inadequate amount of arguments" 1>&2
exit 1
}
[ ! -f "$1" ] && {
echo "File does not exist" 1>&2
exit 1
}
@donnaken15
donnaken15 / UCS2RES.tt
Created November 28, 2024 18:42
store compacted text and binary files in UCS-2 strings using Encoding functions with T4 (m4 much) - RESX AND NEW BYTE[] IS BLOATED!!
<#@template language="C#" hostspecific="true"#>
<#@output extension=".cs"#>
<#@import namespace="System.IO"#>
<#@import namespace="System.Text"#>
<#@import namespace="System.Text.RegularExpressions"#>
<#@import namespace="System.Collections.Generic"#>
<#
Encoding A = Encoding.ASCII, U = Encoding.Unicode, UTF8 = Encoding.UTF8;
const byte
textfile = 0,
#!/usr/bin/printf %.0s%.0s%.0s%.0s%.0s%.0sThis is a utility which cannot be used standalone.\nUsage: source dotload [appname]\n
# dash compatible barebones conf loader
#
# making this separate for the sake of not copy pasting this across
# utilities i will make that allow configuration (usually not (lol))
[ -z "$1" ] && {
echo 'dotload: No configuration name provided.'
return 1
}
local conf="$1"
; BASIC TEST
mov r0, #123 ; multicand
mov r1, #0xFF00 ; multiplier
bl mul ; unsigned
; CYCLE TEST (add vs lsl)
mov r0, #0xA900
mov r1, #39
bl mul
@donnaken15
donnaken15 / TRON_DL.BAT
Created June 13, 2024 22:49
download and extract TronScript using a list of mirrors, and prompt upon error
@if (@CodeSection == @Batch) @then
@echo off
where /q curl || goto fail
where /q grep || goto fail
set ESC=[
for %%H in (
https://bmrf.org/repos/tron
https://mirror.meamod.com/tron
https://bodkov.com
) do ( call :try "%%H" && exit /b )