Skip to content

Instantly share code, notes, and snippets.

View jmbmxer's full-sized avatar
💭
Building the Future of Kubernetes Security

Jimmy Mesta jmbmxer

💭
Building the Future of Kubernetes Security
View GitHub Profile
#remove running images
docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm
#delete from docker repo
docker images | grep '8 weeks ago' | awk '{print $3}' | xargs docker rmi
@jmbmxer
jmbmxer / crime.py
Created March 3, 2014 23:28 — forked from koto/crime.py
# This is supposedly what CRIME by Juliano Rizzo and Thai Duong will do
# Algorithm by Thomas Pornin, coding by xorninja, improved by @kkotowicz
# http://security.blogoverflow.com/2012/09/how-can-you-protect-yourself-from-crime-beasts-successor/
import string
import zlib
import sys
import random
charset = string.letters + string.digits + "%/+="

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Flask + uWSGI + nginx Primer

I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

How this shit works

  • Flask is managed by uWSGI.
  • uWSGI talks to nginx.