Skip to content

Instantly share code, notes, and snippets.

View xbglowx's full-sized avatar

Brian Glogower xbglowx

View GitHub Profile
#!/usr/bin/env python
import docker
cli = docker.Client(base_url='unix://var/run/docker.sock')
try:
response = cli.inspect_container(container='redis')
except docker.errors.NotFound:
pass
@xbglowx
xbglowx / update-alerting-rules.py
Last active April 19, 2016 08:15
Update Prometheus alerting rules after upgrading to 0.17.0
#!/usr/bin/python
import re
import os
import sys
for root, dirs, files in os.walk('.'):
if root.find('.git') != -1 or not files:
continue
### Keybase proof
I hereby claim:
* I am xbglowx on github.
* I am xbglowx (https://keybase.io/xbglowx) on keybase.
* I have a public key whose fingerprint is 5518 3266 C2F4 F43F D657 6861 9635 5196 4530 380B
To claim this, I am signing this object: