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
#!/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
/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
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 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
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
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
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
global | |
maxconn 32768 | |
quiet | |
# Performance turning | |
tune.maxaccept -1 | |
stats socket /tmp/haproxy.sock mode 0666 level admin | |
log 127.0.0.1 local0 notice | |
log 127.0.0.1 local0 debug |
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 | |
cat test.txt | \ | |
convert -background '#44aff7' -fill white -size 250x5000 -trim +repage -font AvantGarde-Book -pointsize 16 caption:@- miff:- |\ | |
#convert -background blue \ | |
# -size $((`identify -format %w test_tmp.png` + 20))x$((`identify -format %h test_tmp.png` + 20)) \ | |
# xc: test_tmp.png -flatten test.png | |
convert - -bordercolor '#44aff7' -border 10x10 test.png |