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 Logger = require('logger-facade-nodejs'); | |
var LoggerAirbrakePlugin = require('logger-facade-airbrake-plugin'); | |
console.log("Start sample of Async error Log..."); | |
var config = { | |
//api key, default (null) | |
apiKey: "apikey", | |
// host, default (null) | |
host: "api.airbrake.io", |
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 Logger = require('logger-facade-nodejs'); | |
var LoggerConsolePlugin = require('logger-facade-console-plugin-nodejs'); | |
// this is the default config | |
var config = { | |
level: 'debug', | |
timeFormat: 'YYYY-MM-DD HH:mm:ss', | |
messageFormat: '%time | %logger::%level - %msg' | |
}; |
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 compareKeys = function(obj, obj2){ | |
for(var key in obj){ | |
var _obj = obj[key]; | |
var _obj2 = obj2[key]; | |
if(!_obj){ | |
if(_obj2){ | |
console.log("%s: %s => %s", | |
key, _obj, _obj2); |
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
#!/usr/bin/env ruby | |
#usage: analyze.rb REDIS_PORT | |
#produces CSV with stats by key pattern | |
#ex: [foo:bar:123, foo:bar:234] -> foo:bar:ID | |
# development:hari:contest/log_entry#8a0b7edae8b965c9:log:in:contest | |
# development:hari:notification#24d1d025654c71e7:components | |
# development:rex:event#11570:traits | |
require 'rubygems' |
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
require 'redis' | |
module RedisMigrator | |
def self.run | |
from = "production:" | |
to = "development:" | |
start = Time.now | |
NewerOlder