Skip to content

Instantly share code, notes, and snippets.

View xavierbourguignon's full-sized avatar

Xavier Bourguignon xavierbourguignon

  • SonarSource
  • Geneva
View GitHub Profile
@dgageot
dgageot / git-build
Created May 16, 2012 08:12
Unbreakeable build
#!/bin/bash
function alert_user {
echo "${1}"
which -s growlnotify && growlnotify `basename $0` -m "${1}"
}
function exit_ko {
alert_user "${1}"; exit 1
}
@0xced
0xced / tsr_download.py
Created April 27, 2011 08:57
Download TSR medias
#!/usr/bin/env python
import json, os, subprocess, sys, urllib2
from termcolor import cprint
from xml.dom import minidom
def abort(error):
cprint(error, color='red', file=sys.stderr)
exit(1)