Skip to content

Instantly share code, notes, and snippets.

@clutchski
clutchski / install_go.sh
Last active April 26, 2017 20:26
install go quickly
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/"
@vsajip
vsajip / pyvenvex.py
Last active April 29, 2024 07:26
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# 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