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 sys, os | |
import mimetypes | |
import magic | |
import hashlib | |
import json | |
class Chart: | |
def __init__(self, chart_type, difficulty, level, author): | |
self.chart_type = chart_type | |
self.difficulty = difficulty |
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 eztvit | |
import sys | |
import urllib3 | |
urllib3.disable_warnings() | |
show = sys.argv[1] | |
episodelist = eztvit.EztvIt().get_episodes(show) | |
for episodeid in episodelist[1]: | |
episode=episodelist[1][episodeid][0] |
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 | |
CONFIG="/etc/pod/.s3cfg-live" | |
BUCKET="live" | |
NUM_DELETES=20 | |
CHANNELS=$(s3cmd -c $CONFIG ls s3://$BUCKET/ | grep DIR | awk -F'/' '{print $4}') | |
i=0 | |
TOTAL=0 |
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 | |
CONFIG="/etc/pod/.s3cf-live" | |
BUCKET="live" | |
NUM_DELETES=5 | |
CHANNELS=$(s3cmd -c $CONFIG ls s3://$BUCKET/ | grep DIR | awk -F'/' '{print $4}') | |
i=0 | |
TOTAL=0 |
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 sys, getopt, pprint | |
import boto.s3 | |
## | |
## Config Me | |
## | |
ACCESS_KEY="ACCESS_KEY_HERE" | |
SECRET_KEY="SECRET_KEY_HERE" | |
HOST="S3_HOST_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
#!/usr/bin/env python | |
import sys | |
import simplejson as json | |
obj=json.load(sys.stdin) | |
epoch = str(obj['monmap']['epoch']) | |
print "dumped monmap epoch "+epoch | |
print "epoch "+epoch | |
print "fsid "+obj['monmap']['fsid'] |
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 | |
declare -A POOLS; | |
for pool in $(ceph osd dump|grep pool|awk -F"'" '{print $2}'); | |
do | |
for rbd in $(rbd list -p $pool 2>/dev/null); | |
do | |
if [ "$rbd" != "" ];then | |
size=$(rbd info -p $pool $rbd|grep size|awk '{print $2}'); | |
let POOLS[$pool]+="$size"; |
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 | |
object_size=4194304 #4MB | |
duration=60 | |
results_folder="./smallio_results" | |
if [ ! -d $results_folder ] | |
then | |
mkdir -p ${results_folder} | |
fi |
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
Node 1 | |
[global] | |
keyring = /etc/ceph/$name.keyring | |
auth cluster required = none | |
auth service required = none | |
auth client required = none | |
[mon] | |
mon data = /srv/mon.$id |
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
{ "state": "down+peering", | |
"up": [ | |
9, | |
20], | |
"acting": [ | |
9, | |
20], | |
"info": { "pgid": "0.301", | |
"last_update": "0'0", |
NewerOlder