Skip to content

Instantly share code, notes, and snippets.

@bwasti
Created February 11, 2017 02:49
Show Gist options
  • Save bwasti/37d71a654f6612d5a811a66b6ce4b856 to your computer and use it in GitHub Desktop.
Save bwasti/37d71a654f6612d5a811a66b6ce4b856 to your computer and use it in GitHub Desktop.
echo "***** pasted with pastedir *****" > /tmp/_pastedirout
echo "" >> /tmp/_pastedirout
find . -type f -not -path '*/\.*' -exec bash -c 'echo ------ $1 ------ && cat $1' _ {} \; >> /tmp/_pastedirout
curl -s --data code="$(cat /tmp/_pastedirout)" https://api.teknik.io/v1/Paste | sed 's/.*\"url\":\"\([^\"]*\)\".*/\1/g'
@kopax
Copy link

kopax commented Apr 16, 2017

what is it for ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment