Skip to content

Instantly share code, notes, and snippets.

@bkw777
bkw777 / gist:7a8c4d3f5f5db9fe68abba42b37d2ecd
Last active October 18, 2026 18:49
Building TEENY with z88dk on Windows
Minimal setup, just z88dk
get the teeny source as a zip and run z80asm commands directly
no git, make, bash, awk, wc, co2ba, makefile
================================================================================
Download these in a browser:
http://nightly.z88dk.org/z88dk-win32-latest.zip
https://github.com/bkw777/dl2/archive/refs/heads/master.zip
Extract downloads in a CMD window:
@bkw777
bkw777 / filetypes.8085asm.conf
Last active June 2, 2026 19:11
8085 asm syntax for Geany
# /usr/share/geany/filedefs/filetypes.8085asm.conf
# 20260513 b.kenyon.w@gmail.com
# 8085 assembly source with z88dk-z80asm assembler
# Install by copying to above path & filename.
# Edit /usr/share/geany/filetype_extensions.conf
# * under [Extensions] insert a new line:
# 8085asm=*.8085;*.8085asm;*.85asm;*.asm85;*.S85;*.s85;*.a85;*.85;*.85a;
# * under [Groups] apend "8085asm;" to Programming=...
# Use filenames with any of the above extensions to have Geany automatically recognize the right filetype.
@bkw777
bkw777 / filetypes.Z80asm.conf
Last active June 2, 2026 19:13
z80 asm syntax for Geany
# /usr/share/geany/filedefs/filetypes.Z80asm.conf
# 20260408 b.kenyon.w@gmail.com
# z80 assembly for z88dk-z80asm
# Optionally edit /usr/share/geany/filetype_extensions.conf
# * under [Extensions] insert a new line "Z80asm=*.asm;"
# * under [Groups] apend "Z80asm;" to Programming=...
[styling=ASM]
[keywords]
@bkw777
bkw777 / install-freecad-appimage.sh
Last active July 14, 2025 15:37
FreeCAD AppImage desktop integration
#!/bin/bash
#h
#h install_freecad_appimage.sh
#h
#h Configures desktop integration for a FreeCAD AppImage.
#h * copies FreeCad*.AppImage to ~/.local/bin/freecad
#h * installs mime-type, .desktop, and icon under ~/.local/share
#h All files installed in $HOME. No sudo needed.
#h Brian K. White <b.kenyon.w@gmail.com>
#h
KC-85 clones electrolytic capacitors
b.kenyon.w@gmail.com
Jeff Birt's cap maps
https://www.soigeneris.com/document/vintcom/
----
KC-85
@bkw777
bkw777 / bootstrap_rexcpm.txt
Last active March 15, 2025 19:38
Bootstrap REXCPM
Run-through for reference, old but mostly still the same:
Part 1 - REXCPM firmware and option roms
https://youtu.be/tb0WYQCaF1I
Part 2 - CPM disk image
https://youtu.be/M-rBnPiVQOE
=== One-time prerequisite ===
@bkw777
bkw777 / Xperia-1-VI-rooted-firmware-update.txt
Last active May 14, 2026 08:31
Sony Xperia 1 VI rooted firmware update
Xperia 1 VI - XQ-EC72 HK
firmware update notes
This is for a HongKong device in the USA.
https://xdaforums.com/t/tool-xperifirm-xperia-firmware-downloader-v5-8-1.2834142/
https://xdaforums.com/t/tool-newflasher-xperia-command-line-flasher.3619426/
https://xdaforums.com/t/tool-unsin-sin-v3-v4-v5-unpacker-v2-0.3128106/
-------------------------------------------
xperia boot modes:
@bkw777
bkw777 / Brother label printer shrink tube hack.txt
Last active March 27, 2025 08:50
Brother p-touch shrink tube hack
Use shrink tube in printer models that don't officially support them.
https://hackaday.io/project/190126-brother-label-tape-hack
@bkw777
bkw777 / Quartus_13_on_Ubuntu_23.md
Last active September 19, 2026 16:58
Quartus 13.0 & ModelSim on Ubuntu 24
@bkw777
bkw777 / bashcat.sh
Last active May 19, 2026 15:20
cat without cat
# minimal example just for reference, not pointful by itself
# binary-safe read/write file without cp/cat/dd etc, pure bash, no subshell
while LANG=C IFS= read -d '' -r -n 1 x ;do printf '%c' "$x" ;done <bin1 >bin2
# slightly useful example, count bytes to get filesize without stat/ls/wc etc
n=0 ;while LANG=C IFS= read -d '' -r -n 1 ;do ((n++)) ;done <bin # filesize = $n bytes