Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active October 9, 2017 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelmaeuer/e9ce8f7295c8286646fea59db089410c to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/e9ce8f7295c8286646fea59db089410c to your computer and use it in GitHub Desktop.
urlencode() {
python -c 'import urllib, sys; print urllib.quote(sys.argv[1], sys.argv[2])' \
"$1" "$urlencode_safe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment