Skip to content

Instantly share code, notes, and snippets.

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

h8rt3rmin8r h8rt3rmin8r

💭
¯\_(ツ)_/¯
View GitHub Profile
@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 March 19, 2026 16:39
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.
@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
@h8rt3rmin8r
h8rt3rmin8r / Get-Tree.ps1
Created February 2, 2026 13:41
Generate a detailed JSON report of a directory tree structure in Powershell
<#
.SYNOPSIS
Generates a detailed JSON report of a directory tree structure.
.DESCRIPTION
Recursively analyzes a directory and creates a comprehensive JSON report containing:
- Complete file/directory tree with metadata
- Size metrics (bytes, words, lines)
- Timestamps in both Unix and human-readable formats
- Summary statistics including file extensions and depth analysis
@h8rt3rmin8r
h8rt3rmin8r / Project-Technical-Specifications-Template.md
Created January 30, 2026 21:33
TEMPLATE: Project Technical Specifications (for use in AI-driven software development)

Project Technical Specifications

Project Name:
Version:
Status:
Last Updated:

This document is the authoritative, canonical source of truth for this project. All architectural, behavioral, and implementation decisions are governed by this specification. Sections may be left empty during early drafting, but headings and structure must remain intact.