Skip to content

Instantly share code, notes, and snippets.

@AkBKukU
AkBKukU / Xebec.cpp
Created January 12, 2025 19:47
Xebec Viewer By zer0xoms a tool for viewing Xebec MFM HDD transition data
// By zer0xoms a tool for viewing Xebec MFM HDD transition data
// Written on Windows, sorry. :D
#include "stdlib.h"
#include "string.h"
#include "stdio.h"
#include "math.h"
@AkBKukU
AkBKukU / AkBKukU-Kate.theme
Last active January 7, 2025 00:09
My custom Kate color theme
{
"custom-styles": {
},
"editor-colors": {
"BackgroundColor": "#090c1e",
"BracketMatching": "#4400aa",
"CodeFolding": "#002b26",
"CurrentLine": "#0c1130",
"CurrentLineNumber": "#d33d3d",
"IconBorder": "#060814",
@AkBKukU
AkBKukU / pdf-search.sh
Created July 28, 2024 13:14
Lazy indexed local PDF search tool.
#!/usr/env bash
# This script works by using pdftotext and pdfgrep along with standard grep to make a faster PDF searching tool.
# PDF searching is slow, searching through plain text is fast. This tool extracts all plain text and stores it seperately.
# When a search is done it is checked against the plain text first where a list of matching files are stored.
# It then searches only the matching PDFs to get the page numbers and print the snipit of data.
# TODO - Add loose matching for bad OCR by doing multiple passes replacing visually similar characters and putting white space in query.
@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