View aidax-example-identifyUser.js
This file contains 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
// Identify User | |
ax.user({ | |
id: "USER ID", //If the id is an email AIDAX will contextalize the id | |
properties: { | |
property1: "value", | |
property2: "value" | |
}, | |
migrate: true //optional parameter to migrate old user data in this session to the new user. Default is true | |
}); |
View gist:89475f1bc9aff3c504f3bc9e26711a28
This file contains 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
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: Version: rethinkdb 2.3.6-0RC1-5-g4f0bd9 (GCC 4.8.3) | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Error in src/clustering/administration/namespace_interface_repository.cc at line 177: | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Guarantee failed: [cache_entry->ref_count == 0] | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Backtrace: | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: Version: rethinkdb 2.3.6-0RC1-5-g4f0bd9 (GCC 4.8.3) | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Error in src/clustering/administration/namespace_interface_repository.cc at line 177: | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Guarantee failed: [cache_entry->ref_count == 0] | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Backtrace: | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: Version: rethinkdb 2.3.6-0RC1-5-g4f0bd9 (GCC 4.8.3) | |
Jul 14 17:51:33 aidax-rethinkdb-5 rethinkdb[16510]: error: Error in |
View gist:fc17ad35a43a9acebfe34fc50aef203c
This file contains 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
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: Server got SIGTERM from pid 1, uid 0; shutting down... | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: Shutting down client connections... | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: All client connections closed. | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: Shutting down storage engine... (This may take a while if you had a lot of unflushed data in the writeback cache.) | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: pure virtual method called | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: Version: rethinkdb 2.3.5 (GCC 4.8.5) | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: error: Error in src/errors.cc at line 167: | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: error: std::terminate() called without any exception. | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: error: Backtrace: | |
Jun 28 18:31:01 aidax-rethinkdb-1 rethinkdb[1472]: Version: rethinkdb 2.3.5 (GCC 4.8.5) |
View docker-compose.yml
This file contains 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
version: "3.1" | |
services: | |
redis-master-1: | |
build: ./ | |
networks: | |
redisnet: | |
ipv4_address: 10.0.0.2 | |
command: sh -c "redis-server /src/redis.conf --port 7000 --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000" | |
redis-master-2: | |
build: ./ |
View doc.json
This file contains 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
{ | |
"client_id": 46 , | |
"fields": { } , | |
"has_fc": false , | |
"id": "00002462-a899-5deb-86b6-b3467ed1ca4a" , | |
"is_a": true , | |
"special": { | |
"email": "anonymous" , | |
"session_count": 1 , |
View gist:c4dc2d7eef109c36380d86fe27add6c2
This file contains 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
Dec 07 06:24:44 aidax-rethinkdb-2 systemd[1]: Stopping RethinkDB database server for instance 'instance1'... | |
Dec 07 06:24:44 aidax-rethinkdb-2 rethinkdb[5989]: Server got SIGTERM from pid 1, uid 0; shutting down... | |
Dec 07 06:24:44 aidax-rethinkdb-2 rethinkdb[5989]: Shutting down client connections... | |
Dec 07 06:24:44 aidax-rethinkdb-2 rethinkdb[5989]: All client connections closed. | |
Dec 07 06:24:44 aidax-rethinkdb-2 rethinkdb[5989]: Shutting down storage engine... (This may take a while if you had a lot of unflushed data in the writeback cache.) | |
Dec 07 06:25:09 aidax-rethinkdb-2 rethinkdb[5989]: Disconnected from server "aidax_rethinkdb_5_avf" e8b3a46a-fab5-4c99-b4a7-3874ad6cf68d | |
Dec 07 06:25:16 aidax-rethinkdb-2 rethinkdb[5989]: Version: rethinkdb 2.3.5 (GCC 4.8.5) | |
Dec 07 06:25:16 aidax-rethinkdb-2 rethinkdb[5989]: error: Error in src/arch/runtime/thread_pool.cc at line 367: | |
Dec 07 06:25:16 aidax-rethinkdb-2 rethinkdb[5989]: Version: rethinkdb 2.3.5 (GCC 4.8.5) | |
Dec 07 06:25:16 aidax-rethinkdb-2 rethinkdb[5989] |
View ioredis_log
This file contains 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
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:cluster command get is moved to 10.240.100.31:7000 | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:redis write command[0] -> get(id_a:34:😜) | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:cluster getting slot cache from 10.240.21.41:7001 | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:redis status[10.240.21.41:7001]: wait -> connecting | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:redis queue command[0] -> cluster(slots) | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:cluster command get is moved to 10.240.100.31:7000 | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:redis write command[0] -> get(id_a:34:😜) | |
Nov 03 15:15:00 aidax-collector-2 aidax[7708]: Thu, 03 Nov 2016 15:15:00 GMT ioredis:redis status[10.2 |
View form_submit.js
This file contains 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
$('#form_id').submit(function(e) { | |
var form = this; | |
e.preventDefault(); // disable the default submit action | |
ax.identify(email); | |
$(':input', this).attr('disabled', true); // OPTIONAL: disable all elements in the form, to avoid multiple clicks | |
setTimeout(function() { // after 1 second, submit the form | |
form.submit(); |
View eslint.js
This file contains 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
module.exports = { | |
"rules": { | |
"no-console": false, | |
"indent": [ | |
2, | |
4 | |
], | |
"quotes": [ | |
2, | |
"double" |
View get_href.js
This file contains 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 urlencode = function(str) { | |
return encodeURIComponent(str) | |
.replace(/\(/g, '%28') | |
.replace(/\)/g, '%29') | |
.replace(/!/g, '%21') | |
.replace(/\*/g, '%2A') | |
.replace(/~/g, '%7E'); | |
}, | |
getHref = function() { | |
var href = ''; |
NewerOlder