Skip to content

Instantly share code, notes, and snippets.

View learntoswim's full-sized avatar

Karl Stanton learntoswim

View GitHub Profile
@learntoswim
learntoswim / pyenv+virtualenv.md
Created March 5, 2018 17:03 — forked from eliangcs/pyenv+virtualenv.md
Cheatsheet: pyenv, virtualenvwrapper, and pip

Cheatsheet: pyenv, virtualenvwrapper, and pip

Installation (for Mac OS)

Install pyenv with brew

brew update
brew install pyenv

Keybase proof

I hereby claim:

  • I am learntoswim on github.
  • I am kstanton (https://keybase.io/kstanton) on keybase.
  • I have a public key ASCs9JzbmI_p6Ss-cAj-ANXeBnaJHGB7DXcICAp5bA6p4Qo

To claim this, I am signing this object:

@learntoswim
learntoswim / Dockerfile
Created April 13, 2017 18:35
Docker Container for Wagtail on Google App Engine
# docker build -t wagtail .
# docker run -it -v $(pwd):/app -p 0.0.0.0:8080:8080 wagtail python manage.py runserver 0.0.0.0:8080
FROM ubuntu:latest
RUN apt-get update &&\
apt-get install -y language-pack-en-base python python-pip python-dev libjpeg-dev zlib1g-dev libpython-dev libmysqlclient-dev &&\
apt-get clean &&\
locale-gen en_US &&\
update-locale LANG=en_US.UTF-8
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
volumes:
- .:/var/www/html
environment:
WORDPRESS_DB_NAME: wordpress