Skip to content

Instantly share code, notes, and snippets.

@coderjo
coderjo / LSK floppy autoloader.txt
Created February 12, 2024 08:48
Information on LSK Data Systems 3.5" floppy autoloader
These are the result of observing the communication between the autoloader and software that drove it, followed by poking with a terminal program.
RS232. 9600 8N1
on powerup:
prints "LSK Autoloader" and "Copyright - LSK Data Systems 1995"
S prints one char until C is run
COMMANDS:
S status
@coderjo
coderjo / game.dsc
Last active August 31, 2023 03:41
Run Myst 4 windowed
{graphic
full_screen ( false )
}
@coderjo
coderjo / LD-V4300D Service Adaptor.txt
Created May 5, 2020 22:59
LD-V4300D Service Adaptor BOM
Source: C:/projects/ldstuff/LD-V4300D-Service-Adaptor/LD-V4300D Service Adaptor.sch
Date: 5/5/2020 6:58:50 PM
Tool: Eeschema 4.0.7
Component Count: 9
Ref Value Part Footprint Description Vendor
C1 1uF device:C Capacitors_SMD:C_0805_HandSoldering Unpolarized capacitor
J1 Conn_01x09_Male conn:Conn_01x09_Male Connectors_JST:JST_EH_B09B-EH-A_09x2.50mm_Straight Generic connector, single row, 01x09
MK1 Mounting_Hole mechanical:Mounting_Hole Mounting_Holes:MountingHole_3.2mm_M3 Mounting Hole without connection
MK2 Mounting_Hole mechanical:Mounting_Hole Mounting_Holes:MountingHole_3.2mm_M3 Mounting Hole without connection
MK3 Mounting_Hole mechanical:Mounting_Hole Mounting_Holes:MountingHole_3.2mm_M3 Mounting Hole without connection
@coderjo
coderjo / m4b-format.md
Last active October 16, 2020 02:13
Myst IV: Revelation .m4b pack file format

Endian order: little endian

FILE HEADER

Type Count Description
uint32 0x1 Signature string length = 0x0b
char 0xb Signature string = "UBI_BF_SIG" + 0x0
uint32 0x1 file format version? = 0x1
uint32 0x1 unknown = 0x0
@coderjo
coderjo / map2dmtable.py
Created September 26, 2019 09:46
Quick Python script to generate a linux device mapper table from a ddrescue map file, placing errors where ddrescue had bad blocks.
#!/usr/bin/env python
import argparse
parser = argparse.ArgumentParser(description='Create a device mapper table from a ddrescue map file. '
'Blocks that are marked as bad will be mapped to the error target, while successfully-read '
'blocks will be passed through to the device. The dm table will be written to stdout so it can '
'be piped directly into dmsetup.')
parser.add_argument('mapfile', help='The ddrescue map file to convert')
parser.add_argument('device', help='The device containing the image that corresponds to the map file. (typically a loop device)')
@coderjo
coderjo / DDR20th.txt
Created September 26, 2018 15:46
Long post about DDR 20th anniversary
It's the 20th anniversary of Dance Dance Revolution. DDR has changed my life quite a bit:
Back in 2000-2001, on the AMV editors mailing list, I saw mention of this crazy little project. They were taking the DDR 3rd mix non-stop mix CD from the soundtrack and divided it up among a number of different editors, one per song. They would edit the song, with some leader and trailer of adjacent songs. These separate videos would then be edited together into one long, 60 to 74 minute video. (I'd never heard of DDR before this project)
This video was to premiere at Anime Weekend Atlanta in 2001. It sounded so awesome, I had to check it out. So I made hotel reservations and booked flights, attending my first convention EVER, all by myself.
I wound up meeting some of the other editors. I also wound up helping out, first by running interference for Quu so he could finish editing it together, but also holding down the fort in the VAT overnight Saturday.
I made friends and caught the volunteering bug. I've volunteered
@coderjo
coderjo / colorcmds.py
Last active October 31, 2017 17:07
Python script to encode TASBot pixelart script
#!/usr/bin/env python
import argparse
import sys
from PIL import Image
def loadimage(result):
# assuming pixel values are 0..255.. perhaps I should use the image's getextrema func...
for y in xrange(0, result.height):
@coderjo
coderjo / attach_cow_image.sh
Last active October 29, 2024 19:15
access a disk image read-only with a copy-on-write overlay to allow fsck or the like to write changes
#!/bin/bash
# usage: attach_cow_image.sh [imagefile] [cowfile] [devname]
# imagefile: path to the image file you want to load
# cowfile: path to the file to store writes into. If it doesn't exist, a sparse 1GB file will be created.
# devname: the name you want the drive to show up as in /dev/mapper
imgfile="$1"
cowfile="$2"
dmname="$3"
@coderjo
coderjo / README
Last active December 29, 2015 12:29
ArchiveTeam project worker EC2 user-data script.
This is a user-data script for starting up ec2 instances to run an ArchiveTeam project downloader.
steps:
1. save the file to your drive.
2. change where it says YOURNICKHERE to the name you want to show up on the tracker.
3. pick the 32-bit Debian Wheezy 7.2 AMI for the region you plan to use.
4. put the ENTIRE contents of your file as the user-data field.
- If you are using the command-line ec2 tools, you can say --user-data-file YOURFILENAME
- If you are using the web console, on page 3 ("Configure Instance"), expand the "Advanced Details" section and either paste the contents into the "user data" box, or pick "as file" then click browse to select your file.
5. finish setting up your instance. Don't forget to configure a security group to allow you SSH access.
@coderjo
coderjo / ps.txt
Created November 24, 2013 03:13
Evidence that the current official debian wheezy 7.2 ec2 images run the user-data script twice, and from where.
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
1 1518 1518 1518 ? -1 Ss 0 0:00 /bin/sh /etc/init.d/rc 2
1518 1527 1518 1518 ? -1 SL 0 0:00 \_ startpar -p 4 -t 20 -T 3 -M start -P N -R 2
1527 1593 1593 1518 ? -1 S 0 0:00 \_ /bin/bash /etc/init.d/ec2-run-user-data start
1593 1603 1593 1518 ? -1 S 0 0:00 \_ /bin/sh /tmp/ec2agEOii.user-data
1603 1607 1593 1518 ? -1 R 0 0:00 | \_ ps axjfww
1593 1604 1593 1518 ? -1 S 0 0:00 \_ logger -t user-data
PPID PID PGID SID TTY TPGID STAT UID TIME COMMAND
1 1518 1518 1518 ? -1 Ss 0 0:00 /bin/sh /etc/init.d/rc 2