Last active
February 11, 2019 22:06
-
-
Save zackn9ne/dcac194ead2d8a5c39751c73ea6eaa4e to your computer and use it in GitHub Desktop.
dock bootstrapper
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/env python | |
import urllib2 | |
import os | |
import subprocess | |
#download all the things 1/2 | |
filedata = urllib2.urlopen('https://raw.githubusercontent.com/homebysix/docklib/master/docklib.py') | |
datatowrite = filedata.read() | |
with open('./docklib.py', 'wb') as f: | |
f.write(datatowrite) | |
#download all the things 2/2 | |
filedata = urllib2.urlopen('https://gist.githubusercontent.com/zackn9ne/dd532410bf2ab8027d2c9453986a0a73/raw/d3253a86d159defa1e9dbd0c96754e3e02a5f904/tech_dock.py') | |
datatowrite = filedata.read() | |
with open('./tech_dock.py', 'wb') as f: | |
f.write(datatowrite) | |
#now run it with bash | |
subprocess.run(["python", "tech_dock.py"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment