Skip to content

Instantly share code, notes, and snippets.

@lambdaman2
Created October 1, 2012 12:48
Show Gist options
  • Save lambdaman2/3811589 to your computer and use it in GitHub Desktop.
Save lambdaman2/3811589 to your computer and use it in GitHub Desktop.
Bash: use curl to share code/text from terminal
# weird way to represent \' // exit using ctrl-D
alias sharecode='curl -si -F '\''content=<-'\'' http://dpaste.com/api/v1/ | grep ^Location: | colrm 1 10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment