Skip to content

Instantly share code, notes, and snippets.


Kurt Wheeler kurtwheeler

View GitHub Profile
kurtwheeler /
Created Sep 13, 2013
This is a script which provides a command line interface for publishing notifications to Amazon SNS.
#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.