Skip to content

Instantly share code, notes, and snippets.

Kurt Wheeler kurtwheeler

Block or report user

Report or block kurtwheeler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kurtwheeler
kurtwheeler / publishAmazonSNS.sh
Created Sep 13, 2013
This is a script which provides a command line interface for publishing notifications to Amazon SNS.
View publishAmazonSNS.sh
#!/bin/bash
#This script creates a command line tool to publish a notification to Amazon SNS.
#The second parameter to urllib.quote is very important here.
#It overrides the default ignore character set which is just '/'
#If the default is set then the strings will not be url encoded to
#Amazon's requirements.
function urlencode {
python -c "import urllib; print urllib.quote('''$1''', '')"
}
You can’t perform that action at this time.