Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/perl
#This makes two files in $ShrineMusicOutputFolder, BotwShrine_Blessing.wav and BotwShrine_Standard.wav that are both $RuntimeSeconds long
#This uses files to generate really random shrine music as heard in Breath of the Wild with the actual rules https://www.youtube.com/watch?v=6logXysLpNk for all the instruments
#BGM_Dungeon_Arp_*.bfwav.wav (8), BGM_Dungeon_Bass_*.bfwav.wav (16), BGM_Dungeon_Bell_*.bfwav.wav (2), BGM_Dungeon_Lead_*.bfwav.wav, BGM_Dungeon_Piano_*.bfwav.wav (8), BGM_Dungeon_Strings_*.bfwav.wav (4)
#must all be under $ShrineMusicFileFolder
#The folder must contain all the files from DungeonBgm, DungeonNormalBgm, and DungeonRewardBgm (probably converted to .wav)
$ShrineMusicFileFolder = "/Path/To/DungeonAll/";
@n3rdopolis
n3rdopolis / kerneltester.sh
Created April 29, 2023 01:42
Build a Linux kernel with a initrd, to test it and its modules in QEMU with a test script
#! /bin/bash
mkdir -p /var/cache/kerneltest
#Make a file system image for the VM, and mount it.
if [[ -e /var/cache/kerneltest/fs.img ]]
then
rm /var/cache/kerneltest/fs.img
fi
truncate -s 2G /var/cache/kerneltest/fs.img
mkfs.ext4 /var/cache/kerneltest/fs.img
@n3rdopolis
n3rdopolis / ConvertMvpText-ToScrubText.ps1
Last active February 26, 2021 02:34
ConvertMvpText-ToScrubText.ps1
#Licence GPLv2
#
#CharsToLettersMapping.csv
#CharsToLettersMapping.json
#files are not needed for this script, but they are generated for fixed usage, if you don't want to rely on parsing files from Unicode.org to make your own variant
#
function ConvertMvpText-ToScrubText($MVPText)
{
#Try to be efficient in using files from Unicode.org
if ($Global:StrangeCharsToLettersMapping -eq $Null)