Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Created March 27, 2020 00:06
Show Gist options
  • Select an option

  • Save santaklouse/611b239b5e83cf3f81418b58e2dd8b70 to your computer and use it in GitHub Desktop.

Select an option

Save santaklouse/611b239b5e83cf3f81418b58e2dd8b70 to your computer and use it in GitHub Desktop.
Save text from cli (get url like pastebin)
bash# command 2>&1 | curl -F 'f:1=<-' ix.io
Or as function in .bashrc
function pastebin() { curl -F -s 'f:1=<-' ix.io; }
And
# ps aux | pastebin
Will return url to text file (output of ps aux)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment