Skip to content

Instantly share code, notes, and snippets.

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

h8rt3rmin8r h8rt3rmin8r

💭
¯\_(ツ)_/¯
View GitHub Profile
@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.


@h8rt3rmin8r
h8rt3rmin8r / AI-Driven-Development-Framework.md
Created January 30, 2026 20:55
A Practical Framework for AI-Driven Software Development #ai #ai-coding #vs-code

A Practical Framework for AI-Driven Software Development

This framework formalizes a workflow that consistently produces clean, professional, and maintainable software when working with AI coding agents. It is designed to minimize hallucinations, scope drift, and “AI slop” while preserving velocity and creative leverage.

The core idea is simple: treat AI as a highly capable but short-term contractor that must be re-briefed from first principles at every meaningful phase of work.


Foundational Documents (Non-Negotiable)

@h8rt3rmin8r
h8rt3rmin8r / Convert-ToGif.ps1
Created January 25, 2026 14:10
Robust Animated GIF Converter (Hybrid Engine). This script converts various video and animation formats to high-quality GIFs.
<#
.SYNOPSIS
Robust Animated GIF Converter (Hybrid Engine).
Combines ImageMagick (Quality), LibWebP (Rescue), and FFmpeg (Fallback).
.DESCRIPTION
This script converts various video and animation formats to high-quality GIFs.
It employs a "Survival" strategy to handle corrupt files that normally crash standard converters.
STRATEGY PRIORITY:
@h8rt3rmin8r
h8rt3rmin8r / Convert-IconsToJson.ps1
Last active January 25, 2026 14:30
Converts a directory of icon images into a JSON dataset containing metadata, dimensions, and base64 strings (intended for web development usage).
<#
.SYNOPSIS
Converts a directory of icon images into a JSON dataset containing metadata, dimensions, and base64 strings.
.DESCRIPTION
This script iterates through a specified directory of image files. For each file, it generates a custom
PSObject containing the filename, size, dimensions, and a data object with the Base64 string.
The final result is exported to a JSON file.
Requirements:
@h8rt3rmin8r
h8rt3rmin8r / tree-json.sh
Created January 23, 2026 01:36
A Bash wrapper script for the tree command that outputs a detailed recursive JSON structure of a directory including hidden files and sizes.
#!/usr/bin/env bash
# ==============================================================================
# Script Name : tree-json.sh
# Description : Wraps the 'tree' command to output a detailed JSON structure
# of a directory, including hidden files and sizes.
# Requirements : 'tree' must be installed.
# ==============================================================================
# ------------------------------------------------------------------------------
@h8rt3rmin8r
h8rt3rmin8r / Get-UnicodeReference.ps1
Created January 21, 2026 20:28
Generates a comprehensive JSON map of Unicode characters. Objects contain the character's hex value, category, multi-language print commands (PS, Bash, Python), bit-depth, and a safety flag.
<#
.SYNOPSIS
Generates a comprehensive JSON map of Unicode characters.
.DESCRIPTION
This script iterates through the Unicode range from 1 to 129791 (U+0001 to U+1FAFF).
It outputs a JSON list of objects, each containing the character's hex value,
category, multi-language escape sequences (PS, Bash, Python), bit-depth, and a safety flag.
It handles: