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 / 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