Skip to content

Instantly share code, notes, and snippets.

{"data":[{"id":"01CA8X9RYJ296MYFBE4YW2PP42","organizationId":"01C44G8HJ1X585HBDVWN4792S4","channelId":"01C44H0QH1CERGXX6SQ329YM7V","manufacturer":"Apple","model":"iPhone","os":"iOS","osVersion":"11.2.6","softwareVersion":"ReachSDK-v1.0.0","type":"iOS","sensors":"location,wifi,beacon,power,activity","createdAt":"2018-04-04T18:04:31.058029772Z","updatedAt":"0001-01-01T00:00:00Z"}],"meta":{"totalHits":1}}
------------------------------------ Tests ------------------------------------- ava ipc stats:
{ testCount: 1, hasExclusive: false, file: 'src/lib/analytics/engine/entities-filter-parser.test.js' } +0ms
ava ipc test:
{ duration: 13, title: 'confirm basic filter', error: { message: 'Expected "(" or entity but "p" found.', expected: [ [Object], [Object] ], found: 'p', location: { start: [Object], end: [Object] }, name: 'SyntaxError', stack: 'SyntaxError: Expected "(" or entity but "p" found.\n peg$buildException (eval at <anonymous> (/Users/kaareal/code/new-bottlenose-api/node_modules/pegjs/lib/compiler.js:54:37), <anonymous>:255:14)\n Object.peg$parse [as parse] (eval at <anonymous> (/Users/kaareal/code/new-bottlenose-api/node_modules/pegjs/lib/compiler.js:54:37), <anonymous>:622:13)\n Test.fn (entities-filter-parser.test.js:5:19)\n Test._run (/Users/kaareal/code/new-bottlenose-api/node_modules/ava/lib/test.js:94:14)\n Test.run (/Users/kaareal/code/new-bottlenose-api/node_modules/ava/lib/tes
kaareal@Kaares-MacBook-Pro ~/c/ansible> make bottlenose-api
Git codebase is up-to-date
ansible-playbook -f20 -i inventories/ec2-private --limit "tag_role_bottlenose-api:&tag_environment_staging" playbooks/full-stack.yml
PLAY [tag_role_redis] *********************************************************
skipping: no hosts matched
PLAY [tag_role_redis-sentinel] ************************************************
skipping: no hosts matched
kaareal@Kaares-MacBook-Pro ~/c/ansible> make staging-nervecenter
Git codebase is up-to-date
ansible-playbook -f20 -i inventories/ec2-private --limit "tag_role_nervecenter:&tag_environment_staging" playbooks/full-stack.yml
PLAY [tag_role_redis] *********************************************************
skipping: no hosts matched
PLAY [tag_role_redis-sentinel] ************************************************
skipping: no hosts matched
"entity": {
"id": "Brands||Education||Collegeuniversity||Miami Universityoxford||A27665",
"entityType": "demographics-brands",
"object": {
"id": "Brands||Education||Collegeuniversity||Miami Universityoxford||A27665",
"category": "Education",
"subcategory": "Collegeuniversity",
"type": "Miami Universityoxford",
"name": ""
}
aareal@Kaares-MacBook-Pro ~/c/bottlenose> ssh -vvv 10.66.10.240
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/kaareal/.ssh/config
debug1: /Users/kaareal/.ssh/config line 29: Applying options for 10.66.*
debug1: /Users/kaareal/.ssh/config line 38: Applying options for 10.66.*
debug1: /Users/kaareal/.ssh/config line 44: Applying options for *
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec ssh -A deploy@proxy.nat.staging.iruka.io -W 10.66.10.240:22
kaareal@Kaares-MacBook-Pro ~/c/ansible> make staging-nervecenter
Git codebase is up-to-date
ansible-playbook -f20 -i inventories/ec2-private --limit "tag_role_nervecenter:&tag_environment_staging" playbooks/full-stack.yml
PLAY [tag_role_redis] *********************************************************
skipping: no hosts matched
PLAY [tag_role_redis-sentinel] ************************************************
@kaareal
kaareal / gist:a51b84a8bcf89650aec6
Created September 30, 2014 15:31
Put this in the console and hit enter
(function(){
var save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'client.json';
if(typeof data === "object"){
data = JSON.stringify(data, undefined, 4)
}
@kaareal
kaareal / same-domain-post-message.js
Last active August 29, 2015 14:00
Simple cross window communication using localstorage
(function() {
var storage = window.localStorage;
var browserId = Date.now() + (Math.random() * 1000);
function get(key){
var result = storage.getItem(key);
if (typeof(result) == 'undefined') return result;
return JSON.parse(result);
}
var storage = window.localStorage;
var BrowserId = Date.now() + (Math.random() * 1000);
function get(key){
var result = storage.getItem(key);
if (result typeof undefined) return result;