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 amqp = require('amqplib'); | |
var url = 'amqp://localhost'; | |
var WORK_QUEUE_NAME = 'work.queue'; | |
var WORK_EXCHANGE_NAME = 'work.exchange'; | |
var DEAD_QUEUE_NAME = 'dead.work.queue'; | |
var DEAD_EXCHANGE_NAME = 'dead.work.exchange'; | |
var MAX_RETRY_COUNT = 3; |
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
#!/bin/bash | |
#TEMP_DIR="$(dirname $(mktemp -u))""/" | |
TEMP_DIR=$(mktemp -u) | |
DEFAULT_REDIS_VERSION="3.2.6" | |
DEFAULT_PORT="6379" | |
DEFAULT_PID_DIR="/var/run" | |
# Version to 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
const fs = require('fs'); | |
const RegExp_escape = function(s) { | |
return (s ? s + '' : '').replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); | |
}; | |
/** | |
* @prop {Object} options - Options Object or String if Filename | |
* @param {String} filename - File name | |
* @param {String} dir - Directory to look for filename pattern |