Skip to content

Instantly share code, notes, and snippets.

@miracle2k
miracle2k / .bashrc
Created July 6, 2014 12:19
Convert an existing docker container into a "docker run" command line
# Convert an existing docker container into a "docker run" command line.
#
# This is useful when trying to debug containers that have been created
# by orchestration tools.
#
# Install jq: stedolan.github.io/jq/
function format_run() {
cid=$1
@ozh
ozh / Directory.reg
Created November 9, 2012 20:46
Regedit keys: Git GUI & Git Bash context menus
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\git]
@="* Guit Bash"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\git\command]
@="C:\\Program Files (x86)\\Console2\\Console.exe -t \"Git\" -d \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_gui]