Skip to content

Instantly share code, notes, and snippets.

View mikedesu's full-sized avatar

darkmage mikedesu

View GitHub Profile
@mikedesu
mikedesu / proxy
Last active July 2, 2019 14:52 — forked from sryze/proxy
Quickly toggle HTTP(S) proxy on Mac OS X from command line
#!/bin/sh
# usage: ./proxy.sh <service> <port> <on/off>
SERVICE="$1" # or "Wi-Fi"
PROXY_HOST="127.0.0.1"
PROXY_PORT="$2"
case "$3" in
on)