Skip to content

Instantly share code, notes, and snippets.

@vpashkov
vpashkov / proxy.ts
Last active January 23, 2025 19:03
Proxy Server 3000
/**
* Oversimplified implementation of a residential forward proxy.
* Upstream proxy, proxy auto-configuration, etc. are not implemented.
*
* How to run:
* ```bash
* wget https://gist.github.com/VPashkov/87f1eedc333804981066447f58dce211/raw/5f7cd79732547dd320dd5d99556dc1ae060972c6/proxy.ts
* cat << EOF > .env
* PROXY_PORT=8888
* PROXY_USERNAME=username
@vpashkov
vpashkov / evil.php
Last active October 14, 2018 21:35
throw new Exception('Division by zero.');