The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
var express = require('express'); | |
var app = express.createServer(); | |
require('./settings').boot(app); | |
app.dynamicHelpers({ | |
base: function(){ | |
// return the app's mount-point | |
// so that urls can adjust. For example | |
// if you run this example /post/add works |
curl -Lo- http://bit.ly/janus-bootstrap | bash | |
#errored out...had to install git first, derrr | |
sudo apt-get install git | |
curl -Lo- http://bit.ly/janus-bootstrap | bash | |
# error! had to install rake next | |
sudo apt-get install rake | |
curl -Lo- http://bit.ly/janus-bootstrap | bash |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
// Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast) | |
(function poll(){ | |
$.ajax({ url: "server", success: function(data){ | |
//Update your dashboard gauge | |
salesGauge.setValue(data.value); | |
}, dataType: "json", complete: poll, timeout: 30000 }); | |
})(); |
var winston = require('winston'); | |
var fs = require('fs'); | |
fs.mkdir('./logs', function(err) { | |
if (err) throw err; | |
}); | |
// Define levels to be like log4j in java | |
var customLevels = { | |
levels: { |
Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.
Terminology:
#! /bin/sh | |
# | |
# /etc/rc.d/init.d/logstash | |
# | |
# Starts Logstash as a daemon | |
# | |
# chkconfig: 2345 20 80 | |
# description: Starts Logstash as a daemon | |
### BEGIN INIT INFO |