Skip to content

Instantly share code, notes, and snippets.

View allen-munsch's full-sized avatar

James allen-munsch

View GitHub Profile
allen-munsch /
Created April 2, 2018 15:30
clone github $USER repos
curl -s$USER/repos | python | xargs -I{} git clone {}
allen-munsch /
Last active April 19, 2018 17:26
Open Sublime Text 3 in Terminal Mac OSX

open gui

open /Applications/Sublime\

example usage:

allen-munsch /
Created May 1, 2018 15:04 — forked from soarez/
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

allen-munsch / gist:a52f024d32f300529747006c2c9dc632
Created July 4, 2018 00:16 — forked from mdbecker/gist:1309633
multiprocess && gevent example
from multiprocessing import Pool as MPool
from time import sleep
import datetime
import multiprocessing
import random
def time_request():
from gevent import monkey; monkey.patch_socket
from jsonrequester import JsonRequester
import math
import numpy
import numpy.random as nrand
Note - for some of the metrics the absolute value is returns. This is because if the risk (loss) is higher we want to
discount the expected excess return from the portfolio by a higher amount. Therefore risk should be positive.
allen-munsch /
Created August 25, 2018 16:24 — forked from bastman/
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

allen-munsch /
Created September 5, 2018 21:29
open display terraform graph in chrome
terraform graph | dot -Tsvg > graph.svg && /Applications/Google\\ Chrome graph.svg
allen-munsch /
Created September 19, 2018 03:51

Keybase proof

I hereby claim:

  • I am allen-munsch on github.
  • I am enderplux ( on keybase.
  • I have a public key ASC8tNZdo3l4BAc4z4SOTRXzmC8aNoRvq3u3OU3ssn6G1Qo

To claim this, I am signing this object:

allen-munsch /
Last active September 19, 2018 06:53
ssh socks forward proxy with firefox
#! /bin/bash
# usage: chmod +x ./ && ./ 123.456.789.012
export PROXY=$1
# assumes 1 default profile "*.default"
if [[ "$OSTYPE" == "darwin"* ]]; then
export FFPROFILE=/Users/$USER/Library/Application\ Support/Firefox/Profiles/*.default/
export FFPROFILE=$HOME/.mozilla/firefox/profiles/*.default
allen-munsch /
Created October 5, 2018 16:36
requests 1 liner
import sys;import requests;from requests import Request as R;sys.stderr.write(requests.Session().send(type("A", (R,), {"__init__": R.__init__})("GET", "").prepare()).content)