Skip to content

Instantly share code, notes, and snippets.

View jhaubrich's full-sized avatar

Jesse Haubrich jhaubrich

View GitHub Profile
@jhaubrich
jhaubrich / gist:10683576
Created April 14, 2014 21:21
sat maneuvers
[email protected]:/AppData/django_website/web/images/mcp git:(master) $ cat cre138/man/20051013182000.txt
ID = G6
GENERATION TIME = 2008/01/28 19:06:47
MAN. NUMBER = 473
MAN. DIRECTION = 4
START TIME = 2005/10/13 18:20:00.000
MAN. DURATION = 1650.000000
TANGENTIAL DV = 0.000000
NORMAL DV = 0.000028
RADIAL DV = -0.001144
root 4660 0.0 0.0 173104 4904 ? S 04:22 0:04 python /opt/pcaptools/waas_brewery/waas_brewery/packet_harvester.py -i eth8 --hopper localhost:50131
root 4664 5.5 11.1 3976820 1373520 ? Sl 04:22 43:10 python /opt/pcaptools/waas_brewery/waas_brewery/packet_harvester.py -i eth5 --hopper localhost:50121
root 4677 5.1 17.2 4202460 2118180 ? Dl 04:22 39:50 python /opt/pcaptools/waas_brewery/waas_brewery/packet_harvester.py -i eth2 --hopper localhost:50102
root 4678 5.0 11.1 4032188 1367740 ? Sl 04:22 39:14 python /opt/pcaptools/waas_brewery/waas_brewery/packet_harvester.py -i eth6 --hopper localhost:50122
root 4679 3.6 7.1 2946204 876932 ? Rl 04:22 27:48 python /opt/pcaptools/waas_brewery/waas_brewery/packet_harvester.py -i eth9 --hopper localhost:50132
root 4680 6.1 25.6 4397232 3152880 ? Sl 04:22 47:32 python /opt/pcaptools/waas_brewery/waas_brewery/packet_harvester.py -i eth4 --hopper localhost:50112
root 31170 5.6 0.2 199
@jhaubrich
jhaubrich / esnoc1.py
Last active August 29, 2015 13:57
SNMP data from the brewery (docker)
SNMP {u'timestamp': 1394134461.336842, u'snmp': {u'snmp-ver': u'SNMPv1', u'snmp-get-error-status': 0, u'snmp-pdutype': u'get-request', u'snmp-get-request': 18, u'snmp-get-error-index': 0, u'snmp-get-details': [[u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.1', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.2', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.3', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.4', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.5', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.6', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.7', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.4.1.1.8', u'oid_name=pcuInfo2', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.5.1.2.1.2.1', u'oid_name=pcuInfo3', u'oid_val='], [u'oid_num=1.3.6.1.4.1.134.87.4.1.1.3.1.2.0', u'oid_name
# NOC1
2014-03-05 23:22:33.292148 - Listening on tcp://glados:50011
defaultdict(<type 'int'>, {'SNMP': 37746, 'SEQN': 5376})^C
2014-03-06 15:00:03.925397 - Closing feed conection to tcp://glados:50011...
2014-03-05 23:22:34.814211 - Listening on tcp://atlas:8011
defaultdict(<type 'int'>, {'SEQN': 5302})^C
2014-03-06 15:00:04.590234 - Closing feed conection to tcp://atlas:8011...
# NOC2
waas@GLaDOS:/home/waas $ ps -ef | egrep '13861|PPID'
UID PID PPID C STIME TTY TIME CMD
root 13861 13846 0 15:30 ? 00:00:03 /usr/bin/python /usr/bin/supervisord
root 13988 13861 0 15:30 ? 00:00:00 /usr/sbin/sshd -D
root 25664 13861 4 20:22 ? 00:01:18 python /opt/waas_brewery/zmq_hopper.py --tcsmode
root 25666 13861 0 20:22 ? 00:00:12 python /opt/waas_brewery/zmq_keg.py
root 25706 13861 91 20:22 ? 00:25:38 python /opt/waas_brewery/packet_harvester.py -i eth1
root 30054 13861 5 20:50 ? 00:00:00 python /opt/waas_brewery/brew/seqn.py
waas 30106 26115 0 20:50 pts/18 00:00:00 egrep 13861|PPID

A Cultural History of Beer

Take­Home Midterm Exam (for the two hour class)

Choose one of the following “cultural essays” and write an essay of no less than a thousand words (four double­spaced pages, 10­12 type Times New Roman font, with 1 inch margins). Use footnotes or endnotes where appropriate.

  1. You are sitting in a bar with Ninkasi, Tenenet, Sabazius, and Sucellus, when who should walk in, but Dionysus. A pleasant conversation ensues. What was said. [Feel free to use a dialog format, but include the appropriate cultural perspectives and terminology for each participant].
  2. What is the role of the early church in the evolution of beer?

Practicum in Brewing Technologies

Take­Home Midterm Exam (for the one hour class)

from subprocess import Popen, PIPE
p = Popen(['tail', '-f', 'popen_test'], stdout=PIPE)
p.stdout.readline() # will block until there is something to be read
# Then just `echo "hello world!" >> popen_test
for f in $(find $1 -iname "*.wsp"); do
if [ -a $f ];
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max;
fi;
done
@jhaubrich
jhaubrich / *27_4.py
Last active December 27, 2015 09:39 — forked from bjcubsfan/gust.py
{'src_node_id': 94, 'dst_serv_id': 27, 'src_seqn': 20, 'ip_dst': '225.1.3.5', 'site_name': 'waas_wapcgusp1c1', 'dst_node_id': 127, 'src_timestamp': 1383591358L, 'source': 'poc1', 'datagram_proto': 'nsns', 'timestamp': 1383591342.295468, 'ip_proto': 17, 'nsns_datetime': datetime.datetime(2013, 11, 4, 18, 55, 58), 'net': 1, 'payload': '\x00\x00\x00\x08\x00\x00\x00\x07A\xcf\xd1X\x1f\x19\x94\xf2A\xcf\xcc\x1d:\xff\xeaN\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00O\x00\x00\x00\x00\x00\x01\x00U\x00\x00\x00\x00\x00\x01\x00Z\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00_\x00\x00\x00\x00\x00\x00\x00\x00\x1e\xe2V\x88\x00\x
@jhaubrich
jhaubrich / gust.py
Created November 4, 2013 15:57
dst_node_ids
{
128: 682,
129: 4350,
130: 796,
182: 114,
184: 228,
185: 76,
189: 1,
190: 114,
191: 76,