This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hash from 'object-hash'; | |
import sizeof from 'object-sizeof'; | |
import lruCache from 'lru-cache'; | |
const cacheEnabled = true; | |
const cacheMaxAge = 30 * 60 * 1000; | |
const cacheMaxSize = 128 * 1000 * 1000; | |
const getCacheKey = config => hash({ | |
method: config.method, |