This file contains hidden or 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
module.exports = { | |
'link test': function (browser) { | |
var linkCount = 0; | |
var processed = 0; | |
var baseUrl = 'http://www.directvdeals.com'; | |
function processLinks(iteration) { |
This file contains hidden or 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
Show hidden characters
{ | |
"requireCurlyBraces": [ | |
// "if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" | |
], |
This file contains hidden or 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 nsq = require('nsq.js'); | |
var reader = nsq.reader({ | |
// nsqlookupd: ['localhost:4161'], | |
nsqd: ['localhost:4150'], | |
topic: 'events', | |
channel: 'ingestion', | |
maxInFlight: 250 | |
}); |
This file contains hidden or 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 MyModule = {}; | |
// AMD support | |
if (typeof define === 'function' && define.amd) { | |
define(function () { return MyModule}); | |
// CommonJS and Node.js module support. | |
} else if (typeof exports !== 'undefined') { | |
// Support Node.js specific `module.exports` (which can be a function) | |
if (typeof module !== 'undefined' && module.exports) { | |
exports = module.exports = MyModule; |
This file contains hidden or 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
func (w *Worker) LogFailedMessage(msg *nsq.Message) { | |
log.Debug("❨╯°□°❩╯︵ %s", msg.Body) | |
} |
This file contains hidden or 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/log/appname/*.log { | |
compress | |
copytruncate | |
daily | |
rotate 3 | |
size 10M | |
} |
This file contains hidden or 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 | |
# this needs to run inside of npm/npm-registry-couchapp | |
# https://github.com/npm/npm-registry-couchapp | |
HOST=http://localhost:5984 | |
USER=npm | |
PASS=yourmomma | |
FULLHOST=http://$USER:$PASS@localhost:5984 |
This file contains hidden or 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 | |
# very helpful page for getting this going | |
# http://www.everyhaironyourhead.com/installing-couchdb-1-5-on-amazon-linux/ | |
#enable epel repo first yo! | |
sudo yum install gcc gcc-c++ libtool libicu-devel openssl-devel autoconf-archive erlang python27 python-sphinx help2man js-devel | |
# install spidermonkey from mozilla for faster version | |
# we skipp this since I couldn't get couch to work. need to revisit |
This file contains hidden or 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
# enable epel repo | |
# install couchdb | |
sudo yum install couchdb | |
# create the ini file | |
echo "[httpd] | |
bind_address = 0.0.0.0 | |
[couch_httpd_auth] |
This file contains hidden or 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 | |
PORT=443 | |
iptables -I INPUT -p tcp --dport $PORT --syn -j DROP | |
sleep 1 | |
service haproxy restart | |
iptables -D INPUT -p tcp --dport $PORT --syn -j DROP |