Mercurial > hg > config
view bin/pastebin.sh @ 275:7ffc6b1821f8
http://stackoverflow.com/questions/6397323/how-to-avoid-the-message-of-server-start-while-opening-another-emacs-session sadly doesnt help
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 10 Apr 2013 15:17:19 -0700 |
parents | f3ab51c79813 |
children |
line wrap: on
line source
# all spaces must be converted to '+' # all newlines must be converted to %0D%0A # this is probably better off converted in a python script CONTENT_DATA=`python -c "import sys; print '%0D%0A'.join(sys.stdin.read().split('\n'))" | sed 's/ /+/g'` #echo $CONTENT_DATA #CONTENT_DATA=`echo ${CONTENT_DATA} | sed 's/ /+/g'` #echo $CONTENT_DATA #CONTENT_DATA=`echo ${CONTENT_DATA} | sed 's/$/%0D%0A/g'` wget --post-data="content=${CONTENT_DATA}&s=Submit+Post&description=&type=1&expiry=&name=" -O- http://www.pastebin.ca/index.php | grep 'meta http-equiv="refresh"' | sed 's/^.*\(http:[^"]*\).*/\1/'