I hereby claim:
- I am beaufour on github.
- I am beaufour (https://keybase.io/beaufour) on keybase.
- I have a public key whose fingerprint is 96CC B7F1 EDDF 85F1 6263 6DF9 B449 C455 BB2F 12A7
To claim this, I am signing this object:
import logging | |
from django.utils import translation | |
class SubdomainLanguageMiddleware(object): | |
""" | |
Set the language for the site based on the subdomain the request | |
is being served on. For example, serving on 'fr.domain.com' would | |
make the language French (fr). |
select pg_stat_ssl.pid, client_addr, datname, usename, application_name, ssl | |
from pg_stat_activity | |
join pg_stat_ssl | |
on pg_stat_activity.pid = pg_stat_ssl.pid; |
#!/bin/bash | |
# | |
# Gets a temporary token from STS and stores it in the default AWS profile. | |
# | |
# The script needs two environment variables set: | |
# * AWS_MFA_ARN: ARN of your MFA device (look up in IAM) | |
# * AWS_STS_PROFILE: aws cli user profile that allows you to call STS | |
# | |
# To use it, you also need to have two profiles in your ~/.aws/credentials file. The default and the | |
# one that contains your permanent access tokens. Like this for example: |
delegator.py==0.1.1 | |
requests==2.22.0 |
#!/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 |
#!/usr/bin/python | |
# | |
# Get Cloudwatch metrics for the EBS volumes attached to an instance | |
# | |
import datetime | |
import logging | |
import sys | |
import urllib |
#!/usr/bin/python | |
import logging | |
import re | |
import sys | |
import envoy | |
def _exec_git(cmd, args=''): | |
cmd = 'git {0} --color=never {1}'.format(cmd, args) |
import zlib | |
import string | |
BLOCK_SIZE = 16384 | |
"""Read block size""" | |
WINDOW_BUFFER_SIZE = 16 + zlib.MAX_WBITS | |
"""zlib window buffer size, set to gzip's format""" | |
I hereby claim:
To claim this, I am signing this object:
# hubot | |
# | |
description "Hubot chat bot" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
setuid ubuntu | |
setgid ubuntu |