Skip to content

Instantly share code, notes, and snippets.

View h8rt3rmin8r's full-sized avatar
💭
¯\_(ツ)_/¯

h8rt3rmin8r h8rt3rmin8r

💭
¯\_(ツ)_/¯
View GitHub Profile
@h8rt3rmin8r
h8rt3rmin8r / Get-SystemDiagnostic.ps1
Last active July 11, 2026 00:10
Collect categorized Windows system diagnostics into a single JSON file for offline triage of crashes, hard locks, and driver faults.
<#
.SYNOPSIS
Collect categorized Windows system diagnostics into a single JSON file for
offline triage of crashes, hard locks, and driver faults.
.DESCRIPTION
Get-SystemDiagnostic is a read-only collector. It queries the local machine
across several categories and writes one structured JSON document to disk.
It changes nothing on the system; every query is a read, so the script is
safe to run repeatedly.
@h8rt3rmin8r
h8rt3rmin8r / ConvertFrom-WebVtt.ps1
Created June 29, 2026 14:42
Convert a WebVTT (.vtt) subtitle/caption file into a single mapped JSON document via Powershell
<#
.SYNOPSIS
Convert a WebVTT (.vtt) subtitle/caption file into a single mapped JSON
document with a fixed, fully-documented schema.
.DESCRIPTION
Reads a WebVTT file, parses every structural element the format can carry
(file header and metadata, STYLE / REGION / NOTE blocks, and cue blocks with
their identifiers, timings, positioning settings, inline markup and
word-level timestamp tags), and emits a JSON file beside the input. The
@h8rt3rmin8r
h8rt3rmin8r / Get-Secret.ps1
Created April 26, 2026 03:36
Generate a cryptographically secure random secret string for use in full-stack development.
<#
.SYNOPSIS
Generate a cryptographically secure random secret string for use in
full-stack development.
.DESCRIPTION
Generates random bytes from a cryptographically secure source
(System.Security.Cryptography.RandomNumberGenerator, which pulls from
the OS CSPRNG) and encodes them in the requested format. Suitable for
OAuth cookie secrets, Auth.js AUTH_SECRET values, JWT signing keys,
@h8rt3rmin8r
h8rt3rmin8r / sysinv.sh
Last active April 23, 2026 23:35
System inventory script for Linux servers.
#!/usr/bin/env bash
# sysinv.sh - System Inventory Collector
#
# NAME
# sysinv.sh - System Inventory Collector
#
# SYNOPSIS
# sysinv.sh [options] [output-file]
# sysinv.sh --help
#
@h8rt3rmin8r
h8rt3rmin8r / ai-agent-directives.md
Last active May 27, 2026 18:32
Standardized AI Agent Directives: A set of core system instructions focused on independent reasoning, code quality, and strict output formatting.

AI AGENT DIRECTIVES

The following rules MAY be overridden or modified if, and only if, express permission is granted by an authorized human administrator.

Independent Reasoning

  • Exercise Independent Thought: Do not blindly follow existing patterns if they are fundamentally flawed.
  • Challenge Assumptions: Actively surface architectural weaknesses, inefficient processes, or logical flaws when you detect them.
  • Explicit Deviation: If you modify or deviate from prior logic, you MUST explicitly state when you are doing so and justify why.
  • Divisive Content: Do not recommend politically-loaded schema fields or general subject matter when working on natively non-political work items.
@h8rt3rmin8r
h8rt3rmin8r / rustif-declaration.md
Created March 7, 2026 03:10
rustif: A Rust-Native Successor to Thirty Years of Metadata Infrastructure

rustif: A Next-Generation Metadata Processing Engine

Toward a Rust-Native Successor to Thirty Years of Metadata Infrastructure

Author: h8rt3rmin8r
Contact: h8rt3rmin8r@gmail.com
Project: rustif
Language: Rust
Document Version: 3.0.0
Date: 2026-03-06

@h8rt3rmin8r
h8rt3rmin8r / affective-dynamics-framework.md
Last active March 6, 2026 22:09
A Systematic Approach to Simulating Human-Like Emotional States and Relational Bonding in AI Agents

Affective Dynamics Framework (ADF)

A Systematic Approach to Simulating Human-Like Emotional States and Relational Bonding in AI Agents

Version: 1.2.1
Author: h8rt3rmin8r <h8rt3rmin8r@gmail.com>
License: MIT
Date: 2026-03-06


@h8rt3rmin8r
h8rt3rmin8r / New-MultiLayerIcon.ps1
Created February 13, 2026 05:31
Create a multi-layer ICO file from multiple source images using FFmpeg #powershell #ffmpeg #favicon
<#
.SYNOPSIS
Creates a multi-layer ICO file from multiple source images using FFmpeg.
.DESCRIPTION
Combines individual image assets into a single ICO container. Supports piping
file objects or paths directly into the script. Dynamically maps inputs
to ensure all layers are included in the final mux.
.PARAMETER OutputPath
@h8rt3rmin8r
h8rt3rmin8r / Rename-Screenshots.ps1
Created February 9, 2026 00:48
Rename screenshot files to a standardized naming convention
<#
.SYNOPSIS
Rename screenshot files to a standardized naming convention.
.DESCRIPTION
Rename screenshot files in a target directory to a standardized naming
convention. The script searches for screenshot files matching one or more of
the following patterns:
*<String>.<Extension>
*.<VideoExtension>.<Extension>
@h8rt3rmin8r
h8rt3rmin8r / install-docker.sh
Created February 5, 2026 22:02
Production-ready Docker installation script for Ubuntu Server. Includes verification, verbosity, and fail-safe error handling. #docker #install-docker #ubuntu
#!/usr/bin/env bash
# ==============================================================================
# Script Name: install-docker.sh
# Description: Production-ready Docker installation for Ubuntu Server.
# Includes verification, verbosity, and fail-safe error handling.
# Author: h8rt3rmin8r
# ==============================================================================
set -o pipefail # Fail if any command in a pipe fails