Category: Coding

Onedrivecmd 0.1.4: 加速上传下载

考虑到大部分人在服务器上用: 上传复用session:之前可以明显看见每段(60MB,API死限制)上传后会有3~5秒的掉速;现在掉速只有1~2秒 下载块变成10M:希望可以加快下载。当然想快 用新的direct命令搞出直链用aria2/axel拖就是。 https://github.com/cnbeining/onedrivecmd 老地方。

onedrivecmd: Yet another Onedrive command-line client for Linux and OSX / Onedrive的命令行工具

https://github.com/cnbeining/onedrivecmd   又撸了一个东西玩。 MS经常给EDU邮箱,但是Linux下没有工具,也就是说有巨大备份需求的大户反而跑不了。 按megacmd,照猫画虎,撸一个这玩意。 MS的SDK挺难用的,文档挺语焉不详的。但是幸好没遇到什么很大的需要debug的东西。 老样子,欢迎PR。 AGPL,麻烦想偷的自己琢磨琢磨先。

Things to read in the free time

Speech side: Audio Segmenting: http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0144610#sec008 Then run FFMpeg with -s and -t with subprocess Google Speech API: https://cloud.google.com/speech/reference/rest/v1beta1/speech/syncrecognize curl ‘https://speech.googleapis.com/v1beta1/speech:syncrecognize?key=AIzaSyBmmqjUsStJat65IP7KgKuH2cz6rRvlIr8’ -H ‘Referer: https://cloud.google.com/’ -H ‘Origin: https://cloud.google.com’ -H ‘User-Agent: Mozilla/5.0 (Macintosh; Intel… Read more »

Acfun自动老司机:自动按正则回复私信

有人提议,我就写个。 老规矩,GPLv2,自己测试,风险自担。   https://gist.github.com/cnbeining/b77a4f5762a78fb3878c   #!/usr/bin/env python #coding:utf-8 # Author: Beining –<i@cnbeining.com> # Purpose: Auto reply Acfun’s msg # Created: 01/05/2016 # License: GPLv2 import sys import unittest import requests… Read more »