I hereby claim:
- I am micahhausler on github.
- I am micahhausler (https://keybase.io/micahhausler) on keybase.
- I have a public key whose fingerprint is 7151 8EA6 23DA 1ABE 1D54 F693 D5EC 627D 9DCE 5FEB
To claim this, I am signing this object:
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 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
newrelic-admin run-program /usr/local/bin/uwsgi \ | |
--stats=/path/to/socket/socket.sock \ | |
--close-on-exec \ | |
--enable-threads \ | |
--master \ | |
--max-requests=100 \ | |
--module=project.wsgi \ | |
--harakiri=60 \ | |
--env=DJANGO_SETTINGS_MODULE=project.settings \ | |
--py-tracebacker=/path/to/traceback/socket \ |
#!/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) |
I hereby claim:
To claim this, I am signing this object:
docker-clean(){ | |
EXITED=$(docker ps -f status=exited -q) | |
if [ -n "$EXITED" ]; then | |
docker rm $EXITED | |
fi | |
DANGLING=$(docker images -f dangling=true -q) | |
if [ -n "$DANGLING" ]; then | |
docker rmi $DANGLING | |
fi | |
} |
$ brew update && brew install docker docker-machine | |
... | |
$ docker-machine --version | |
docker-machine version 0.4.1 (HEAD) | |
$ docker-machine upgrade dev | |
Stopping machine to do the upgrade... | |
Upgrading machine dev... | |
Downloading https://github.com/boot2docker/boot2docker/releases/download/v1.8.2/boot2docker.iso to /Users/micahhausler/.docker/machine/cache/boot2docker.iso... | |
Starting machine back up... |
# If you are running more than one instances of graylog2-server you have to select one of these | |
# instances as master. The master will perform some periodical tasks that non-masters won't perform. | |
is_master = true | |
# The auto-generated node ID will be stored in this file and read after restarts. It is a good idea | |
# to use an absolute file path here if you are starting graylog2-server from init scripts or similar. | |
node_id_file = /etc/graylog/server/node-id | |
# You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters. | |
# Generate one by using for example: pwgen -N 1 -s 96 |
import os | |
import boto3 | |
def connect_ecs(region=None): | |
return boto3.client( | |
'ecs', | |
aws_access_key_id=os.environ.get('AWS_ACCESS_KEY_ID'), | |
aws_secret_access_key=os.environ.get('AWS_SECRET_ACCESS_KEY'), | |
region_name=region or os.environ.get('AWS_EC2_REGION', 'us-east-1'), | |
) |
# -*- 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): |