git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| # Note: VAT identification numbers for Greece use "EL", not "GR". | |
| COUNTRY_CODES_EU = %w[ | |
| AT BE BG CY CZ DK EE FI FR DE GR HU IE IT | |
| LV LT LU MT NL PL PT RO SK SI ES SE GB | |
| ] |
| import logging | |
| import logging.handlers | |
| log = logging.getLogger(__name__) | |
| log.setLevel(logging.DEBUG) | |
| handler = logging.handlers.SysLogHandler(address = '/dev/log') | |
| formatter = logging.Formatter('%(module)s.%(funcName)s: %(message)s') |
| #!/usr/bin/python | |
| # | |
| # Get Cloudwatch metrics for an ELB | |
| # | |
| # Inspired by http://onemoredigit.com/post/3263274796/single-instance-cloudwatch-stats-with-boto | |
| # | |
| import datetime | |
| import sys |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| sudo apt-get install ssl-cert | |
| sudo make-ssl-cert generate-default-snakeoil | |
| sudo usermod --append --groups ssl-cert yyuu | |
| ls -l /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/private/ssl-cert-snakeoil.key |
| sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'` | |
| # or... | |
| sudo killall coreaudiod |
| //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
| Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
| import boto | |
| import boto.s3 | |
| import os.path | |
| import sys | |
| # Fill these in - you get them when you sign up for S3 | |
| AWS_ACCESS_KEY_ID = '' | |
| AWS_ACCESS_KEY_SECRET = '' | |
| # Fill in info on data to upload |
| /**= | |
| * User: zircote | |
| * Date: 16/10/2013 | |
| * Time: 08:59 | |
| */ | |
| var SERVICE_HOST = 'http://aws.amazon.com' | |
| var data_sources = { | |
| "linux-od": { |