I hereby claim:
- I am pandemicsyn on github.
- I am syn (https://keybase.io/syn) on keybase.
- I have a public key whose fingerprint is 256C 5003 97F1 F80C 9ECB EF8C E380 6944 B48B B8A3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import sys | |
import urllib2 | |
import json | |
from optparse import OptionParser | |
parser = OptionParser() | |
parser.add_option("-u", "--url", default=None, help="Graphite URL") | |
parser.add_option("-s", "--short-name", default=None, |
syntax = "proto3"; | |
package proto; | |
//Server Interface | |
service MsgRingListener { | |
rpc SendMsg(RingMsg) returns (Valid) {}; | |
} | |
message RingMsg { |
#!/usr/bin/env python | |
#assumes youre posting to your default site | |
#other wise you need to add site_id | |
import pycurl | |
username="u...@domain.com" | |
password="urSuperSekritPassword" | |
file="/home/syn/Desktop/charts/nvda-05032010.png" | |
title="$nvda" | |
tags="nvda, chart, doji, more, tags" | |
body="blah blah blah this is the body of this post" |
#!/usr/bin/env python | |
''' | |
check_memcache.py | |
# A quick and *very* dirty script to health check memcache # | |
# server(s) and dump their stats. Requires python-memcache. # | |
# Author: Florian Hines <florian.hines<AT>gmail.com # | |
This program is free software; you can redistribute it and/or |
import Growl | |
def growlAlert(self, type, eventclass, device): | |
""" | |
<type> = "New Alert" or "Clear" | |
<eventclass> (i.e. /Status/IpService) | |
<device> (i.e. server1.domain.com) | |
""" | |
name = "ZenWatch" |
# Make sure you've got the "healthcheck" pipeline entry in your [proxy|account|container|object]-server.conf: | |
[pipeline:main] | |
pipeline = catch_errors healthcheck cache ratelimit auth proxy-server | |
# And that you've added the filter for it as well (in the same config of course): | |
[filter:healthcheck] | |
use = egg:swift#healthcheck |
#!/usr/bin/python | |
""" | |
python rfind.py [search term] [filename] | |
""" | |
import mmap | |
import os | |
import sys | |
_cmd, search_term, filename = sys.argv |
from resource import getpagesize | |
from subprocess import call | |
import datetime | |
import time | |
import os | |
from sys import exit | |
# warn at 5GB of use , reload at 6GB | |
memlimit_warn = 5120 #in MB | |
memlimit_max = 6144 #in MB |
#!/usr/bin/env | |
import os | |
def proccount(): | |
if hasattr(os, 'sysconf'): | |
if 'SC_NPROCESSORS_ONLN' in os.sysconf_names.keys(): | |
return os.sysconf("SC_NPROCESSORS_ONLN") | |
else: | |
return None |