Do you use Github gists as a notebook?
gist () { GISTTMP=$(mktemp -d) && GISTFILE=$(basename $1) && GISTPATH=$(readlink -f $1) GIST_URL=$((echo curl -snk -X POST -d \'{\"files\":{\"$GISTFILE\":{\"content\":\".\"}}}\' https://api.github.com/gists | sh ) | awk -F'"' '/git_pull_url/ { print $4 }' | head -1 ) ( cd $GISTTMP git clone -q $GIST_URL cd $(ls) cat $GISTPATH > $GISTFILE; git add $GISTFILE && git commit -q -a -m "$GISTFILE" && git push -q ) }
I also work with throwaway-VMs, so you may do well rm -rf-ing $GISTTMP when you're done
rm -rf
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Do you use Github gists as a notebook?
I also work with throwaway-VMs, so you may do well
rm -rf
-ing $GISTTMP when you're done