This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
# I wrote this script so that my personal computer running Ubuntu | |
# always has an active connection with the proxy server. | |
# | |
# Note that I am using my ssh config file, you can define a host there or | |
# you can type the whole command here | |
import notify2 | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import PIPE, Popen, run | |
from threading import Thread | |
from time import sleep | |
try: | |
from queue import Queue, Empty | |
except ImportError: | |
from Queue import Queue, Empty # python 2.x | |
out_q = Queue() |