Skip to content

Instantly share code, notes, and snippets.

@dzfl
Created November 29, 2008 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzfl/30227 to your computer and use it in GitHub Desktop.
Save dzfl/30227 to your computer and use it in GitHub Desktop.
preexec() {
if [ ${1} ]; then
key=`ruby -rubygems -e 'require "pit";print Pit.get("outputz.com")["key"]'`
curl -s http://outputz.com/api/post -F key=${key} -F uri=http://zsh.localhost/ -F size=${#1} >/dev/null
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment