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
curl -XDELETE 'http://localhost:9200/_all/' |
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
#Figure 1 | |
### Before we get started | |
- We will be using our `localhost` with default configuration and settings. | |
- We will be running the `master` (stable) branch. | |
- We will be using MongoDB as our datastore with default configuration. | |
- We will be using the demo APIToken `apitoken-demo`. | |
###Installing Joola | |
```bash |
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 express = require('express'); | |
var useragent = require('useragent'); | |
var app = express(); | |
useragent(true); | |
app.use(function (req, res, next) { | |
var agent = useragent.parse(req.headers['user-agent']); | |
req.joola_event = { | |
timestamp: new Date(), |
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 r = require('rethinkdb'); | |
var i = 0; | |
var document = { | |
timestamp: new Date(), | |
username: 'username', | |
value: 123 | |
}; | |
r.connect(function (err, conn) { | |
var i = 0; | |
while (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
r.db('joola').table('reads').filter(r.row('timestamp').during(r.time(2010,1,1,'Z'), r.time(2015,1,1,'Z'))).group('workspace', 'username').sum('readCount'); |
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
sudo docker run --rm -v /var/run/docker.sock:/var/run/docker.sock bobrik/image-cleaner |
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
joola.init({ | |
host: 'https://itay-playground.app.joo.la:443', | |
APIToken: 'DWyrb8NOmvdP2BwzaBU9gl1u4TVU4b1a' | |
}, function (err, ref) { | |
console.log('Joola initialized, version ', joola.VERSION); | |
//hook mouse moves | |
var pointindex = 0; | |
var movestack = []; | |
document.body.onmousemove = function (e) { |
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
### Keybase proof | |
I hereby claim: | |
* I am itayw on github. | |
* I am itayw (https://keybase.io/itayw) on keybase. | |
* I have a public key whose fingerprint is 9ABA B6B8 78FC 6D4D B4AF 123B 5B6F 3DAB D769 0BE2 | |
To claim this, I am signing this object: |
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
http://www.paletton.com/#uid=73r0u0kqEnjhFuQmqqXt+j7BXdU | |
http://www.cssmatic.com/gradient-generator#'\-moz\-linear\-gradient\%28top\%2C\%20rgba\%2857\%2C71\%2C147\%2C1\%29\%200\%25\%2C\%20rgba\%2857\%2C71\%2C147\%2C0\.8\%29\%20100\%25\%29\%3B' |
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 app = { | |
"name": "Create Application [" + boxname + "]", | |
"status": "pending", | |
"steps": [ | |
{ | |
"name": "Step 1: Create VM [" + boxname + "]", | |
"recipe": "vm/gce_addinstance", | |
"args": { | |
"id": boxname, | |
"name": boxname, |