Skip to content

Instantly share code, notes, and snippets.

View pjutard's full-sized avatar

Pato Jutard pjutard

  • Tactivos
  • Buenos Aires
View GitHub Profile
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 = [];
@pjutard
pjutard / gist:4226635
Created December 6, 2012 18:08 — forked from johnnyhalife/gist:4226524
install imagemagick
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