Skip to content

Instantly share code, notes, and snippets.

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

h8rt3rmin8r h8rt3rmin8r

💭
¯\_(ツ)_/¯
View GitHub Profile
@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:
@h8rt3rmin8r
h8rt3rmin8r / copilot-instructions.md
Created October 10, 2025 01:12
A boilerplate Copilot Instructions markdown template for AI-assisted coding projects (./.github/copilot-instructions.md)

Copilot Instructions

This document provides instructions for AI coding agents to effectively assist in developing the code within this project.

Standards for Writing Style and Tone

  • Always write in a way that reads as genuinely human and free from any linguistic patterns that commonly expose AI-generated text. Avoid all "AI tells," including but not limited to: excessive politeness, generic transitions (e.g., "Furthermore," "In conclusion," "Overall"), filler phrases ("It's important to note that"), parallel-sounding constructions ("not only...but also"), and overly balanced or neatly summarized conclusions.
  • Favor a natural flow that mirrors how an experienced writer or professional would actually communicate:
    • Use sentence length variation (occasional fragments are fine).
  • Use contractions naturally ("I'm," "don't," "that's").
@h8rt3rmin8r
h8rt3rmin8r / ChromeWindowLauncher.ps1
Created August 19, 2025 23:47
A Powershell script that launches app-like minimal Chrome browser windows to view files, directories, or Internet URLs (Includes GUI and headless modes)
<#
.SYNOPSIS
Launches a Chrome window to view a specified file, directory, or URL.
.DESCRIPTION
This script launches a Chrome window to view a specified file, directory, or
Internet URL. Additional inputs can be provided to customize the size and
position of the window.
.PARAMETER Interactive
If set, the script will prompt the user to select a file, directory, or URL
using a graphical interface. This parameter is mutually exclusive with the