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
var MongoClient = require('mongodb').MongoClient; | |
var SERVER_OPTIONS = { auto_reconnect: true, poolSize: 4 }; | |
var REPLSET_OPTIONS = { socketOptions: { keepAlive: 1, connectTimeoutMS: 0, socketTimeoutMS: 0 }, ha: true, haInterval: 1000 }; | |
var OPTIONS = { db: { native_parser: false, numberOfRetries: 10 }, server: SERVER_OPTIONS, replSet: REPLSET_OPTIONS }; | |
var current = null; | |
var retryCount = 0; | |
var await = []; |
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
cd /tmp | |
curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz | |
tar -xzf ImageMagick.tar.gz | |
cd ImageMagick-6.8.0-7/ | |
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts | |
make | |
brew uninstall imagemagick | |
make install | |
sudo gem install rmagick |