Skip to content

Instantly share code, notes, and snippets.

View rustyhaley's full-sized avatar

Rusty Haley rustyhaley

  • Sacramento, CA
View GitHub Profile
@rustyhaley
rustyhaley / CommandsYamlMalforms.txt
Created October 1, 2025 18:04
Ideas for how to handle YAML blocks
---
Download Help Link: https://aka.ms/powershell75-help
Help Version: 7.5.0.0
Locale: en-US
Module Guid: fb6cc51d-c096-4b38-b78d-0fed6277096a
Module Name: CimCmdlets
ms.date: 02/20/2019
schema: 2.0.0
title: CimCmdlets Module
---
@rustyhaley
rustyhaley / Create-PsCommandsMD-To-PDF.ps1
Created September 30, 2025 07:57
Create-PsCommandsMD-To-PDF.ps1 v1.4.45
<# =====================================================================
Create-PsCommandsMD-To-PDF.ps1 v1.4.45
-----------------------------------------------------------------------
Profile-aware builder that merges Markdown from a source folder,
neutralizes fragile links, emits merged .md/.utf8.md, renders .html
(prefer pandoc with TOC), and .pdf (prefer wkhtmltopdf). Produces a
run log and a JSON artifacts manifest. Child-process safe.
v1.4.24 Stop using Resolve-Path for new files; ensure parent dirs.
v1.4.25 Avoid $PID (read-only); use $procId.
@rustyhaley
rustyhaley / Create-PsCommandsMD-To-PDF ChatGPT History--Reconstitution brief summary 02.md
Created September 30, 2025 07:56
Create-PsCommandsMD-To-PDF ChatGPT History--Reconstitution brief summary 02
@rustyhaley
rustyhaley / Create-PsCommandsMD-To-PDF Perplexity Chat History-What do you think is going on here 00.md
Created September 30, 2025 07:55
Create-PsCommandsMD-To-PDF Perplexity Chat History-What do you think is going on here 00

What do you think is going on here:

PS C:\Users\rusty\source\repos\SourceAudit\SourceAudit_v2_MVP\documentation> Import-Module platyPS Import-Module: The specified module 'platyPS' was not loaded because no valid module file was found in any module directory. PS C:\Users\rusty\source\repos\SourceAudit\SourceAudit_v2_MVP\documentation> $env:PSModulePath C:\Users\rusty\OneDrive\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PS C:\Users\rusty\source\repos\SourceAudit\SourceAudit_v2_MVP\documentation> Uninstall-Module -Name Microsoft.PowerShell.PlatyPS Uninstall-Package: No match was found for the specified search criteria and module names 'Microsoft.PowerShell.PlatyPS'.

@rustyhaley
rustyhaley / Create-PsCommandsMD-To-PDF ChatGPT History-Fix LaTeX parsing error 01.md
Created September 30, 2025 07:53
Create-PsCommandsMD-To-PDF ChatGPT History-Fix LaTeX parsing error 01
@rustyhaley
rustyhaley / chrome_fetch.py
Created March 27, 2024 21:41 — forked from pedramamini/chrome_fetch.py
CLI tool and library for fetching content via Chrome driven by Selenium. Has some tricks up its sleeve to evade mechanized browser detection.
"""
CLI tool and library for fetching content via Chrome driven by Selenium. Has some tricks up its sleeve to evade
mechanized browser detection.
Pedram Amini
https://pedramamini.com
Requirements:
pip install selenium
pip install webdriver_manager
@rustyhaley
rustyhaley / fabric-multiplex.sh
Created March 27, 2024 21:39 — forked from pedramamini/fabric-multiplex.sh
Multiplex the stdout from a command as the stdin to numerous commands, collect the outputs under command headings in markdown format.
#!/bin/bash
# Pedram Amini
# https://pedramamini.com
run_command() {
local cmd="$1"
local input_file="$2"
local output_file="$3"
@rustyhaley
rustyhaley / chat_md_format.py
Created February 20, 2024 18:01 — forked from rhlobo/chat_md_format.py
Creates an markdown file from an Copilot Chat JSON
# You can export a Copilot Chat session in Visual Studio Code
# to a JSON file via `Ctrl+Shift+P | Chat: Export Session...`
# or by choosing `View > Command Palette | Chat: Export Session...`
# Inspired by https://github.com/Marijn-Bergman/copilot-chat-export-formatter
import sys
import json