I use this bash function to achieve something similar using the existing (and much larger) database commandlinefu.com:
howdoi() { curl "http://www.commandlinefu.com/commands/matching/$(echo "$@" | sed 's/ /-/g')/$(echo -n $@ | base64)/plaintext"; }