Skip to content

Instantly share code, notes, and snippets.

View MMcM's full-sized avatar

Mike McMahon MMcM

  • San Francisco, CA
View GitHub Profile
@MMcM
MMcM / 00-README.md
Last active May 29, 2023 05:23
CoreELEC on M92S PLUS

A cheap Android TV Box from a few years ago.

The standard CoreELEC works with gxm_q200_2g, except the clock and remote.

The clock itself works as an m82, but not the dots.

ADDS Viewpoint A2

The ASCII keyboard for an ADDS Terminal from 1983.

Pictures

Hardware

The keyboard communicates using a special serial protocol. The keyboard is powered with 12VDC.

USB_VID = 0x239A
USB_PID = 0x8058
USB_PRODUCT = "Serpente"
USB_MANUFACTURER = "arturo182"
CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 1
@MMcM
MMcM / adamnet.ino
Created August 22, 2021 01:49
Coleco Adam Keyboard as ASCII virtual serial port using Teensy 3.2
/*
* Wiring for Teensy3.2:
* Teensy 1(TX1) -- RJ 1
* Teensy 2 -- RJ 2 (optional)
* Teensy GND -- RJ 3,4,5
* Teensy Vin -- RJ 6
*
* Note that a real Coleco keyboard cable is reversed.
* (E.g., https://raw.githubusercontent.com/Kalidomra/AdamNet-Drive-Emulator/master/Connection%20Diagram.jpg)
@MMcM
MMcM / 00-README.md
Created January 16, 2016 17:43
klh10 hacks

Files from 2003 that were in Comcast before they discontinued PWP.

@MMcM
MMcM / 00-readme.md
Last active August 30, 2020 23:56
HDS Concept AVT-APL+ Keyboard

HDS Concept AVT-APL+ Keyboard

A Keytronics foam and foil keyboard for an APL capable terminal from 1984.

Protocol

The keyboard just sends idle low, 9600 baud ASCII, with special codes for function keys. It is therefore rather impractical to have it implement a USB keyboard.

@MMcM
MMcM / TestJavaBasic.java
Last active October 29, 2018 03:46
FoundationDB SQL Layer Java Routine Example
package com.foundationdb.example;
public class TestJavaBasic
{
public static void addSub(int x, int y, int[] sum, int[] diff) {
sum[0] = x + y;
diff[0] = x - y;
}
}
@MMcM
MMcM / check_pdo.php
Last active January 3, 2016 11:49
Check PHP PDO connectivity.
<?php
$dbh = new PDO("pgsql:host=localhost port=15432 dbname=system");
$stmt = $dbh->prepare('SELECT version()');
$stmt->execute();
$row = $stmt->fetch();
echo $row[0] . "\n";
?>
@MMcM
MMcM / fdb_sql_protobuf.py
Last active December 27, 2015 06:29
Using FDB SQL STORAGE_FORMAT to allow read access from Python
from google.protobuf import descriptor
from google.protobuf import descriptor_pb2
from google.protobuf import descriptor_pool
from google.protobuf import message
from google.protobuf import reflection
import fdb
from directory import directory
@MMcM
MMcM / layer.log
Created September 24, 2013 18:49
Log excerpts for 14 sysbench OLTP queries
SELECT c FROM sbtest1 WHERE id=501119
Project_Default(Field(2))
GroupLookup_Default(sbtest.sbtest1 -> sbtest.sbtest1)
HKeyRow_Default(sbtest.sbtest1, 501119)
SELECT c FROM sbtest1 WHERE id=496896
Project_Default(Field(2))
GroupLookup_Default(sbtest.sbtest1 -> sbtest.sbtest1)
HKeyRow_Default(sbtest.sbtest1, 496896)