Skip to content

Instantly share code, notes, and snippets.

View hansode's full-sized avatar

Masahito Yoshida hansode

View GitHub Profile
@jpetazzo
jpetazzo / README.md
Last active August 21, 2019 17:55
Give network superpowers to docker

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

@unakatsuo
unakatsuo / gist:1048855
Created June 27, 2011 13:32
hup2term.sh
#!/bin/sh
# This script converts HUP signal from parent shell to TERM signal.
# Terminate the running process which can not be halted with HUP (closing at a GNU screen window).
# Usage:
# hup2term.sh /usr/sbin/nginx -g \'daemon off\;\'
trap 'kill -TERM $wpid;' 1
echo "$*"
@unakatsuo
unakatsuo / gist:537584
Created August 19, 2010 10:42
fork of s3-bash
#!/bin/bash
# basic amazon s3 operations
# Licensed under the terms of the GNU GPL v2
# Copyright 2007 Victor Lowther <victor.lowther@gmail.com>
# print a message and bail
die() {
echo $*
exit 1