Skip to content

Instantly share code, notes, and snippets.

Traceback (most recent call last):
File "./vis/wsgi.py", line 17, in <module>
application = get_wsgi_application()
File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
subnets = {
'PublicSubnet1': {
'AZ': 'eu-west-1a',
'CIDR': '10.0.0.0/24'
},
'PublicSubnet2': {
'AZ': 'eu-west-1b',
'CIDR': '10.0.1.0/24'
},
'PublicSubnet3': {
@task
def create_vpc(name='bototest'):
vpcs = ec2.describe_vpcs(Filters=[{'Name': 'tag:Name', 'Values': [name]}])
if not vpcs['Vpcs']:
print 'creating'
vpc_id = ec2.create_vpc(CidrBlock='10.0.0.0/16')['Vpc']['VpcId']
ec2.get_waiter('vpc_available').wait(VpcIds=[vpc_id])
ec2.create_tags(Resources=[vpc_id],
Tags=[{'Key': 'Name', 'Value': name}])
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CLA Stack",
"Parameters": {
"EnvName": {
"Description": "Environment name",
"Type": "String",
"AllowedPattern": "[A-Za-z0-9-]+"
},
"KeyName": {
class ShortGeoJSONEncoder(json.JSONEncoder):
def default(self, obj):
print 'GEOJSON'
if type(obj) == float:
#return float("{:.6f}".format(obj))
return 'FOO'
else:
return 'BAR'
#return json.JSONEncoder.default(self, obj)
GLASGOW G31 2SJ NONE
CASTLE DOUGLAS DG7 2DE NONE
GLASGOW G42 8NN NONE
GLASGOW G13 4QN NONE
WISHAW ML2 9DU NONE
ALLOA FK10 2RZ NONE
INSCH AB52 6NB NONE
COATBRIDGE ML5 4HY NONE
GLASGOW G53 7AJ NONE
AYR KA6 7HQ NONE
@kerin
kerin / fig.yml
Created January 30, 2015 10:53
fig.yml
registry:
image: registry
ports:
- "5000:5000"
dbdata:
image: busybox
command: /bin/sh
volumes:
- /var/lib/postgresql/data
redisdata:
[template]
# The name of the template that will be used to render the application's configuration file
# Confd will look in `/etc/conf.d/templates` for these files by default
src = "settings.tmpl"
# The location to place the rendered configuration file
dest = "/app/magiclantern/settings.py"
# The etcd keys or directory to watch. This is where the information to fill in
traceroute to 185.40.9.53 (185.40.9.53), 30 hops max, 60 byte packets
1 91.109.115.46 (91.109.115.46) 0.229 ms 0.531 ms 0.655 ms
2 cr1-lra.rtr.nfsi.pt (94.46.225.173) 1.609 ms 1.815 ms 1.928 ms
3 cr1-por.rtr.nfsi.pt (94.46.143.21) 3.606 ms 3.826 ms 3.933 ms
4 te0-7-0-0.rcr21.opo01.atlas.cogentco.com (149.6.32.5) 4.030 ms 4.121 ms 4.219 ms
5 be2393.ccr22.bio02.atlas.cogentco.com (130.117.2.65) 18.846 ms 19.063 ms 19.187 ms
6 be2423.ccr42.par01.atlas.cogentco.com (130.117.50.77) 30.518 ms 30.752 ms 30.946 ms
7 be2309.ccr21.par04.atlas.cogentco.com (154.54.73.242) 31.046 ms 31.361 ms 31.505 ms
8 130.117.15.118 (130.117.15.118) 30.449 ms 30.483 ms 30.598 ms
9 ae5-xcr1.prp.cw.net (195.2.10.89) 31.014 ms 30.930 ms 31.039 ms