Skip to content

Instantly share code, notes, and snippets.

View mrgleeco's full-sized avatar
☮️
give to live

gleeco mrgleeco

☮️
give to live
View GitHub Profile
#!/bin/sh
#
# Script to initiate a merge from master into
# production branch in preparation for a release
usage() {
echo "options"
echo "-f|--force ignore test failures on master"
echo "-m merge commit message"
exit 1
@mrgleeco
mrgleeco / Dockerfile
Last active November 12, 2018 15:36
generic python 2.7 app container
## NOTE: multi-stage builds require docker ce > 17
## NOTE: grep for myapp or my-app here as placeholders
FROM python:2.7-slim-stretch as app-base
# here install some basics you might want need
RUN apt-get update && \
apt-get upgrade --yes && \
apt-get install --yes \
git \
@mrgleeco
mrgleeco / web-servers.md
Created November 8, 2017 17:49 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@mrgleeco
mrgleeco / markdown-slides.md
Last active August 29, 2015 13:56
markdown slides on mac

installation on mac osx:

/usr/local/bin/gem install mdpress

path is non-std for me:

alias mdpress=/usr/local/Cellar/ruby/2.1.0/bin/mdpress

create the project, simply: