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
storage: | |
dbPath: "/ssd/db/wt_zlib" | |
engine: "wiredTiger" | |
wiredTiger: | |
collectionConfig: "block_compressor=zlib" | |
systemLog: | |
destination: file | |
path: "/data/wt_zlib/mongodb.log" | |
processManagement: | |
fork: true |
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
/* Useful celery config. | |
app = Celery('tasks', | |
broker='redis://localhost:6379', | |
backend='redis://localhost:6379') | |
app.conf.update( | |
CELERY_TASK_RESULT_EXPIRES=3600, | |
CELERY_QUEUES=( | |
Queue('default', routing_key='tasks.#'), |
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
/* | |
* Here is a sketch that "graphs" the accelerometer and gyroscope data coming from | |
* the Pololu L3G and LSM303 libraries--by rapidly outputting graphically-arranged | |
* strings to the Arduino serial monitor. It's much easier than strings of numbers | |
* to look at and tell whether your sensors are working properly. | |
*/ | |
#include <Wire.h> | |
#include <String.h> | |
#include <L3G.h> |
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 DataSift = require('/path/to/datasift.js'); //When downloading datasift.js | |
var DataSift = require('datasift'); //When using npm installation | |
//Create a new instance of the DataSift consumer | |
var consumer = new DataSift('username', 'api_key'); | |
//Connect | |
consumer.connect(); | |
//Emitted when stream is connected |