Skip to content

Instantly share code, notes, and snippets.

View gavrie's full-sized avatar

Gavrie Philipson gavrie

View GitHub Profile
@gavrie
gavrie / run.tpl
Last active October 30, 2023 10:33 — forked from efrecon/run.tpl
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- range $b := .Binds}}
--volume {{printf "%q" $b}} \
@gavrie
gavrie / hack.sh
Created April 1, 2012 12:36 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#