Skip to content

Instantly share code, notes, and snippets.

View oldpatricka's full-sized avatar

Patrick Armstrong oldpatricka

View GitHub Profile
type: release
name: cei_deploy
version: 0.1
description: Common Execution Infrastructure Services
ion: 0.0.1
apps:
# dependencies
- name: bootstrapper1
--- a/pyon/util/sflow.py
+++ b/pyon/util/sflow.py
@@ -90,7 +90,7 @@ class SFlowManager(object):
res = resource.getrusage(resource.RUSAGE_SELF)
# build and send counter structure
- csample = { 'counters_sample': {
+ csample = { 'counter_sample': {
'app_name': str(self._container.id),
'app_resources': {
startDatagram =================================
datagramSourceIP 127.0.0.1
datagramSize 428
unixSecondsUTC 1343154826
datagramVersion 5
agentSubId 100000
agent 10.28.212.105
packetSequenceNo 3
sysUpTime 64000
samplesInPacket 1
Index: src/Linux/Makefile
===================================================================
--- src/Linux/Makefile (revision 317)
+++ src/Linux/Makefile (working copy)
@@ -15,10 +15,6 @@
ifeq ($(JSON),)
JSON=yes
endif
-ifeq ($(JSON),yes)
- CFLAGS+=-DHSF_JSON
ubuntu@ip-10-29-159-207:/tmp/host-sflow$ make
cd src/sflow; make
make[1]: Entering directory `/tmp/host-sflow/src/sflow'
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_agent.c
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_sampler.c
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_poller.c
gcc -D_GNU_SOURCE -DSTDC_HEADERS -O3 -DNDEBUG -Wall -Wcast-align -I. -c sflow_receiver.c
ar cru libsflow.a sflow_agent.o sflow_sampler.o sflow_poller.o sflow_receiver.o
ranlib libsflow.a
make[1]: Leaving directory `/tmp/host-sflow/src/sflow'
Index: src/Linux/Makefile
===================================================================
--- src/Linux/Makefile (revision 317)
+++ src/Linux/Makefile (working copy)
@@ -119,7 +119,7 @@
SFLOWOVS_OBJS=sflowovsd.o util.o
CFLAGS+= -I. -I$(SFLOWDIR) -I$(JSONDIR) $(OPT) -Wall -D_GNU_SOURCE -DHSP_VERSION=$(VERSION) -DUTHEAP
-LIBS+= $(SFLOWDIR)/libsflow.a $(JSONDIR)/libjson.a -lresolv -lpthread
+LIBS+= $(SFLOWDIR)/libsflow.a $(JSONDIR)/libjson.a -lresolv -lpthread -lm
def dosomething():
return "I am doing a thing"
@oldpatricka
oldpatricka / gist:2960548
Created June 20, 2012 15:39
Pyon.net example
from pyon.net.endpoint import RPCClient
from pyon.net.messaging import make_node
connection_params = {
'host': 'localhost',
'username': 'guest',
'password': 'guest',
'vhost': '/',
'port': 5672,
'heartbeat': 30
#!/usr/bin/env python
import os
import sys
import base64
import boto
from boto.ec2.regioninfo import RegionInfo
import urllib2
def pgm_help():
;====================================================================================
;
; ARKANOID 83+
;Started: September 20th 2002
;By: Patrick Armstrong
;
;
;====================================================================================
;
; Credits: