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
cd /opt/joola/node_modules/joola | |
pm2 startup ubuntu | |
pm2 stop 0 | |
mongo cache --eval "db.dropDatabase()" | |
redis-cli flushall | |
service mongod stop | |
rm -rf /var/lib/mongodb/journal/* | |
service mongod start | |
service mongod stop |
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 qitem = { | |
"name": "Delete an Application [" + name + "]", | |
"status": "pending", | |
"steps": [ | |
{ | |
"name": "Step 1: Destroy VM [" + name + "]", | |
"recipe": "vm/gce_destroyinstance", | |
"allowFail": true, | |
"args": { | |
"datacenter": datacenter, |
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
{ | |
"name": "Step n: Send email", | |
"recipe": "notify/email", | |
"args":{ | |
"email":"[email protected]", | |
"subject":"testing 123...", | |
"text": "this is a test email content" | |
} | |
} |
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
{ | |
"name": "Create an Application [cnc.joo.la]", | |
"status": "pending", | |
"steps": [ | |
{ | |
"name": "Step 1: Create VM [cnc.joo.la]", | |
"recipe": "vm/create", | |
"args": { | |
"id": "cnc-002", | |
"name": "cnc-002", |
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
{ | |
"name": "Create an Application [node-demo-or]", | |
"status": "pending", | |
"steps": [ | |
{ | |
"name": "Step 1: Create VM [node-demo-or]", | |
"recipe": "vm/gce_addinstance", | |
"args": { | |
"id": "node-demo-or", | |
"name": "node-demo-or", |
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
[submodule "wiki"] | |
path = wiki | |
url = https://github.com/joola/joola.io.wiki.git | |
[submodule "build/cookbooks/nodejs"] | |
path = build/cookbooks/nodejs | |
url = https://github.com/mdxp/nodejs-cookbook.git | |
[submodule "build/cookbooks/apt"] | |
path = build/cookbooks/apt | |
url = https://github.com/opscode-cookbooks/apt.git | |
[submodule "build/cookbooks/build-essential"] |
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
exports.i_do_something = function(options, callback) { | |
var result = 'Here we go.'; | |
return callback(null, result); | |
}; |
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
{ insert: | |
[ { key: | |
{ path: | |
[ { kind: '_stats_usage', | |
name: 1401692725593 } ] }, | |
properties: | |
{ timestamp: | |
{ dateTimeValue: Mon Jun 02 2014 10:05:25 GMT+0300 (IDT), | |
indexed: true }, | |
node: { stringValue: '3evd0zo2z', indexed: true }, |
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
/** | |
Build HISTORY.md from your GitHub Tags and Milestones. | |
Note: Tag and Milestone name/title MUST MATCH! | |
**/ | |
var | |
GitHubApi = require('github'), | |
async = require('async'), | |
fs = require('fs'), |
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
googleapis | |
.discover('analytics', 'v3') | |
.execute(function(err, client) { | |
if (err) { | |
utils.applog('error', {from: "lib/fetch/analytics.js", value: err, reference: "getAnalytics", resource: user_id}); | |
return; | |
} | |
// Array that contains all request | |
var requests_list = [ | |
{metrics: "ga:visits,ga:newVisits,ga:percentNewVisits,ga:newVisits,ga:pageviews,ga:visitBounceRate,ga:pageviewsPerVisit,ga:avgTimeOnSite"}, |