Skip to content

Instantly share code, notes, and snippets.

View skull-squadron's full-sized avatar
💭
*aaS unreleased project in Elixir, Rust, Typescript, Kafka, and k8s

🏴‍☠️ 💪📎 skull-squadron

💭
*aaS unreleased project in Elixir, Rust, Typescript, Kafka, and k8s
  • Hill country
View GitHub Profile
@skull-squadron
skull-squadron / captive-portal-detection-and-internet-presence.md
Created May 16, 2023 20:30
Captive portal detection and internet presence URLs by vendor
@skull-squadron
skull-squadron / pwsh.rb
Created January 8, 2026 11:39
Run Powershell stuff on WinDOwS
# frozen_string_literal: true
# vi:ft=ruby
autoload :Base64, 'base64'
autoload :Open3, 'open3'
module Pwsh
extend self
CUSTOMER_CRASH_COUNT: 1
PROCESS_NAME: System
STACK_TEXT:
ffff9b80`2e1d9998 fffff802`a42c248c : 00000000`00000133 00000000`00000000 00000000`00000500 00000000`00000500 : nt!KeBugCheckEx
ffff9b80`2e1d99a0 fffff802`a42c19bb : fffff802`a4fc43b0 00000000`00b49b9f 00000000`00000000 ffff9b80`2e1bd180 : nt!KeAccumulateTicks+0x59c
ffff9b80`2e1d9a10 fffff802`a42c1670 : 00000000`00000018 ffff9b80`2d802300 00000000`00b49ba0 ffff9b80`2e1d9cd0 : nt!KiUpdateRunTime+0x9b
ffff9b80`2e1d9bd0 fffff802`a430f66a : 00000000`00000000 fffff802`a4f21370 ffff9b80`2e1bd180 00000000`fffff802 : nt!KiUpdateTime+0x380
ffff9b80`2e1d9e40 fffff802`a43101cc : ffffe68f`1d7cdfe0 ffffe68f`1d7ce090 fffff802`a4f8ea98 ffffe68f`33adc001 : nt!KeClockInterruptNotify+0x28a
@skull-squadron
skull-squadron / 000readme.md
Last active December 26, 2025 16:28
Copy the Windows 2000 (any version) install CD to C:\SETUP\{{cd_name}} and inform Windows about it

By creating a .bat file with an appended binary similar to a UNIX shar installer.

How to create the .bat from header.bat

copy /a header.bat + /b regini.exe /b copy-win-cd-local.bat

regini.exe
  • Size: 35600 bytes
@skull-squadron
skull-squadron / megafort.txt
Last active December 24, 2025 08:55
Megafortress IBM PC DOS all versions (1.0, 1.1, 1.2) IFF code bypass
--- Megafortress IBM PC DOS all versions IFF code bypass ---
Hex edit to the following:
MEGA.EXE 1.0 (US or UK 1.44MB) SHA256: F5A8689AF21C3250F640B0F1BBD55DC36A2B9AE2A19DCA18C706C6C71463127E
Offset 15D3A: 3B 56 FE 74 -> 89 56 FE EB
New SHA256: CC6FB1F3CD136AEBB698CC9169C3728DC4152EE3B321A997B76D61021CA2D26B
@skull-squadron
skull-squadron / httpx@1.6.3.rbi
Last active December 14, 2025 20:51
tapioca-generated RBI for HTTPX (sorbet/rbi/gems/httpx@1.6.3.rbi created via `bundle exec tapioca gems` where gem httpx is a dependency))
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `httpx` gem.
# Please instead update this file by running `bin/tapioca gem httpx`.
# Top-Level Namespace
#
# source://httpx//lib/httpx/version.rb#3
@skull-squadron
skull-squadron / Makefile
Last active December 9, 2025 13:12
dufff - Faster and betterer than `du -sh` and `find -printf . | wc -c`
CC ?= cc
CFLAGS ?= -DNDEBUG -std=c99 -O3
dufff: dufff.c
$(CC) $(CFLAGS) dufff.c -o dufff
MODULE du;
IMPORT FIO,IO,Lib,Str,SYSTEM,Storage;
TYPE
String = ARRAY [0..128] OF CHAR;
FileSpec = RECORD
i : BOOLEAN;
n : String;
END;
@skull-squadron
skull-squadron / README.md
Last active December 7, 2025 13:59
How to correctly use a hardware random number generator (hwrng, trng) on Linux 5+ (Debian 12+)

How to correctly use a hardware random number generator (hwrng, trng) on Linux 5+ (Debian 12+)

Problem

  1. Linux entropy pool doesn't know about external, non-default, non-driver entropy sources.
  2. Modern Linux usually reports 256 for cat /proc/sys/kernel/random/entropy_avail. This has to do with the entropy pool rewrite sometime ago that prevented blocking of /dev/random.
  3. There is presently no userland entropy pool seeding "pull" mechanism.

Solution

@skull-squadron
skull-squadron / json2img
Created December 4, 2025 20:23
Convert pc2js JSON disk image to local image and extract files
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# Converts https://www.pcjs.org json disk image to real disk .img and extract files
#
# Usage: json2img [options..] {infile.json|https://path/to/web/disk.json} [OUT_DIR]
#
# -v|--verbose verbose
# -n|--no-op no-op
#