Skip to content

Instantly share code, notes, and snippets.

@whyliam whyliam/surge.sh
Created Jun 7, 2019

Embed
What would you like to do?
#!/usr/bin/env bash
cd $(dirname "$0")
read -sp "Password: " pwd
echo
rm -rf ~/Library/Application Support/com.nssurge.surge-*
echo "${pwd}" | sudo -S date 010110002018
nohup ./Surge\ 3.app/Contents/MacOS/Surge\ 3 &
sleep 20
echo "${pwd}" | sudo -S sntp -sS time.apple.com.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.