Skip to content

Instantly share code, notes, and snippets.

View evanscottgray's full-sized avatar
🤠
herding cats

Evan Gray evanscottgray

🤠
herding cats
View GitHub Profile

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.

@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@evanscottgray
evanscottgray / docker rm
Created January 23, 2014 04:30
delete all exited images on hypervisor
docker -H=tcp://127.0.0.1:1337 ps -a | grep Exit | awk '{print $1}' | sudo xargs docker -H=tcp://127.0.0.1:1337 rm
@evanscottgray
evanscottgray / gist:8626937
Created January 26, 2014 01:52
getting started with doge
cd dir with cudaminer
cudaminer.exe -H 1 -i 0 -l auto -C 1 -o stratum+tcp://scrypt.megamultipool.com:3335 -O egray2.doge:x
<?php
require 'core/init.php';
$pk = $_POST['pk']; //primary key aka ID
$name = $_POST['name']; //name of the field
$value = $_POST['value']; //value of the field
echo $pk
echo $name
echo $value
<VirtualHost *:80>
# ServerName [!! Your domain OR droplet's IP]
ServerName 107.170.251.133
# !!! Be sure to point DocumentRoot to 'public'!
# DocumentRoot [root to your app./public]
DocumentRoot /var/www/html/list_app/public
# Directory [root to your app./public]
<Directory /var/www/html/list_app/public>
@evanscottgray
evanscottgray / ca.sh
Created July 14, 2014 21:34
ca cert lookup
#!/bin/sh
#
# usage: retrieve-cert.sh remote.host.name [port]
#
REMHOST=$1
REMPORT=${2:-443}
echo |\
openssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\
sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'
@evanscottgray
evanscottgray / delete.sh
Created August 20, 2014 17:11
untag docker images with certain name
docker images | grep "INSERT_NAME_HERE" | awk {'print $1'} | xargs docker rmi
@evanscottgray
evanscottgray / delete_old.sh
Created August 20, 2014 17:12
delete docker images that are old
docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs docker rm
@evanscottgray
evanscottgray / stickyfooter.css
Created August 21, 2014 07:33
stickyfooter.css
/* Sticky footer styles
* -------------------------------------------------- */
html,
body {
height: 100%;
/* The html and body elements cannot have any padding or margin. */
}
/* Wrapper for page content to push down footer */