Skip to content

Instantly share code, notes, and snippets.

@AkBKukU
AkBKukU / spritstictch.sh
Created July 17, 2018 19:13
Stitch, trim, and make a grid of images to make a sprite sheet
#!/bin/bash
echo "Stitching Sprites"
function getImageFiles ()
{
# Get images name
dirname="$(pwd | tr '/' ' ' | awk '{print $(NF)}')"
filename="$dirname"
files=($(ls))
@AkBKukU
AkBKukU / gethub.sh
Created July 17, 2018 19:15
Download github repos into sub directories based on the creator
#!/bin/bash
# Usage
#
# run `gethub githubuser/repo`
# example `gethub github/markup`
# checkDir
# Checks to see if a directory exists and creates it and any directories needed to get to it.
function checkDir ()
@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
@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$
{
"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 / 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
@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
#!/bin/bash
counter=0
files=(*)
count=${#files[@]}
dir=0
for file in *
do
echo "File: `printf %03d $counter`-$file"
@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 / 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