Skip to content

Instantly share code, notes, and snippets.

@rubenhortas
Last active May 18, 2024 21:16
Show Gist options
  • Save rubenhortas/dead12209fdedf5ebf1606b40296ec06 to your computer and use it in GitHub Desktop.
Save rubenhortas/dead12209fdedf5ebf1606b40296ec06 to your computer and use it in GitHub Desktop.
Aliases to encode/decode strings to/from URL encoding using python3
alias urldecode='python3 -c "import sys, urllib.parse as parse; print(parse.unquote_plus(sys.argv[1]))"'
alias urlencode='python3 -c "import sys, urllib.parse as parse; print(parse.quote_plus(sys.argv[1]))"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment