I hereby claim:
- I am jehiah on github.
- I am jehiah (https://keybase.io/jehiah) on keybase.
- I have a public key whose fingerprint is 5FA8 C7EF F19D F9BB 8B02 18AA 43CA 3BC5 5BBC 543F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// This script is used to bulk shorten urls | |
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io" | |
"log" |
$ sudo svstat /service/clickatron_sortdb-1 | |
/service/clickatron_sortdb-1: up (pid 4235) 87771717 seconds | |
$ uptime | |
18:08:07 up 1073 days, 23:49, 1 user, load average: 1.02, 1.18, 1.22 |
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha256" | |
"encoding/csv" | |
"flag" | |
"fmt" | |
"log" | |
"os" |
#!/bin/bash | |
# | |
# ************************************************* | |
# chkconfig: 2345 99 99 | |
# description: notify email address on system boot. | |
# ************************************************* | |
# Installing: | |
# 1) save as /etc/rc.d/init.d/notify | |
# 2) set the desired email address in "MAILADD" variable | |
# 3) chmod a+w /etc/rc.d/init.d/notify |
#!/bin/bash | |
# Show the rate of swapping (in number of pages) between executions | |
OK=0 | |
WARNING=1 | |
CRITICAL=2 | |
UNKNOWN=-1 | |
EXITFLAG=$OK | |
WARN_THRESHOLD=1 |
#!/bin/bash | |
# Copyright bitly, Aug 2011 | |
# written by Jehiah Czebotar | |
DATAFILE="/var/tmp/nagios_check_forkrate.dat" | |
VALID_INTERVAL=600 | |
OK=0 | |
WARNING=1 | |
CRITICAL=2 |
import tornado.options | |
from nsq import Reader, run | |
from nsq import Writer, Error | |
import functools | |
import logging | |
from host_pool import HostPool | |
class NSQProxy: | |
def __init__(self, topic, nsqds): | |
self.topic = topic |
import tornado.ioloop | |
import logging | |
import time | |
class BufferedMessageHandler(object): | |
""" | |
Usage: | |
buffered_handler = BufferedMessageHandler(my_handler) | |
r = Reader(message_handler=buffered_handler) |
#!/usr/bin/env python | |
""" | |
This is a script that updates hipchat hooks on github repository to only have a small set of actions they trigger based on. | |
created by Jehiah Czebotar 2013 | |
Usage: | |
update_github_hipchat_hook.py --repo=jehiah/json2csv --access_token={{...}} | |
""" |