I hereby claim:
- I am brainstorm on github.
- I am brainstorm (https://keybase.io/brainstorm) on keybase.
- I have a public key whose fingerprint is F12F E607 E080 588A F5CE D8F1 12A5 388F 08F8 0CB5
To claim this, I am signing this object:
| #!/bin/bash -e | |
| # Dumps a PostgresSQL over the network, from production to staging | |
| DB="clarityDB" | |
| DB_USER="clarity" | |
| PROD="" | |
| STAGING="" | |
| echo "Preventing new connections from happening on $STAGING..." | |
| ssh $STAGING "psql -U $DB_USER $DB -c 'REVOKE CONNECT ON DATABASE \"$DB\" FROM PUBLIC;'" |
| #!/usr/bin/env python | |
| from kombu import BrokerConnection, Exchange, Queue | |
| media_exchange = Exchange("media", "direct", durable=True) | |
| video_queue = Queue("video", exchange=media_exchange, routing_key="video") | |
| def process_media(body, message): | |
| print body | |
| message.ack() |
| #!/usr/bin/env python | |
| import sys | |
| import re | |
| import json | |
| from collections import defaultdict | |
| from travisParser import * | |
| builds_list = "" |
| input { | |
| file { | |
| type => "rodslog" | |
| start_position => beginning | |
| debug => true | |
| sincedb_path => "/root/logstash/.sincedb" | |
| path => [ "/root/logstash/logs/eu/var/log/irods/rodsLog.*" ] | |
| } | |
| } |
| """ | |
| Fetches the remaining EDU grant credits in an Amazon account using scraping | |
| with Python's RoboBrowser (perl's WWW::Mechanize look-alike) | |
| """ | |
| from robobrowser import RoboBrowser | |
| credits_url = 'https://portal.aws.amazon.com/gp/aws/developer/account/index.html?ie=UTF8&action=credits' | |
| browser = RoboBrowser(history=True) | |
| browser.open(credits_url) |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # Usage: piperget.sh https://mail.nmr.mgh.harvard.edu/pipermail/freesurfer/ | |
| # automated retrieval of pipermail archives & conversion to mbox file | |
| # Last edit: 2012/10/09 Tue 23:16 PDT | |
| listname=$(echo "$1" | sed 's:^\(http.*\)/\([^/]*\)/$:\2:') | |
| cd /tmp | |
| wget -r -l 1 -nH -A *.txt.gz "$1" | |
| touch /tmp/pipermail/$listname/$listname.mbox | |
| chmod 600 /tmp/pipermail/$listname/$listname.mbox | |
| cd /tmp/pipermail/$listname |
| { | |
| "title": "Logstash Search", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "loglevel: ERROR", | |
| "alias": "errors", | |
| "color": "#BF1B00", | |
| "id": 0, |
| #!/bin/bash | |
| dcfldd if=/dev/$1 bs=1M count=1800 status=on statusinterval=1 | xz -z -T3 -c -e >$2 |