Skip to content

Instantly share code, notes, and snippets.

View vietkute02's full-sized avatar
:octocat:
hard working on video streaming platform

Luu Viet Anh vietkute02

:octocat:
hard working on video streaming platform
  • Thudo jsc
  • Ha Noi, Viet Nam
View GitHub Profile
@vietkute02
vietkute02 / install.sh
Last active August 29, 2015 14:07 — forked from solar/install.sh
#!/usr/local/bin/zsh
version="3.4.4"
priority="30404"
sudo mkdir -p /var/log/zookeeper /usr/local/zookeeper /var/zookeeper
curl -L http://ftp.kddilabs.jp/infosystems/apache/zookeeper/zookeeper-${version}/zookeeper-${version}.tar.gz | tar zx
sudo cp -r zookeeper-${version} /usr/local/zookeeper/${version}
sudo cp ./zookeeper.sh /usr/local/zookeeper/
sudo cp ./zoo.cfg /etc/
// ...
function checkBelongsTo(installationId, userId, cb) {
Installation.findById(installationId, function (err, inst) {
cb(err, !err && inst && inst.userId == userId);
});
}
var ERR_403 = new Error("Forbidden");
ERR_403.status = ERR_403.statusCode = 403;