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
[error] Class java.time.Duration not found - continuing with a stub. | |
[error] Class java.time.Duration not found - continuing with a stub. | |
[error] missing or invalid dependency detected while loading class file 'DefaultWrites.class'. | |
[error] Could not access type Instant in value java.time, | |
[error] because it (or its dependencies) are missing. Check your build definition for | |
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.) | |
[error] A full rebuild may help if 'DefaultWrites.class' was compiled against an incompatible version of java.time. | |
[error] missing or invalid dependency detected while loading class file 'DefaultWrites.class'. | |
[error] Could not access type LocalDate in value java.time, | |
[error] because it (or its dependencies) are missing. Check your build definition for |
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
{ | |
"id": "/marathon-lb", | |
"cmd": null, | |
"cpus": 1, | |
"mem": 256, | |
"disk": 0, | |
"instances": 2, | |
"constraints": [ | |
[ | |
"hostname", |
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
import boto | |
from boto.route53.record import ResourceRecordSets | |
import json | |
subdomain = 'twitter' | |
primary_domain = 'tryambition.com' | |
load_balancer_name = 'elb-2' | |
elb_conn = boto.connect_elb() |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from django.db import models, migrations | |
import django.utils.timezone | |
import django.core.validators | |
#### SEE LINE 25! | |
class Migration(migrations.Migration): |
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 | |
# | |
# Requires docker-toolbox >= 1.9.0d | |
# https://github.com/docker/toolbox/releases | |
MACHINE_NAME="orcamaster" | |
docker-machine create -d virtualbox $MACHINE_NAME | |
eval $(docker-machine env $MACHINE_NAME) |
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
server { | |
listen 10.10.10.10:80; | |
server_name demo.ambition.io; | |
location /heartbeat { | |
set $my_host $host; | |
if ($host ~ "\d+\.\d+\.\d+\.[\d\:]+") { | |
set $my_host "demo.ambition.io"; | |
} |
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
from django.http import HttpResponse | |
def HeartBeat(request): | |
""" | |
This method is for the AWS load balancer health check. | |
""" | |
return HttpResponse('{\'data\': {\'status\': \'healthy\'}}') |
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
package cache | |
import ( | |
"sync" | |
) | |
// UserCache stores a concurrent-safe cache of authenticated users | |
type UserCache struct { | |
mu sync.RWMutex // guards Cache | |
Cache map[string]string |
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
import salt.client | |
from salt.key import Key | |
client = salt.client.LocalClient() | |
ret = client.cmd('saltmaster','test.get_opts',[], username='username', password='password', eauth='pam') | |
opts = ret['saltmaster'] | |
opts['pki_dir'] = '/etc/salt/pki/master/' | |
kcli = Key(opts) | |
kcli.all_keys() |
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
# yaml | |
project: | |
# virtual env path | |
env: /path/to/venv/bin | |
# absolute path to django settings | |
settings_path: /path/to/settings | |
# django version | |
version: '1.5.3' |