Skip to content

Instantly share code, notes, and snippets.

@zurgeg
Created April 3, 2020 01:02
Show Gist options
  • Save zurgeg/935d94148f4da4122d864d478494599f to your computer and use it in GitHub Desktop.
Save zurgeg/935d94148f4da4122d864d478494599f to your computer and use it in GitHub Desktop.
import os
ans = input('Type A if on RasPi/Mac or B if on Windows')
if ans.lower() == 'a':
os.system('pip3 install --user flask')
import flask
else:
os.system('pip install flask')
import flask
app = flask.Flask(__app__)
@app.route('/')
def home():
return '<h1>Welcome to ProxyX</h1><br><p>only on switch</p><br><a href=\'www.google.com\'>Google</a>'
app.run(host='0.0.0.0')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment