Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Last active February 11, 2019 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackn9ne/dcac194ead2d8a5c39751c73ea6eaa4e to your computer and use it in GitHub Desktop.
Save zackn9ne/dcac194ead2d8a5c39751c73ea6eaa4e to your computer and use it in GitHub Desktop.
dock bootstrapper
#!/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