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 / 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
@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 
@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:
#!/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
@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",
@AkBKukU
AkBKukU / hp80-34401a.bas
Created July 11, 2020 00:25
HP-86 Series 80 Basic 34401A Graphing Demo
10 ! HP34401A RESISTANCE MEASUREMENT
20 DEV=8
30 BUSIS=7
40 ID=DEV*100+BUSID
50 DELAY=1
60 VALUES=12
70 REAL MEASUREMENTS(12)
80 DIM CONF$[30]
90 CONF$="CONF:RES 150000,1000"
100 OUTPUT ID CONF$
@AkBKukU
AkBKukU / ffmpeg-youtube
Created December 21, 2018 23:04
Ideal FFMpeg Settings for YouTube videos
ffmpeg -i input.mov -c:v libx264 -preset veryfast -profile:v high -crf 20 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low -strict -2 output.mp4