Skip to content

Instantly share code, notes, and snippets.

@DBLaw
DBLaw / output
Created April 12, 2012 22:08
Output
Generating 2000 flows to 107.21.143.121
Traceback (most recent call last):
File "send_flows.py", line 17, in <module>
File "/usr/lib/python2.7/socket.py", line 187, in __init__
socket.error: [Errno 24] Too many open files
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 58, in apport_excepthook
ImportError: No module named tempfile
@DBLaw
DBLaw / gist:2371973
Created April 12, 2012 23:53
annotation format
#TITLE: Generated from users system
#SUB_TITLE: Generated from users system
#START_TIME_RECEIVED: If time is not specified, we'd auto create based off the time we create it
#END TIME: If not specified, we leave empty
#TAGS: Generated from users system for association, if none specified, we add to a generic tag like "External Email"
#LINK_RELATIONSHIP: Generated from users system
#LINK: Generated from users system
#NOTES: Generated from users system
##
### Copyright 2011, Boundary
###
### Licensed under the Apache License, Version 2.0 (the "License");
### you may not use this file except in compliance with the License.
### You may obtain a copy of the License at
###
### http://www.apache.org/licenses/LICENSE-2.0
###
### Unless required by applicable law or agreed to in writing, software
Detected Ubuntu 10.04.4...
Auto generating ec2 tags for this meter....done.
W: Failed to fetch https://apt.boundary.com/ubuntu/dists/lucid/universe/binary-i386/Packages.gz Proxy CONNECT aborted
E: Some index files failed to download, they have been ignored, or old ones used instead.
Adding repository deb https://apt.boundary.com/ubuntu/ lucid universe
OK
W: Failed to fetch https://apt.boundary.com/ubuntu/dists/lucid/universe/binary-i386/Packages.gz Proxy CONNECT aborted
@DBLaw
DBLaw / my_conversation.js
Created October 11, 2012 00:17
Boundary Ephemeral Conversation Example - Single Port
{
"name": "My High Port Convo",
"filter": {
"hosted_by_meters_saved_search": "33333333333333333333",
"transport": [
{
"port": 61613,
"protocol": 6
}
]
@DBLaw
DBLaw / my_conversation.js
Created October 11, 2012 00:26
Boundary Ephemeral Conversation Example - Multiple Ports
{
"name": "My High Port Convo",
"filter": {
"hosted_by_meters_saved_search": "33333333333333333333",
"transport": [
{
"port": 61613,
"protocol": 6
},
{
#!/bin/bash
set -o pipefail
##
### Copyright 2011, Boundary
###
### Licensed under the Apache License, Version 2.0 (the "License");
### you may not use this file except in compliance with the License.
### You may obtain a copy of the License at
###
Meters can be listed with:
curl -i -u [apikey]: https://api.boundary.com/[org_id]/meters
And deleted with:
DELETE https://api.boundary.com/[org_id]/meters/[meter-id]
Delete with curl is, e.g.:
boundary_probe { "probe name":
....
tags => [ "bob", "jane", "bill" ],
}
#!/bin/bash
set -o pipefail
##
### Copyright 2011, Boundary
###
### Licensed under the Apache License, Version 2.0 (the "License");
### you may not use this file except in compliance with the License.
### You may obtain a copy of the License at
###