Skip to content

Instantly share code, notes, and snippets.

View JingyZhu's full-sized avatar

Jingyuan Zhu JingyZhu

View GitHub Profile
@JingyZhu
JingyZhu / Tinyproxy-docker.md
Last active January 7, 2025 18:35
Build a docker for tinyproxy with customized whitelist

How to build image

  • cp Dockerfile and docker-entrypoint.sh to top directory of tinyproxy
  • Build docker image with Dockerfile
  • Run container: docker run --rm -d -p ${HostPort}:${ContainerPort} -e ALLOWIPS=${ALLOWIPs} -e PORT=${ContainerPort} --name tinyproxy tinyproxy
@JingyZhu
JingyZhu / gist:0c1bc642ae4b3b9841dc17aa5a6c4017
Created April 14, 2021 16:35 — forked from evilpacket/gist:3628941
Top 1000 from Alexa Top 1million
wget -q http://s3.amazonaws.com/alexa-static/top-1m.csv.zip;unzip top-1m.csv.zip; awk -F ',' '{print $2}' top-1m.csv|head -1000 > top-1000.txt; rm top-1m.csv*