Skip to content

Instantly share code, notes, and snippets.

View andrew-aladev's full-sized avatar
🐻

Andrew Aladjev andrew-aladev

🐻
View GitHub Profile
01-06 18:22:38.458 11616 11664 I jxcore-log: # setup
01-06 18:22:38.458 11616 11664 I jxcore-log:
01-06 18:22:39.567 11616 11664 I jxcore-log: # network changes emitted correctly
01-06 18:22:39.567 11616 11664 I jxcore-log:
01-06 18:22:40.761 11616 11664 I jxcore-log: 2017-01-06 15:22:40 - DEBUG thaliMobileNativeWrapper: 'listening 49422'
01-06 18:22:40.761 11616 11664 I jxcore-log:
01-06 18:22:40.764 11616 11664 I jxcore-log: 2017-01-06 15:22:40 - DEBUG createNativeListener: 'Creating Native Server'
01-06 18:22:40.764 11616 11664 I jxcore-log:
01-06 18:22:40.766 11616 11664 I jxcore-log: 2017-01-06 15:22:40 - DEBUG createNativeListener: 'listening 47698'
01-06 18:22:40.766 11616 11664 I jxcore-log:
@andrew-aladev
andrew-aladev / build.sh
Created December 13, 2016 14:14
jxcore build
#!/bin/sh
export ANDROID_NDK=$1
export TOOLCHAIN=$PWD/android-toolchain-arm
export PATH=$TOOLCHAIN/bin:$PATH
export AR=arm-linux-androideabi-ar
export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++
export LINK=arm-linux-androideabi-g++
12-12 18:18:35.941 12232 12298 I jxcore-log: 2016-12-12 15:18:35 - DEBUG thaliReplicationPeerAction: 'We called _complete with error: socket hang up -1, id: 7, stack: $0n@http.js:1101:8
12-12 18:18:35.941 12232 12298 I jxcore-log: $0W@http.js:1150:18
12-12 18:18:35.941 12232 12298 I jxcore-log: emit@events.js:98:1
12-12 18:18:35.941 12232 12298 I jxcore-log: $U.prototype.destroy/<@tls.js:644:1
12-12 18:18:35.941 12232 12298 I jxcore-log: $0a@node.js:924:1
12-12 18:18:35.941 12232 12298 I jxcore-log: but we are already killed and so we ignored it'
12-12 18:18:35.941 12232 12298 I jxcore-log:
12-12 18:18:35.942 12232 12298 I jxcore-log: 2016-12-12 15:18:35 - ERROR TestsProcess: 'uncaught promise rejection, error: 'Error: socket hang up -1', id: '7', stack: '$0n@http.js:1101:8
12-12 18:18:35.942 12232 12298 I jxcore-log: $0W@http.js:1150:18
12-12 18:18:35.942 12232 12298 I jxcore-log: emit@events.js:98:1
2016-11-17 11:05:53 - DEBUG thaliWifiInfrastructure: 'Emitting wifiPeerAvailabilityChanged {"peerIdentifier":"urn:uuid:343afb46-edcf-4aa5-a851-d024733c16e4","hostAddress":"127.0.0.1","portNumber":63605}'
ololo connect, port: 63605
ololo connect, address: 127.0.0.1, port: 63605, id: 15
ololo uv__connect 127.0.0.1:63605
ololo received afterConnect, destroyed: false, status: 0, errno: EOF, address: 127.0.0.1, port: 63605, id: 15
2016-11-17 11:05:53 - DEBUG thaliWifiInfrastructure: 'Emitting wifiPeerAvailabilityChanged {"peerIdentifier":"urn:uuid:343afb46-edcf-4aa5-a851-d024733c16e4","hostAddress":"127.0.0.1","portNumber":63605}'
2016-11-17 11:05:54 - DEBUG thaliWifiInfrastructure: 'Emitting wifiPeerAvailabilityChanged {"peerIdentifier":"urn:uuid:51353ce8-980b-4417-9e77-fa88d17a4c0f","hostAddress":"127.0.0.1","portNumber":63605}'
2016-11-17 11:05:54 - DEBUG thaliWifiInfrastructure: 'Emitting wifiPeerAvailabilityChanged {"peerIdentifier":"urn:uuid:51353ce8-980b-4417-9e77-fa88d17a4c0f","hostAddress":"127.0.0.1","po
@andrew-aladev
andrew-aladev / make.sh
Last active November 8, 2016 14:51
view source of uv_shutdown method
g++ -E '-D_DARWIN_USE_64_BIT_INODE=1' '-DNODE_WANT_INTERNALS=1' '-DARCH="x64"' '-DPLATFORM="mac"' '-DNODE_V8_OPTIONS=""' '-DHAVE_OPENSSL=1' '-DJS_ENGINE_V8=1' '-DV8_IS_3_14=1' '-DHAVE_DTRACE=1' '-DJXCORE_EMBEDS_SQLITE' '-D__POSIX__' '-DPLATFORM="darwin"' '-DOPENSSL_NO_SSL2' '-DOPENSSL_NO_HEARTBEATS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' -I./src -I./src/wrappers -I./tools/msvs/genfiles -I./deps/uv/src/ares -I/Users/hiqouser/workspace/jxcore/out/Release/obj/gen -I./deps/openssl/openssl/include -I./deps/v8/include -I./deps/sqlite -I. -I./deps/zlib -I./deps/http_parser -I./deps/cares/include -I./deps/uv/include src/wrappers/stream_wrap.cc
#!/bin/sh
dir=$(pwd)
pkg="com.example.ThaliTestApp"
activity="$pkg/.MainActivity"
devices=("ENU7N16425000183" "ENU7N16425000206")
function command {
for device in "${devices[@]}"
@andrew-aladev
andrew-aladev / log.txt
Created November 1, 2016 17:32
This socket is closed.
2016-11-01 17:20:56 - DEBUG thaliWifiInfrastructure: 'Emiting wifiPeerAvailabilityChanged {"peerIdentifier":"urn:uuid:40baf507-afa8-42b6-b9bd-be0adb7787af","hostAddress":"127.0.0.1","portNumber":49275}'
2016-11-01 17:20:56 - DEBUG thaliMobileNativeWrapper: 'Received peerAvailabilityChanged event from native layer [{"peerIdentifier":"urn:uuid:40baf507-afa8-42b6-b9bd-be0adb7787af","peerAvailable":true,"pleaseConn
ect":false}]'
2016-11-01 17:20:56 - DEBUG thaliMobileNativeWrapper: 'Received peer availability changed event with {"peerIdentifier":"urn:uuid:40baf507-afa8-42b6-b9bd-be0adb7787af","peerAvailable":true,"pleaseConnect":false}'
2016-11-01 17:20:56 - DEBUG createPeerListener: 'creating new server for urn:uuid:40baf507-afa8-42b6-b9bd-be0adb7787af'
2016-11-01 17:20:56 - DEBUG createPeerListener: 'Node TCP/IP listener (server) for urn:uuid:40baf507-afa8-42b6-b9bd-be0adb7787af listening on 49277'
2016-11-01 17:20:56 - DEBUG createPeerListener: 'pleaseConnect= false'
2016-11-01 17:20:56 - DEBUG thaliMobileNati
@andrew-aladev
andrew-aladev / log1
Last active October 31, 2016 11:14
master_yarong_1446
10-31 14:06:44.438 30896 30943 W jxcore-log: Initializing JXcore engine
10-31 14:06:44.438 30896 30943 W jxcore-log: JXcore engine is ready
10-31 14:06:44.497 30896 30943 W jxcore-log: Starting JXcore engine
10-31 14:06:44.553 30896 30943 W jxcore-log: Platform android
10-31 14:06:44.553 30896 30943 W jxcore-log:
10-31 14:06:44.553 30896 30943 W jxcore-log: Process ARCH arm
10-31 14:06:44.553 30896 30943 W jxcore-log:
10-31 14:06:44.684 30896 30943 I jxcore-log: JXcore Cordova bridge is ready!
10-31 14:06:44.684 30896 30943 I jxcore-log:
10-31 14:06:44.684 30896 30943 W jxcore-log: JXcore engine is started
@andrew-aladev
andrew-aladev / gist:3ef6481e3c9e94201e4571adf593b575
Created October 26, 2016 09:39
Upload cordova project to nexus phones
#!/bin/sh
dir=$(pwd)
# cd ../ThaliTest
cordova build android --release --device
apk="./platforms/android/build/outputs/apk/android-release-unsigned.apk"
/usr/local/opt/android-sdk/build-tools/24.0.3/apksigner sign --ks ~/Documents/adb-release-key.jks --ks-pass="pass:123456" $apk
adb -s ENU7N15B26000497 install -r $apk &
@andrew-aladev
andrew-aladev / app.js
Last active October 25, 2016 14:50
ssdp test
"use strict";
process
.once('uncaughtException', function (error) {
console.error(
'uncaught exception, error: \'%s\', stack: \'%s\'',
error.toString(), error.stack
);
process.exit(1);
})