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
url=https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | |
out=go.tar.gz | |
wget -O $out $url | |
sudo mkdir -p /usr/local/ | |
sudo tar zxfv $out -C /usr/local/ | |
echo '' >> ~/.bashrc | |
echo 'export PATH=$PATH:/usr/local/go/bin/' >> ~/.bashrc | |
echo '' | |
echo "reload your env to get GOPATH. Profiling instructions here: https://golang.org/pkg/net/http/pprof/" |
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
# | |
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License. | |
# | |
import os | |
import os.path | |
from subprocess import Popen, PIPE | |
import sys | |
from threading import Thread | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve |