Skip to content

Instantly share code, notes, and snippets.

View altaurog's full-sized avatar

Aryeh Leib Taurog altaurog

View GitHub Profile
@altaurog
altaurog / Dockerfile
Last active June 22, 2020 17:43
starlette on docker x-forwarded-proto
FROM debian:10-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gcc make python3 python3-dev python3-pip
RUN pip3 install setuptools wheel
RUN pip3 install uvicorn starlette
COPY app.py app.py
@altaurog
altaurog / vew-bootstrap.sh
Created July 19, 2020 19:09
virtualenvwrapper bootstrap script
#!/bin/bash
mkdir ~/.venv
python3 -m venv ~/.virtualenvs/venv
~/.virtualenvs/venv/bin/pip install virtualenvwrapper
if [ -n "`$SHELL -c 'echo $ZSH_VERSION'`" ]; then
config=~/.zshrc
elif [ -n "`$SHELL -c 'echo $BASH_VERSION'`" ]; then
config=~/.bashrc