Skip to content

Instantly share code, notes, and snippets.

@mattn
Created June 25, 2009 14:44
Show Gist options
  • Save mattn/135903 to your computer and use it in GitHub Desktop.
Save mattn/135903 to your computer and use it in GitHub Desktop.
#!/bin/sh
AUTH=`echo \`ppit get wassr.jp\` | sed -n "s/^--- \"password\": '\\([^\"]\\+\\)' \"username\": '\\([^\"]\\+\\)'$/\2:\1/p"`
case $1 in
show)
w3m http://wassr.jp/user/$2
;;
post)
curl -u $AUTH -d status="$2" http://api.wassr.jp/statuses/update.json
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment