Skip to content

Instantly share code, notes, and snippets.

View jhaubrich's full-sized avatar

Jesse Haubrich jhaubrich

View GitHub Profile
waas@ATLAS:/opt/pcaptools/pcap_parser/tools git:(master*) $ ./zmq_router.py --listen 11111 --publish 22222
^C
Traceback (most recent call last):
File "./zmq_router.py", line 60, in <module>
main(args)
File "./zmq_router.py", line 43, in main
zmq.device(zmq.FORWARDER, frontend, backend)
File "_device.pyx", line 52, in zmq.core._device.device (zmq/core/_device.c:889)
File "_device.pyx", line 82, in zmq.core._device.proxy (zmq/core/_device.c:1171)
File "checkrc.pxd", line 11, in zmq.core.checkrc._check_rc (zmq/core/_device.c:1239)
waas@GLaDOS:/var/log/upstart $ dmesg -T |grep nfs
[Tue Aug 13 17:50:27 2013] FS-Cache: Netfs 'nfs' registered for caching
[Tue Aug 13 17:50:27 2013] Installing knfsd (copyright (C) 1996 [email protected]).
[Mon Aug 26 17:25:34 2013] nfs: server nfs10g not responding, still trying
[Mon Aug 26 17:27:33 2013] nfs: server nfs10g OK
[Mon Aug 26 17:36:44 2013] nfs: server nfs10g not responding, still trying
[Mon Aug 26 17:40:42 2013] nfs: server nfs10g OK
[Mon Aug 26 17:48:57 2013] nfs: server nfs10g not responding, still trying
[Mon Aug 26 17:53:06 2013] nfs: server nfs10g OK
[Mon Aug 26 18:01:32 2013] nfs: server nfs10g not responding, still trying
@jhaubrich
jhaubrich / console.log
Last active December 13, 2018 00:01
carbon-cache.py was shutdown for an unknown reason at 11:49 UTC
24/07/2013 11:49:43 :: /opt/graphite/conf/storage-aggregation.conf not found, ignoring.
24/07/2013 11:49:47 :: Received SIGTERM, shutting down.
24/07/2013 11:49:47 :: Carbon shutting down. Update rate not changed
24/07/2013 11:49:47 :: (TCP Port 7002 Closed)
24/07/2013 11:49:47 :: Stopping factory <twisted.internet.protocol.ServerFactory instance at 0x2afa440>
24/07/2013 11:49:47 :: (TCP Port 2004 Closed)
24/07/2013 11:49:47 :: Stopping factory <twisted.internet.protocol.ServerFactory instance at 0x2afa320>
24/07/2013 11:49:47 :: (TCP Port 2003 Closed)
24/07/2013 11:49:47 :: Stopping factory <twisted.internet.protocol.ServerFactory instance at 0x2ae7cb0>
24/07/2013 11:52:56 :: Main loop terminated.
@jhaubrich
jhaubrich / gist:6011603
Created July 16, 2013 19:04
netstat out -- atlas timed out
Last login: Tue Jul 16 13:20:34 on ttys004
~ [ ssh atlas ] 1:48 PM
ssh: connect to host 162.58.43.181 port 22: Connection refused
~ [ ssh atlas ] 1:48 PM
ssh: connect to host 162.58.43.181 port 22: Connection refused
~ [ ssh atlas ] 1:48 PM
ssh: connect to host 162.58.43.181 port 22: Connection refused
~ [ ssh atlas ] 1:50 PM
ssh: connect to host 162.58.43.181 port 22: Operation timed out
~ [ ssh atlas ] 1:54 PM
def x(a=1):
b = 2
def y():
print a
print b
return y
In [4]: x()
Out[4]: <function __main__.y>
Removed:
- MTP
- YYR
- ZAU
- ZSU
Known Problems:
RFI:
- JNU
- ZBW
@jhaubrich
jhaubrich / graphite_sync.coffee
Last active December 18, 2015 00:58
Graphite Sync knows when to expect the next value in graphite and polls *just-that-value* appending it to the dataset, removing the oldest value, and calls your callback with the updated data and date range.
# initialize graphite syncr
g = graphite_syncr {url: "/graphite/render?target=...",
inteval: 3000, #optional
callback: (data, sdate, edate) ->
update_plot(data) # calls with full dataset
dr(sdate,edate) # optional arguments sdate & edate
window.history.replaceState("",
"#{sdate} to #{edate}",
"/static/sog/iono/index.html?sdate="
@jhaubrich
jhaubrich / gist:5670737
Created May 29, 2013 14:35
Subscribing to a 0MQ feed from any language is simple.
// http://www.zeromq.org/bindings:clr
subscriber.Bind( address: "tcp://GLaDOS:8084" );
subscriber.Subscribe( prefix: "" ); // subscribe to all messages
// Add a handler to the subscriber's OnReceive event
subscriber.OnReceive += () => {
@jhaubrich
jhaubrich / timeline.coffee
Created May 14, 2013 14:48
Multiline strings in CoffeeScript are AWESOME!
update_plot = (sdate, edate) ->
graphite = "/graphite/render?
&target=alias(summarize(maxSeries(chi2.*.*)%2C'5min'%2C'sum')%2C'')
&format=json
&from=#{sdate/1000}
&until=#{edate/1000}"
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="nanotech"
#ZSH_THEME="pixelplastic"
DISABLE_AUTO_UPDATE="false"
plugins=(git django)
source $ZSH/oh-my-zsh.sh
# source ~/.git-completion.sh
unsetopt correct_all