Skip to content

Instantly share code, notes, and snippets.

View tmk's full-sized avatar

hasu@tmk tmk

View GitHub Profile
@tmk
tmk / gist:593657709a4cdc67799db60665e18f4b
Created June 15, 2021 12:09
EzKEY Corp. USB to PS2 Adaptor v1.09 - USB Descriptor
Bus 005 Device 044: ID 0518:0001 EzKEY Corp. USB to PS2 Adaptor v1.09
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
@tmk
tmk / gist:6523cff860874e3dcff186da0a0832e0
Last active November 1, 2020 13:45
Nintendo Procon USB Descriptor
Bus 003 Device 017: ID 057e:2009 Nintendo Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
@tmk
tmk / gist:22b381c13f9a87b2e314d4caf578ac8d
Created April 26, 2020 16:56
Scan codes of SKIDATA2-DE(KCX50BK02-DE) by TIPRO
/* Scan codes of SKIDATA2-DE(KCX50BK02-DE) by TIPRO
* ,---------------------------------------------------------------. ,-------------------------------.
* | | | | | | | | | | | | | | | | | | | | | | | | | |
* |---------------------------------------------------------------| |-------------------------------|
* | | | | | | | | | | | | | | | | | | | | | | | | | |
* |---------------------------------------------------------------| |-------------------------------|
* | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| | | | | | | | | | | | | |
* |---------------------------------------------------------------| |-------------------------------|
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY| Bspc | | | | | |Num| /| *| -|
* |---------------------------------------------------------------| |-------------------------------|
@tmk
tmk / gist:22cb8680ca8ef854630ecd1953268c5b
Last active July 2, 2020 02:06
Cherry G80-2551 Scan Code(Set 2/3)
Cherry G80-2551 126-key Terminal Keyboard
=========================================
https://deskthority.net/wiki/Cherry_G80-2551
G80-2551 in Scan Code Set 2
---------------------------
The keyobard starts up with Scan Code Set 2.
,-----------------------------------------------.
|+1F|+27|+2F|+5E| 08| 10| 18| 20| 28| 30| 38| 40|
|-----------------------------------------------|
@tmk
tmk / JapanPost_suspension_200402.txt
Last active April 10, 2020 02:39
2020-04-01 JAPAN POST suspension of acceptance
2020-04-01 JAPAN POST suspension of acceptance
==============================================
https://www.post.japanpost.jp/int/information/2020/0401_02_en.html
The novel coronavirus pandemic has caused many countries/territories to take measures such as stopping acceptance of inbound postal items as well as considerable suspension and reduction of flights from/to Japan. Accordingly, our transportation performance has significantly declined. Therefore, acceptance of international mail items, mainly EMS and parcel-post/letter-post items by air and SAL, will be temporarily suspended from April 2.
List below shows countries and territories to which acceptance of mail is temporarily suspended because of the novel coronavirus pandemic.
[2020-04-09] Some countries added(+)
https://www.post.japanpost.jp/int/information/2020/0409_01_en.html
@tmk
tmk / MACLIB.INC
Created February 26, 2018 00:06
AT2XT keyboard converter which allows users to attach AT keyboards to XT class computers. http://www.vcfed.org/forum/showthread.php?26426-AT2XT-keyboard-converter
nolist
; Macro counters.
_procnest set 0 ; procedure nesting counter
_keepcnt set 0 ; KEEP macro counter
;* Macros for PIC 12XX Programming.
; --------------------------------
HHKB Professional BT
====================
Internal shots:
http://imgur.com/a/YfcYt/all
Product info:
https://www.pfu.fujitsu.com/hhkeyboard/bt/
Controller
@tmk
tmk / gist:daa925e817cb2a80cd5bc55c4c7c81bd
Created July 14, 2016 23:50
Programmer's layers on German layout
const uint8_t PROGMEM keymaps[][MATRIX_COLS][MATRIX_ROWS] = {
/* Layer 0: Standard ANSI layer */
KEYMAP(\
ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, PSCR,SLCK,PAUS, \
GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL,BSPC, INS, HOME,PGUP, NLCK,PSLS,PAST,PMNS, \
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, DEL, END, PGDN, P7, P8, P9, PPLS, \
RALT,A, S, D, F, G, H, J, K, L, SCLN,QUOT, ENT, P4, P5, P6, \
LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH, RSFT, UP, P1, P2, P3, PENT, \
LCTL,LGUI,LALT, SPC, FN0, FN1, FN2,RCTL, LEFT,DOWN,RGHT, P0, PDOT), \
/* Layer 1: programming layer 1*/
@tmk
tmk / keymap.c
Created October 21, 2013 13:36
keymap.c for Greystoke
/*
Copyright 2011 Jun Wako <wakojun@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@tmk
tmk / hhk.ahk
Created July 17, 2013 13:16
HHKB layout - converts ANSI keyboard into HHKB
;
; HHKB layout
;
; ,-----------------------------------------------------------.
; |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|BackSpa|
; |-----------------------------------------------------------|
; |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|BackS|
; |-----------------------------------------------------------|
; |Contro| A| S| D| F| G| H| J| K| L| ;| '| Return |
; |-----------------------------------------------------------|