Skip to main content

Google

Cloud service

Photo

Driver

https://github.com/dsoprea/GDriveFS

pip install gdrivefs
gdfstool auth -u
gdfstool auth -a /var/cache/gdfs.creds "$CODE"

# linux 使用 -o big_writes 可提升速度
gdfs -o allow_other /var/cache/gdfs.creds /mnt/gdrivefs

Voice

brew install sox
# 记录
rec -r 16000 -c 1 record.flac
# 识别
# rate=8000, 16000, 32000 and 44100
# lang=en_US,zh_CN...
wget -q --post-file record.flac --header="Content-Type: audio/x-flac; rate=16000" -O - "https://www.google.com/speech-api/v2/recognize?client=chromium&lang=en_US&key=$GOOGLE_SPEECH_API_KEY"

wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=你好么&tl=zh_CN"
  • 精确匹配 "关键词"
  • 排除 -关键词
  • 关键词1 OR 关键词2
  • 网站 site:example.com
  • 文件类型 filetype:pdf
  • inurl:
  • intitle:
  • intitle:关键词1 关键词2
  • related:example.com
  • 占位符 *
  • 数字范围 ..
  • 缓存版本 cache:example.com
  • 查找链接到特定页面的网站 link:example.com
  • 定义 define:word
  • 翻译 translate:word
  • 货币转换 100 USD to CNY
  • 计算 100 * 2
  • 单位转换 100 cm to inch
  • 时区 time in Beijing
  • 天气 weather in Beijing
  • 股票 GOOG

HN - spinner

Calender