Skip to content

Instantly share code, notes, and snippets.

View smcpeck's full-sized avatar

Shaun McPeck smcpeck

View GitHub Profile
@smcpeck
smcpeck / vpn-refresh.sh
Created November 4, 2017 23:49
Shell script to select fastest VPN location from available list
#!/bin/bash
# Set your VPN up with this guide: https://gist.github.com/superjamie/ac55b6d2c080582a3e64
# This runs nicely on a Raspberry Pi that is setup to be your gateway.
# Requires: speedtest-cli, openvpn
# Assuming you have config files of:
# /etc/openvpn/newyork.conf
# /etc/openvpn/chicago.conf