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 / zerofree.sh
Last active July 4, 2022 23:26
A shell script to defragment Linux ext4 partitions and fill empty space with zeroes for compact backup of virtual machine. See https://supratim-sanyal.blogspot.com/2016/12/zero-out-free-disk-space-on-virtual.html
#!/bin/bash -x
# * ----------------------------------------------------------------------------
# * "THE BEER-WARE LICENSE" (Revision 42):
# * Supratim Sanyal wrote this file. As long as you retain this notice you
# * can do whatever you want with this stuff. If we meet some day, and you think
# * this stuff is worth it, you can buy me a beer in return.
# * https://www.emailmeform.com/builder/form/65c8aanX6uJ8RVa
# * ----------------------------------------------------------------------------
@tuklusan
tuklusan / SNMPv2-PDU
Last active January 23, 2022 03:28
The correct patched /var/lib/snmp/mibs/ietf/SNMPv2-PDU for Debian Linux and derived distributions (Ubuntu, MX Linux, etc.) :== https://supratim-sanyal.blogspot.com/2022/01/cisco-switch-decnet-routing-snmp-mib.html
SNMPv2-PDU DEFINITIONS ::= BEGIN
ObjectName ::= OBJECT IDENTIFIER
ObjectSyntax ::= CHOICE {
simple SimpleSyntax,
application-wide ApplicationSyntax }
SimpleSyntax ::= CHOICE {
integer-value INTEGER (-2147483648..2147483647),
IF-MIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Counter32, Gauge32, Counter64,
Integer32, TimeTicks, mib-2,
NOTIFICATION-TYPE FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString,
PhysAddress, TruthValue, RowStatus,
TimeStamp, AutonomousType, TestAndIncr FROM SNMPv2-TC
MODULE-COMPLIANCE, OBJECT-GROUP,
@tuklusan
tuklusan / IPGEN-PDP11-93-RSX-11M-PLUS-4.6
Last active January 23, 2022 02:50
IPGEN: Dual-Ethernet PDP-11/93 RSX-11M-PLUS Version 4.6 Base level 87 (QBUS, 2 x DEQNA) - See https://supratim-sanyal.blogspot.com/2021/12/simh-simulating-pdp-11-with-two.html
# ---
# IPGEN (BQTCP)
# PDP-11 with two ethernet Adapters: One for DECnet and one for TCP/IP on a
# PDP-11/93 RSX-11M-PLUS Version 4.6 Base level 87 (QBUS, 2 x DEQNA)
# ---
# -----
# 31.34_NANAJU is simply a link to the SimH PDP11 binary
# 31.34_NANAJU.ini is the SimH configuration file
# BQTCP is available from http://mim.update.uu.se/tcpip.htm
@tuklusan
tuklusan / NETGEN-PDP11-93-RSX-11M-PLUS-4.6
Last active January 23, 2022 02:51
NETGEN: Dual-Ethernet PDP-11/93 RSX-11M-PLUS Version 4.6 Base level 87 (QBUS, 2 x DEQNA) - See https://supratim-sanyal.blogspot.com/2021/12/simh-simulating-pdp-11-with-two.html
# ---
# NETGEN
# PDP-11 with two ethernet Adapters: One for DECnet and one for TCP/IP on a
# PDP-11/93 RSX-11M-PLUS Version 4.6 Base level 87 (QBUS, 2 x DEQNA)
# ---
/home/linuxuser/simh.run/pdp11-93/bin $ ./31.34_NANAJU
removed '../data/NANAJU-console.log'
PDP-11 simulator V4.0-0 Current simh git commit id: 4c44975e
@tuklusan
tuklusan / SYSGEN-PDP11-93-RSX-11M-PLUS-4.6
Last active January 23, 2022 02:52
SYSGEN: Dual-Ethernet PDP-11/93 RSX-11M-PLUS Version 4.6 Base level 87 (QBUS, 2 x DEQNA) - See https://supratim-sanyal.blogspot.com/2021/12/simh-simulating-pdp-11-with-two.html
# ---
# SYSGEN
# PDP-11 with two ethernet Adapters: One for DECnet and one for TCP/IP on a
# PDP-11/93 RSX-11M-PLUS Version 4.6 Base level 87 (QBUS, 2 x DEQNA)
# ---
# -----
# 31.34_NANAJU is simply a link to the SimH PDP11 binary
# 31.34_NANAJU.ini is the SimH configuration file
# -----
@tuklusan
tuklusan / NU.MAC
Created December 3, 2021 21:07
NU.MAC Ethernet port handler source code file for system generation for UNIBUS processors (DEUNA and DELUA controllers) - DEC RT-11 PDP-11 Ethernet Network Device Driver; see https://supratim-sanyal.blogspot.com/2021/12/rt-11-on-pdp-1145-adventures-running.html
.MCALL .MODULE
.MODULE NU,VERSION=15,COMMENT=<DEUNA Port Handler>,AUDIT=NO
; COPYRIGHT 1989, 1990, 1991 BY
; DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
; ALL RIGHTS RESERVED
;
;THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED
;ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND WITH THE
;INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER
@tuklusan
tuklusan / TWONKY.MIC
Last active November 29, 2021 21:00
MONGEN responses for PDP-10 KS10 TOPS-10 7.04 NET node TWONKY hacked for 4 Lines of DUP11 DUP lines; see https://supratim-sanyal.blogspot.com/2021/11/hacking-tops-10-for-8-lines-of-dup11.html
.RUN DSKA:MONGEN[1,4]
;Write MONGEN.MIC (YES,NO)
*Y
;MONGEN for 704 monitors
;
;MONGEN will generate any known TOPS-10 configuration. For information
;about which configurations are supported, please refer to the SPD.
;
;/HELP (PROMPT,SHORT,LONG)
*PROMPT
@tuklusan
tuklusan / TWONKY-8XDUP-HACK.LOG
Last active November 29, 2021 21:27
TOPS-10 PDP-10 KS10 hack to increase number of DUP11 lines to 4 on SimH Node TWONKY (DECNET 31.37 on dup0, ANF10 37 on dup1, ANF10 network uplink on dup2, unused dup3 currently)
#####
# We bump up the number of DUP lines on TWONKY
# dup0 = DECNET
# dup1 - dup3 = ANF10
#
# We do 4 lines because SimH allows 4 lines
#
# NOTE: We can have 8 DUP lines on TWONKY but running it under
# SimH's support of max 4 lines causes numerous problems
# So stick to 4 DUP lines
Login
=====
login username password - no password needed on operator console
A "#" response means its asking for username again (something was wrong in last attempt)
Logout
======
kjob
Shutdown