Skip to content

Instantly share code, notes, and snippets.

View yottatsa's full-sized avatar
🏳️‍⚧️
microsoft is transphobic

Atsuko Ito yottatsa

🏳️‍⚧️
microsoft is transphobic
View GitHub Profile
@yottatsa
yottatsa / v4.txt
Created April 17, 2026 08:57
mtr -4 -6 text-lb.esams.wikimedia.org
1. 192.168.123.1 0.0% 4 3.6 5.2 3.1 10.8 3.8
2. lo0-0.bng1.ixn-lon.zen.net.uk 0.0% 4 16.4 14.7 12.4 16.4 1.8
3. (waiting for reply)
4. lag-2.br1.ixn-lon.zen.net.uk 0.0% 4 12.8 12.5 12.1 12.8 0.3
5. et17-100.r4-lon1-gb.as5405.net 0.0% 4 11.5 11.8 11.5 12.4 0.4
6. r1-ams2-nl.as5405.net 0.0% 3 17.6 17.4 16.6 18.0 0.7
7. r4-ams1-nl.as5405.net 0.0% 3 17.0 16.7 16.4 17.0 0.
@yottatsa
yottatsa / gist:6b962bc92b9bf3288fdf25fb3a4b081e
Created April 17, 2026 08:54
mtr -4 grafana.wikimedia.org
1. 192.168.123.1 0.0% 2 3.0 6.4 3.0 9.9 4.8
2. lo0-0.bng1.ixn-lon.zen.net.uk 0.0% 2 12.5 21.8 12.5 31.1 13.2
3. (waiting for reply)
4. lag-2.br1.ixn-lon.zen.net.uk 0.0% 2 13.2 12.9 12.5 13.2 0.5
5. et17-100.r4-lon1-gb.as5405.net 0.0% 2 11.9 12.1 11.9 12.3 0.2
6. r3-lon1-gb.as5405.net 0.0% 2 42.6 42.9 42.6 43.2 0.4
7. r6-fra1-de.as5405.net 0.0% 2 43.9 43.3 42.7 43.9 0.
@yottatsa
yottatsa / gist:17235f93c4e81317152163720c897dde
Created April 17, 2026 08:47
mtr -4 grafana.wikimedia.org
1. 192.168.123.1 0.0% 3 2.7 3.3 2.7 3.9 0.6
2. lo0-0.bng1.ixn-lon.zen.net.uk 0.0% 3 15.2 16.9 12.2 23.2 5.7
3. (waiting for reply)
4. lag-2.br1.ixn-lon.zen.net.uk 0.0% 3 12.3 22.7 11.4 44.3 18.8
5. et17-100.r4-lon1-gb.as5405.net 0.0% 3 12.1 12.2 11.7 12.7 0.5
6. 45.153.81.206 0.0% 3 11.5 12.0 11.5 12.3 0.4
7. r1-ams2-nl.as5405.net 0.0% 3 17.5 17.4 17.3 17.5 0.
#!/usr/bin/env python3
import logging
import argparse
import os
from typing import Callable, Collection, Iterable, Optional, Set, Tuple, NamedTuple
import glob
from functools import partial, lru_cache
import subprocess
import shlex
@yottatsa
yottatsa / FMC-98_C56M1_9509_IC3_cis.txt
Last active January 28, 2025 18:49
standalone pcmcia-cs debug tools using cistpl.c
yottatsa@box:~/Local/Apps/pcmcia-cs/pcmcia-cs-3.2.5/debug-tools$ ./dump_cis -f -v -i FMC-98_C56M1_9509_IC3.CIS
offset 0x02, tuple 0x01, link 0x02
00 ff
dev_info
no_info
offset 0x06, tuple 0x17, link 0x03
49 00 ff
attr_dev_info
EEPROM 250ns, 512b
Building configuration...
Current configuration : 8722 bytes
!
! Last configuration change at 11:06:49 UTC Fri Apr 12 2024
! NVRAM config last updated at 18:03:26 UTC Wed Apr 10 2024
!
version 15.5
service timestamps debug datetime msec
service timestamps log datetime msec
@yottatsa
yottatsa / bootcpm.com.asm
Last active January 9, 2024 13:23
PCP/M-86 loader for Apricot
; nasm bootcpm.com.asm -fbin -o bootcpm.com
; runs from dos to load the bootloader from drive 0
CPU 8086
USE16
disklabeloff equ 0x040a
disklabelseg equ 0x040c
bootfrom equ 0x0408
boot_locn equ 0x1a
@yottatsa
yottatsa / printer.asm.txt
Created October 15, 2023 02:54
printer.sys from PC DOS 6.10, disassembled and annotated
DEV_HDR0:
CPSPMnn:0000:...120000004... DEV_HDR
|_CPSPMnn:0000:...next addr DEV_HDR1
|_CPSPMnn:0000:...field1_0x2 dw 0h
|_CPSPMnn:0000:...attribute dw E040h
|_CPSPMnn:0000:...strategy addr STRATEGY
|_CPSPMnn:0000:...interrupt addr INTERRUPT0
|_CPSPMnn:0000:...field5_0xa ds "PRN "
DEV_HDR1:
CPSPMnn:0000:...240000004... DEV_HDR
@yottatsa
yottatsa / fpu.c
Last active April 14, 2023 15:24
Measuring 8087 FPU
/*
* gcc -O0 -m16 -march=i386 -c fpu.c
*
* 34: 67 dd 80 00 00 fldl 0x0(%bx,%si)
* 3b: de c9 fmulp %st,%st(1)
* 3d: 67 db 44 24 fildl 0x24(%si)
* 43: db 04 24 fildl (%esp)
* 46: 67 dd 80 08 00 fldl 0x8(%bx,%si)
* 4d: de c9 fmulp %st,%st(1)
* 4f: de c1 faddp %st,%st(1)
@yottatsa
yottatsa / hayes
Created February 28, 2023 10:27
Hayes modem dummy plug
#!/usr/bin/expect
#
# responds to Windows 9x dial-up, as it doesn't work with null-modem
# out of the box
#
# Usage:
# 1. enable pre-dial terminal
# 2. login and exec into it
# 3. continue dialling