Skip to content

Instantly share code, notes, and snippets.

@AkBKukU
AkBKukU / mderive.sh
Created February 13, 2024 17:04
Recursive music conversion from one directory to another
#!/usr/bin/env bash
# Usage
# mderive source (TXT of dir paths or dir) destination
# Conversion Format
ext="mp3"
args="-c:a mp3 -b:a 320k"
over="-y" # Overwrite (-n/-y)
@AkBKukU
AkBKukU / dectalk.py
Created September 10, 2022 18:32
Python script for writing to DECtalk devices with resets for commands
#!/usr/bin/python3
import serial
import sys
# DECtalk output over serial with command resetting
ser = serial.Serial('/dev/ttyUSB0',9600,timeout=1) # open serial port with 9600 8N1 defaults
print(ser.name) # check which port was really used
for line in sys.stdin:
@AkBKukU
AkBKukU / HydroThunder.vcs-video
Created January 13, 2023 18:22
Hydro Thunder Arcade VCS Video Preset (Force input resolution to 508x399)
fileType,{VCS video presets}
fileVersion,a
presetCount,1
metadataCount,4
name,{508x399 Hydro Thunder}
activatedByResolution,1,508,399
activatedByRefreshRate,0,{Equals},60
activatedByShortcut,0,ctrl+f1
videoParameterCount,13
verticalPosition,31
#!/bin/bash
MAXVOL=40
MAXMICVOL=25
SINKAPP="mpd"
readfile=true
if [ "d$1" != "d" ]
then
MAXVOL=$1
echo "$MAXVOL" > ~/.maxvol
@AkBKukU
AkBKukU / DECtalk_Script.md
Created September 23, 2022 14:58
DECtalk DTC01 - 1984 Speech Synthesizer (Full Script with speech examples))
[:np] Hello, my name is Perfect Paul and I’m here to introduce you to the
DECtalk speech synthesizer. In particular, the DECtalk DTC01 released in 
1984. The DECtalk had revolutionary features for computer speech, but don’t 
just take my word for it.

[:nb] I can agree with that. Hi, my name is Beautiful Betty and my voice 
represents just one of the many ways the DECtalk is a flexible advanced 
system. Today we’re going to take an in depth look at the DTC01 device 
itself, and how it raised the bar for speech synthesis in ways that are 
#!/bin/bash
counter=0
files=(*)
count=${#files[@]}
dir=0
for file in *
do
echo "File: `printf %03d $counter`-$file"
@AkBKukU
AkBKukU / floppy-extract.sh
Created December 15, 2021 14:13
Linux Flopy Disk Extraction Utility
#!/bin/bash
floppy="$1"
# Mount image and extract contents to folder
extract() {
file=$1
echo "Mounting floppy: $file"
sudo mount -o loop $file /tmp/floppy
# CMake file for Vulkan Tutorial
# by Shelby Jueden (AkBKukU)
cmake_minimum_required(VERSION 3.1)
project(VKDemo)
# Set the name of the ouput binary
set(
BIN_NAME
@AkBKukU
AkBKukU / yt-mem-convert.sh
Created September 6, 2021 16:41
Youtube Mebers List parser
#!/bin/bash
echo "Youtube Member List HTML Parser"
yt_list="$(date --iso-8601)_yt-members.csv"
# Read HTML from file by line
while read -r line <&9
do
{
"parameterSets": {
"White Key": {
"Interlock_Depth": "0.5",
"Interlock_Size": "1.5",
"Lip_Depth": "0",
"Lip_Size": "2",
"Metal_Thickness": "1.4",
"Total_Size": "20",
"Total_Thickness": "5.5",