Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Bourguignon xavierbourguignon

  • SonarSource
  • Geneva
View GitHub Profile
@dgageot
dgageot / git-build
Created May 16, 2012
Unbreakeable build
View git-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 Apr 27, 2011
Download TSR medias
View tsr_download.py
#!/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)