Skip to content

Instantly share code, notes, and snippets.

View JohanMoreau's full-sized avatar

Johan Moreau JohanMoreau

View GitHub Profile
JohanMoreau /
Created August 25, 2015 19:17
Docker 1.8 on Ubuntu box
sudo su
echo deb ubuntu-`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d'=' -f2` main >> /etc/apt/sources.list.d/docker.list
apt-key adv --keyserver --recv-keys F76221572C52609D
apt-get update
apt-get purge lxc-docker*
apt-get purge*
apt-get install docker-engine
View Clean docker images
for i in `sudo docker images|grep none|sed -e "s/ /@/g"`; do RES=`echo $i | sed -e "s/<none>@*//g" -e "s/@.*$//"`; sudo docker rmi $RES; done;
View gist:11c720ee7b992cdd5b4a
### Keybase proof
I hereby claim:
* I am johanmoreau on github.
* I am johanmoreau ( on keybase.
* I have a public key whose fingerprint is D626 0FF1 0CEF 8D95 4E9F 7698 BFA3 FC63 6207 3FE4
To claim this, I am signing this object:
JohanMoreau /
Created March 6, 2015 22:28
check ping shinken/nagios with salt minion (with peer exchange)
#!/usr/bin/env python
import salt.cli.caller
import salt.config
import argparse
import sys
parser = argparse.ArgumentParser(description='Check if minions are online.')
parser.add_argument('hostname', help='The name of the minion to be checked')
args = parser.parse_args()