Skip to content

Instantly share code, notes, and snippets.

View ps-jessejjohnson's full-sized avatar

Jesse Johnson ps-jessejjohnson

View GitHub Profile
@ps-jessejjohnson
ps-jessejjohnson / Recaptcha Solver (Automatically solves Recaptcha in browser).user.js 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
@ps-jessejjohnson
ps-jessejjohnson / IMessagingClient.ts
Last active January 15, 2025 19:34
Simple Messaging Client Abstraction
export interface IMessagingClient {
connect(): Promise<void>;
disconnect(): Promise<void>;
subscribe(topics: string[], callback: (message: string) => void): Promise<void>;
send(topic: string, message: string): Promise<void>;
}
@ps-jessejjohnson
ps-jessejjohnson / unixToolbox.md
Created October 2, 2024 03:32 — forked from tokhi/unixToolbox.md
Collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users.

#Unix Toolbox

This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.

##Unix Toolbox revision 14.4

The latest version of this document can be found at http://cb.vu/unixtoolbox.xhtml. Replace .xhtml on the link with .pdf for the PDF version and with .book.pdf for the booklet version. On a duplex printer the booklet will create a small book ready to bind. This XHTML page can be converted into a nice PDF document with a CSS3 compliant application (see the script example). See also the about page.
Error reports and comments are m
@ps-jessejjohnson
ps-jessejjohnson / .curlrc
Created October 2, 2024 03:17 — forked from YenForYang/.curlrc
curlrc
### OPTIONS
# Options start with one or two dashes. Many of the options require an additional value next to them.
#
# The short "single-dash" form of the options, -d for example, may be used with or without a space between it and its value, although a space is a recommended separator. The long "double-dash" form, -d, --data for example, requires a space between it and its value.
#
# Short version options that don't need any additional values can be used immediately next to each other, like for example you can specify all the options -O, -L and -v at once as -OLv.
#
# In general, all boolean options are enabled with --option and yet again disabled with --no-option. That is, you use the exact same option name but prefix it with "no-". However, in this list we mostly only list and show the --option version of them. (This concept with --no options was added in 7.19.0. Previously most options were toggled on/off on repeated use of the same command line option.)
#
$ curl --help
Usage: curl [options...] <url>
--abstract-unix-socket <path> Connect via abstract Unix domain socket
--alt-svc <file name> Enable alt-svc with this cache file
--anyauth Pick any authentication method
-a, --append Append to target file when uploading
--basic Use HTTP Basic Authentication
--cacert <file> CA certificate to verify peer against
--capath <dir> CA directory to verify peer against
-E, --cert <certificate[:password]> Client certificate file and password
@ps-jessejjohnson
ps-jessejjohnson / headless-screenshots.js
Created May 13, 2024 06:34 — forked from paceaux/headless-screenshots.js
Screenshot grabber that uses headless chrome (only works on mac)
/** Pre requisites
1) Make an Alias to Chrome
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"
alias chrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
2) Make Sure yarn is installed (it caches packages so you don't have to download them again)
`npm i yarn`
3) Use yarn to install dependencies:
`yarn add lighthouse`
@ps-jessejjohnson
ps-jessejjohnson / squidanonymousproxy.md
Created April 19, 2024 06:09 — forked from RobinDev/squidanonymousproxy.md
Install a SQUID anonymous proxy
  1. Install SQUID
apt-get install squid
  1. Create an user
htpasswd -md /etc/squid3/users myuserlogin`
@ps-jessejjohnson
ps-jessejjohnson / index.js
Created March 24, 2024 00:58
Nodejs HTTP Tunnel
import { createServer, request } from 'node:http';
import { connect } from 'node:net';
import { URL } from 'node:url';
// Create an HTTP tunneling proxy
const proxy = createServer((req, res) => {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('okay');
});
proxy.on('connect', (req, clientSocket, head) => {
@ps-jessejjohnson
ps-jessejjohnson / index.js
Last active March 24, 2024 01:25
Nodejs (Somewhat) Random TLS Fingerprint
import { DEFAULT_CIPHERS } from 'tls';
import https from 'https';
const shuffler = (a, b) => 0.5 - Math.random();
const defaultCiphers = DEFAULT_CIPHERS.split(':');
const shuffledCiphers = [
...defaultCiphers.slice(0, 2).sort(shuffler),
...defaultCiphers.slice(3).sort(shuffler)
].join(':');
@ps-jessejjohnson
ps-jessejjohnson / description.md
Created January 14, 2024 15:44 — forked from dgozman/description.md
Playwright network settled helper

Network Settled

This helper waits for requests initiated by the action to finish. It is similar to waitUntil: 'networkidle' option, but is designed to work with any action, like click.

Example usage:

const waitForNetworkSettled = require('./networkSettled');

// Wait for network settled after navigation,