Skip to content

Instantly share code, notes, and snippets.

@ethanmiller
ethanmiller / gist:966741
Created May 11, 2011 15:58
django-sentry urlopen args
diff --git a/sentry/client/base.py b/sentry/client/base.py
index 3c5fad3..e237c86 100644
--- a/sentry/client/base.py
+++ b/sentry/client/base.py
@@ -149,7 +149,12 @@ class SentryClient(object):
"Sends the message to the server."
if settings.REMOTE_URL:
for url in settings.REMOTE_URL:
- message = base64.b64encode(simplejson.dumps(kwargs).encode('zlib'))
+ data = base64.b64encode(simplejson.dumps(kwargs).encode('zlib'))
@ethanmiller
ethanmiller / gist:1072132
Created July 8, 2011 15:55
Rundeck looping over multi-value options
# This job has two options, action and binary.
# binary accepts multi-values, and the separator is ','
# the following is a script step that loops over the binary arguments
# commandline arguments are : ${option.action} ${option.binary}
ACT=$1
BLIST=$2
IFS=$','
for B in $BLIST; do
sudo $B $ACT
### Keybase proof
I hereby claim:
* I am ethanmiller on github.
* I am ethanmiller (https://keybase.io/ethanmiller) on keybase.
* I have a public key whose fingerprint is AC78 4766 5177 DA94 D5BD 5007 173D 8C44 B0D5 0C6B
To claim this, I am signing this object: