Skip to content

Instantly share code, notes, and snippets.

Avatar

Karl Stanton learntoswim

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

Cheatsheet: pyenv, virtualenvwrapper, and pip

Installation (for Mac OS)

Install pyenv with brew

brew update
brew install pyenv
View keybase.md

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 Apr 13, 2017
Docker Container for Wagtail on Google App Engine
View Dockerfile
# 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
View docker-compose.yml
wordpress:
image: wordpress
links:
- db:mysql
ports:
- 8080:80
volumes:
- .:/var/www/html
environment:
WORDPRESS_DB_NAME: wordpress