Skip to content

Instantly share code, notes, and snippets.

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

h8rt3rmin8r h8rt3rmin8r

💭
¯\_(ツ)_/¯
View GitHub Profile
@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
@h8rt3rmin8r
h8rt3rmin8r / ytaudio.sh
Last active May 3, 2025 16:25
Manage a collection of audio tracks from YouTube
#!/usr/bin/env bash
#==============================================================================#
# __ _______ ___ _ _ #
# \ \ / /_ _/ _ \ | (_) #
# \ V / | |/ /_\ \_ _ __| |_ ___ #
# \ / | || _ | | | |/ _` | |/ _ \ #
# | | | || | | | |_| | (_| | | (_) | #
# |_/ |_/\_| |_/\__,_|\__,_|_|\___/ #
# #
# Manage a collection of audio tracks from YouTube #
@h8rt3rmin8r
h8rt3rmin8r / ttcUpdate.sh
Created August 1, 2024 20:04
Download the latest data for the Tamriel Trade Centre addon (for the Elder Scrolls Online game) and generate a historical archive of price data with each subsequent download.
#! /usr/bin/env bash
#>------------------------------------------------------------------------------
#>
#> [ ttcUpdate.sh ]
#>
#> Download the latest data for the Tamriel Trade Centre addon and generate
#> a historical archive of price data with each subsequent download.
#>
#> No inputs are required when invoking this script.
#>
@h8rt3rmin8r
h8rt3rmin8r / save.hg.json
Created February 24, 2023 21:51
JSON Schema for decoded save file data from No Man's Sky (merged schema from various game versions using genson)
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"Version": {
"type": "integer"
},
"Platform": {
"type": "string"
},
@h8rt3rmin8r
h8rt3rmin8r / borderlands3-dps.sh
Last active January 29, 2021 03:34
Calculate damage-per-second on guns found in Borderlands 3
#! /usr/bin/env bash
#>-------------------------------------------------------------------------------
#>
#> [ bl3-dps ]
#>
#> Calculate damage-per-second on guns found in Borderlands 3
#>
#> This is an interactive script (no direct inputs are required). Outputs
#> are saved into a local CSV file. Over time, this output file can serve
#> as a personal DPS database.