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 / dedupe
Last active January 26, 2025 17:24
Group duplicates of files into hardlinks, check similarity using BLAKE2/SHA256 and matching file size, primarily for Windows/Cygwin/MSYS2 | Jump to comments: https://gist.github.com/donnaken15/f95e8a143bb330fcf7d6268a4d6929e8?permalink_comment_id=5166431#gistcomment-5166431
#!/bin/zsh
# I'M ACTIVELY FORGETTING HOW MY OWN SCRIPT WORKS!!!!!!!!!!!!!!
[ $# -lt 2 ] && [[ ! "$1" == *[\*\?]* ]] && {
[ $# -eq 1 ] &&
echo 'you must specify more than one file to be deduped' &&
echo
echo 'dedupe [input files]'
echo '- replace multiple unchanging copies of'
echo ' the same files with hardlinks to save space'
echo '- as of now, it is recommended to execute this'
@donnaken15
donnaken15 / markers
Created January 10, 2025 18:49
Embed YouTube timestamps/Audacity label track as chapters in audio
#!/bin/zsh
[ $# -lt 1 -a $# -gt 2 ] && {
echo "Inadequate amount of arguments"
return 1
}
tab=$'\t'
dig='[0-9]+'
dec="$dig\.$dig"
@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"
@donnaken15
donnaken15 / FAST_ITOA_ASM.ASM
Last active September 15, 2024 07:33
fast itoa in assembly (radix 10), first is compiled in FASM, second is ran in https://kobzol.github.io/davis/
format PE console 3.1
entry main
include 'win32a.inc'
section 'WESNT' import code data readable writeable executable
library msvcrt,'msvcrt.dll',\
kernel,'kernel32.dll'
@donnaken15
donnaken15 / Inspect_data.reg
Last active September 15, 2024 07:16
kind of maybe useful context submenu for media types (originally just ffprobe context menu)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Inspect]
"SubCommands"=""
"MUIVerb"="Inspect data..."
[HKEY_CLASSES_ROOT\*\shell\Inspect\shell]
[HKEY_CLASSES_ROOT\*\shell\Inspect\shell\1a_FFProbe]
"MUIVerb"="Probe media..."
@donnaken15
donnaken15 / webdriver-test-1.ipynb
Last active July 26, 2024 07:46
webdriver-test-1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
; 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 / south_park_unaired_pilot_outtakes.diff
Last active June 20, 2024 20:39
Outtaken lines heard in the background of the audio commentary for the unaired South Park pilot
Outtaken voice lines heard in the audio commentary
--- a/south_park_unaired_pilot.txt
+++ b/south_park_unaired_pilot.txt
@@ 1:43 @@ Kick the baby.
Wahh!
-<silver shatter sound effect>
+<metal clonking sound effect>
@@ 5:56 @@ What am I supposed to do, Barbrady?
Just stand here and watch my
cattle get mutilated one by one?
@donnaken15
donnaken15 / prime64_M_rs.asm
Last active June 13, 2024 22:53
further optimized prime counter with reordered code to avoid register stall (actually working :O) and check and compare square root of current number, allocate more than reserved memory will allow
format PE64 console 3.1
entry @f
include 'win64a.inc'
MAX_ITERATIONS = 100000000
section '' import code data \