Skip to content

Instantly share code, notes, and snippets.

View JohanMoreau's full-sized avatar

Johan Moreau JohanMoreau

View GitHub Profile
[web]
cacerts=
@JohanMoreau
JohanMoreau / updateDocker.sh
Created August 25, 2015 19:17
Docker 1.8 on Ubuntu box
sudo su
echo deb https://apt.dockerproject.org/repo ubuntu-`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d'=' -f2` main >> /etc/apt/sources.list.d/docker.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D
apt-get update
apt-get purge lxc-docker*
apt-get purge docker.io*
apt-get install docker-engine
exit
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;
### Keybase proof
I hereby claim:
* I am johanmoreau on github.
* I am johanmoreau (https://keybase.io/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:
println "ls".execute().text
@JohanMoreau
JohanMoreau / check_ping_salt_minion.py
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()