Skip to content

Instantly share code, notes, and snippets.

View wv-jessejjohnson's full-sized avatar

Jesse Johnson wv-jessejjohnson

View GitHub Profile
@jnorthrup
jnorthrup / proxy-bridge
Created July 31, 2025 22:11
Proxy Bridge - Comprehensive proxy management for Termux and macOS with auto-discovery, SSH remote start, and developer tool configuration
#!/usr/bin/env bash
# Proxy Bridge - Improved Version with SSH and auto-discovery
# Core functionality: litebike server + client auto-discovery + SSH remote start
set -e
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
@eastlondoner
eastlondoner / start-chrome.sh
Created May 31, 2025 10:25
Start Chrome for Playwright / CDP control using a logged in chrome profile
#!/bin/bash
CHROME_DIR="$HOME/Library/Application Support/Google/Chrome"
TMP_DIR="/tmp/chrome-debug-profile"
CHROME_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
# Gather profiles + emails
declare -a profiles emails
for dir in "$CHROME_DIR/Default" "$CHROME_DIR"/Profile*; do
[ -d "$dir" ] || continue
@prescience-data
prescience-data / filesystem.ts
Last active December 16, 2025 10:24
Save and restore session data using Playwright
import { exec } from "node:child_process"
import { createReadStream, createWriteStream, existsSync, readFileSync } from "node:fs"
import { mkdir } from "node:fs/promises"
import { basename, dirname, join } from "node:path"
import { pipeline } from "node:stream/promises"
import { promisify } from "node:util"
import { createGzip } from "node:zlib"
import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3"
const fs = require('fs');
const path = require('path');
const pathTo2captchaExtension = path.join(__dirname, '2captcha-solver');
const pathToPuppeteerStreamExtension = path.join(__dirname, 'puppeteer-stream-ext');
const { Cluster } = require('puppeteer-cluster');
const puppeteer = require("puppeteer-extra");
// add recaptcha plugin to solve captchas automatically
@prescience-data
prescience-data / type-into.ts
Last active June 9, 2025 06:07
Demo of biometric typing skeleton logic for Playwright
import { chromium, Page } from "playwright-core"
/**
* Entrypoint.
*
* @remarks
* Demonstrates a safe typing algorithm that mimics human typing cadence.
*
* @public
*/
action_pool_depth
Current value (from the default) = -1
From //build/toolchain/BUILD.gn:11
Pool for non goma tasks.
added_rust_stdlib_libs
Current value (from the default) = []
From //build/config/rust.gni:44
@origamiofficial
origamiofficial / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js
Created March 25, 2022 04:42
Recaptcha Solver in Browser | Automatically solves Recaptcha in browser by engageub | Note: This script is solely intended for the use of educational purposes only and not to abuse any website. This script uses audio in order to solve the captcha. Use it wisely and do not abuse any website. Click "Raw" to install it on Tampermonkey
// ==UserScript==
// @name Recaptcha Solver (Automatically solves Recaptcha in browser)
// @namespace Recaptcha Solver
// @version 2.1
// @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser
// @author engageub
// @match *://*/recaptcha/*
// @connect engageub.pythonanywhere.com
// @connect engageub1.pythonanywhere.com
// @grant GM_xmlhttpRequest
@paceaux
paceaux / tableOfContents.js
Created March 16, 2022 16:49
A class for generating a table of contents on a page.
class TableOfContents {
static listContainerClass = 'articleTOC__list';
static listItemClass = 'articleTOC__item';
static listLinkClass = 'articleTOC__link';
static modifierSeparator = '--';
/*
* @description Gets a list of all title elements having an ID in a given container
* @param {HTMLElement} container - An element containing title elements (h1, h2, h3)
@paceaux
paceaux / clientStorage.js
Last active March 26, 2025 20:34
ClientStorage Module for saving things in a namespaced way to local or session storage.
class ClientStorage {
/**
* Converts a string into a namespaced string
* @param {string} namespace the namespace
* @param {string} keyname keyname
* @returns {string} a string with namespace.keyname
*/
static getNamespacedKeyName(namespace, keyname) {
let namespacedKeyName = "";
@prescience-data
prescience-data / strip-page.ts
Last active September 25, 2024 05:21
Strip Page With Puppeteer
import { Buffer } from "buffer"
import { createHash } from "crypto"
import { HTTPRequest, Protocol } from "puppeteer-core"
import { isPuppeteerPage, Page } from "../types"
type CaptureSnapshotResponse = Protocol.DOMSnapshot.CaptureSnapshotResponse
type RequestHook = (request: HTTPRequest) => Promise<void>