Skip to content

Instantly share code, notes, and snippets.

Kaare kaareal

  • Amsterdam
Block or report user

Report or block kaareal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:008342749c06bc84cb2dc37021395d99
{"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}}
View gist:0d05923a403b14c758eedff6f515ca5f
------------------------------------ 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
View gist:a58988b033546344b9e5
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
View gist:79470fa19205a35fbc06
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
View gist:9b6960e1eb9a51dc5444
"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": ""
}
View gist:a2eabc0996693bfbf1ff
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
View gist:b1bc20b0fb540d84c685
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 Sep 30, 2014
Put this in the console and hit enter
View gist:a51b84a8bcf89650aec6
(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 Aug 29, 2015
Simple cross window communication using localstorage
View same-domain-post-message.js
(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);
}
View gist:21dc315126235c535db4
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;
You can’t perform that action at this time.