Skip to content

Instantly share code, notes, and snippets.

View tuklusan's full-sized avatar
💭
trading heroes for ghosts.

Supratim Sanyal tuklusan

💭
trading heroes for ghosts.
View GitHub Profile
@tuklusan
tuklusan / mariah::sys$print_output_example
Last active April 24, 2020 00:21
OpenVMS/VAX 7.3 on MicroVAX 3100-80 - TTA2 DB25 Serial Connector connected to PC DB9 via NULL Modem using DEC BCC05 Cable, minicom serving as Printer. See my notes on bringing up a MicroVAX 3100-80: https://supratim-sanyal.blogspot.com/2020/04/my-own-27-year-old-classic-digital-dec.html
$ minicom
Welcome to minicom 2.7.1
OPTIONS: I18n
Compiled on May 6 2018, 08:02:47.
Port /dev/ttyS0, 00:03:58
Press CTRL-A Z for help on special keys
@tuklusan
tuklusan / hecnet-nodes-for-pydecnet.sh
Last active January 21, 2024 21:43
hecnet-nodes-for-pydecnet.sh: Grabs HECnet node database and converts to format expected by Paul Koning's DECnet/Python
#!/bin/bash
# --
# hecnet-nodes-for-pydecnet.sh
# grabs HECnet node list from MIM and produces node names configuration
# file for DECnet/Python
#
# Author: Supratim Sanyal <supratim at riseup dot net>
# --
@tuklusan
tuklusan / mac-os-x-linux-ubuntu-mate-mount-apfs.log
Last active March 2, 2020 22:36
Mount MAC OS X APFS file system partition for Linux Ubuntu Mate on Apple MacBook Pro 17" - See https://supratim-sanyal.blogspot.com/2020/02/install-and-dual-boot-linux-on-17-inch_17.html
###
# Terminal session log:
# Mounting MacOS X APFS partition on Linux Ubuntu Mate on Apple MacBook Pro 17"
# See https://supratim-sanyal.blogspot.com/2020/02/install-and-dual-boot-linux-on-17-inch_17.html
###
localuser@macbookpro17inch:~$ # MOUNT THE MAC OS X APFS PARTITION ON UBUNTU ON MACBOOK PRO
localuser@macbookpro17inch:~$ sudo apt-get update
...
localuser@macbookpro17inch:~$ sudo apt-get upgrade
###
# Terminal session log:
# Configuring Trackpad Gestures for Linux Ubuntu Mate on Apple MacBook Pro 17"
# See https://supratim-sanyal.blogspot.com/2020/02/install-and-dual-boot-linux-on-17-inch_17.html
###
localuser@macbookpro17inch:~$ sudo apt update && sudo apt upgrade
[sudo] password for localuser:
...
...
@tuklusan
tuklusan / DECNET-TEST.COM
Created February 4, 2020 04:18
DECNET-TEST.COM - Check and Report on DECnet Connection Status of Nodes at SANYALnet Labs | List of Nodes: http://tuklusan.decsystem.org/
$! ---
$! AUTHOR: SUPRATIM SANYAL
$! http://tuklusan.decsystem.org
$! ---
$! My Hobbyist DECnet Nodes as of Feb 3, 2020
$! ---
$ NODELIST = "IMPVAX,PYRTR,QCOCAL,CLOUDY,JUICHI,FEDACH,FOMFOR,OSTARA,WEXPEE,ENTEE4,RAPTOR,MACOS9,WFW311,WXPEE2,TRU64,XLVII,TSTVAX,W2000S,MACOS7,RST101,TWENEX"
$ NODELIST = NODELIST + ",VAXSTN,XLIV,PIPY,XL,NANAJU,NJEVX1,NJEVX2,SHAKTI,IBM390,MOKSHA,PYDNET,IMPRTR"
$ OUTPUT_TXT="sys$scratch:sanyalnet-labs-decnet-node-status.txt"
$!
@tuklusan
tuklusan / IBM-MVS-3.8-COBOL-ERATOSTHENES-SIEVE.PRT
Last active January 11, 2020 01:45
Sieve of Eratosthenes programmed in COBOL on IBM MVS 3.8 TK4- Batch Job Printer Output: Prime Numbers till 9999 | Emulate IBM 3033 Mainframe Computer running MVS 3.8 O/S: https://supratim-sanyal.blogspot.com/2020/01/mvs-38-operating-system-on-ibm-3033.html
=======================
Sieve of Eratosthenes programmed in COBOL
IBM MVS 3.8 TK4-
Batch Job Printer Output: Prime Numbers till 9999
Emulate IBM 3033 Mainframe Computer running MVS 3.8 O/S:
https://supratim-sanyal.blogspot.com/2020/01/mvs-38-operating-system-on-ibm-3033.html
=======================
MM MM FFFFFFFFFFFF 11
@tuklusan
tuklusan / hpux-postinstal-console.log
Created November 10, 2019 01:10
Install HP-UX 11i on QEMU: Post-Installation Phase and First Boot - HP 9000/778 Console; see https://supratim-sanyal.blogspot.com/2019/11/hpux-11i-v1-hpux-1111-pa-risc-guest.html
This file has been truncated, but you can view the full file.
Script started on Wed Nov 6 12:58:36 2019
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ telnet localhost 54321
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Firmware Version 6.1
Duplex Console IO Dependent Code (IODC) revision 1
@tuklusan
tuklusan / hpux-inst-console.log
Created November 10, 2019 01:02
Install HP-UX 11i on QEMU: Installation Phase - HP 9000/778 Console; see https://supratim-sanyal.blogspot.com/2019/11/hpux-11i-v1-hpux-1111-pa-risc-guest.html
Script started on Sun Nov 3 01:32:30 2019
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ telnet localhos  r   t 54321
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Firmware Version 6.1
Duplex Console IO Dependent Code (IODC) revision 1
@tuklusan
tuklusan / hpux-inst-qemu.log
Created November 10, 2019 01:00
Install HP-UX 11i on QEMU: Installation Phase - QEMU Monitor; see https://supratim-sanyal.blogspot.com/2019/11/hpux-11i-v1-hpux-1111-pa-risc-guest.html
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ # -----------------------------------------------cat r.shvi r.sh./r.sh cat r.sh./qemu-system-hppa -net nic,model=helpversion
QEMU emulator version 4.1.50 (v4.1.0-2221-g36609b4fa3-dirty)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$
[localuser@dell-poweredge-2950 ~/Qemu-VirtualMachines/hpux]$ ./qemu-system-hppa -version# -----------------------------------------------cat r.shvi r.sh./r.sh cat r.sh./qemu-system-hppa -net nic,model=help
Supported NIC models:
e1000
e1000-82544gc
e1000-82545em
@tuklusan
tuklusan / shs.c
Last active October 30, 2021 16:22
shs.c - absolutely minimal web server in C (tested on 4.3 BSD for VAX with gcc 2.7.2.2) | See https://supratim-sanyal.blogspot.com/2019/04/deploying-single-greatest-piece-of.html
/*
shs.c - simple http server for 4.3 BSD on VAX
Compiles with gcc version 2.7.2.2 vax-dec-bsd
Tweaked from David Egan's HTTP Server in C (https://dev-notes.eu/2018/06/http-server-in-c/)
For each connection accepted on the designated port, this
minimal server returns a single file (index.html).
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/vax-dec-bsd/2.7.2.2/specs