Skip to content

Instantly share code, notes, and snippets.

@krompus
Created March 17, 2016 01:35
Show Gist options
  • Save krompus/b6cc8ae888d590974626 to your computer and use it in GitHub Desktop.
Save krompus/b6cc8ae888d590974626 to your computer and use it in GitHub Desktop.
# Upload raw text to interweb, copy URL to clipboard.
ixc() {
if [[ -z "$1" ]]
then
echo 'Usage: ixc foo.bar'
else
cat $1 | curl -F 'f:1=<-' ix.io | xclip -selection clipboard
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment