Skip to content

Instantly share code, notes, and snippets.

View oldpatricka's full-sized avatar

Patrick Armstrong oldpatricka

View GitHub Profile
@oldpatricka
oldpatricka / list_instances.py
Last active December 27, 2015 18:59 — forked from priteau/list_instances.py
Use like: $ EC2_HOST=myiaas.example.com AWS_ACCESS_KEY_ID=somekey AWS_SECRET_ACCESS_KEY=somesecret python list_instances.py
#!/usr/bin/env python
import os
from boto.ec2.connection import EC2Connection
from boto.regioninfo import RegionInfo
host = os.environ["EC2_HOST"]
region = RegionInfo(name="Nimbus", endpoint=host)
#!/bin/bash
# chkconfig: 345 99 01
# description: tcollector agent daemon
#
# processname: tcollector.py
# Get TSD_HOST from a file that can be set in ctx
TSD_HOST="nimbus-opentsdb.no-ip.info"
got flow sample json=<{
"sampling_rate": 1,
"app_operation": {
"status": "0",
"resp_bytes": 2193,
"status_descr": "",
"uS": 6421000,
"req_bytes": 52,
"attributes": "ml=6276&pid=visualization_serviceba793eb2a872413fad3c11bd3599972c&ql=0&ps=1",
"operation": "get_realtime_visualization_data"
diff --git a/epu/provisioner/leader.py b/epu/provisioner/leader.py
index c1808f8..ad59b00 100644
--- a/epu/provisioner/leader.py
+++ b/epu/provisioner/leader.py
@@ -139,16 +139,16 @@ class ProvisionerLeader(object):
self.core.terminate_all()
if self.terminator_thread is None:
- self.terminator_thread = tevent.spawn(self.run_terminator, fail_fast=True)
+ self.terminator_thread = tevent.spawn(self.run_terminator, _fail_fast=True)
<html>
</head>
<body>
hi ian. Hash of "Message" is:
<span id="hash"></span>
</body>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js"></script>
<script type="text/javascript">
<html>
</head>
<body>
hi ian. Hash of "Message" is:
<span id="hash"></span>
</body>
<head>
<script type="text/javascript">
var CryptoJS = CryptoJS || function(h, s) {
<html>
</head>
<body>
hi ian. Hash of "Message" is:
<span id="hash"></span>
</body>
<head>
<script type="text/javascript">
/*
#!/usr/bin/env python
import os
import sys
import base64
import boto
from boto.ec2.regioninfo import RegionInfo
import urllib2
def pgm_help():
startDatagram =================================
datagramSourceIP 127.0.0.1
datagramSize 240
unixSecondsUTC 1347925287
datagramVersion 5
agentSubId 100000
agent 192.168.4.102
packetSequenceNo 7
sysUpTime 73000
samplesInPacket 1
diff --git a/objects/data/cei/process.yml b/objects/data/cei/process.yml
index 9e2afbb..3bea514 100644
--- a/objects/data/cei/process.yml
+++ b/objects/data/cei/process.yml
@@ -30,13 +30,15 @@ Process: !Extends_TaskableResource
# Describes request scheduling a process on specific resources
ProcessTarget:
execution_engine_id: ""
- execution_engine_group: ""
+ node_exclusive: ""