Obviously simplicity wasn't the goal of this, so don't judge me.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ env APP_ENV=dev APP_PROMETHEUS_PORT=7000 SECRET_WHOIS_DEV_APP_PROMETHEUS_CONSUL_TOKEN=abc python app.py | |
WhoisConfig(env='dev', prometheus=Prometheus(address='127.0.0.1', port='7000', consul_token='abc')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
export project=freeipa | |
export username=pviktori | |
export localrepo=~/dev/freeipa | |
export patchdir=~/patches/in | |
export remote=vm081 | |
# Usage: getpatch <patchnumber> [num_patches] | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pycurl, urllib, json, sys, httplib2 | |
''' | |
curl -d 'track=google' https://stream.twitter.com/1/statuses/filter.json -uusername:password | |
http://dev.twitter.com/pages/streaming_api_methods | |
https://gist.github.com/1046726 | |
http://www.angryobjects.com/2011/10/15/http-with-python-pycurl-by-example/ | |
''' |