Skip to content

Instantly share code, notes, and snippets.

View yaronyg's full-sized avatar

Yaron Y Goland yaronyg

View GitHub Profile
@yaronyg
yaronyg / arm.json
Created December 22, 2017 00:30
Creating an Azure Cosmos DB Table API table using ARM
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"apiVersion": "2015-04-08",
"kind": "GlobalDocumentDB",
"type": "Microsoft.DocumentDb/databaseAccounts",
"name": *insert account name here*,
"location": *insert write location name here*,
# We have to use 16.10 because Bill Berry told me the version of CMAKE in 16.04 makes IoT Edge unhappy
FROM ubuntu:16.10
ENV INITSYSTEM=on
# Update image
RUN apt-get update
RUN apt-get install -y curl build-essential libcurl4-openssl-dev git cmake pkg-config libssl-dev uuid-dev valgrind jq libglib2.0-dev libtool autoconf autogen vim
# For .net core 1.1.1
@yaronyg
yaronyg / cntk_python_build.md
Created March 2, 2017 22:03
The commands I used to create my python environment for CNTK

I followed the instructions in https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-on-Linux up to the section on opitonally adding Python (in my case I didn't do anything with CUDA). Please see Bug 1547 which had a small fix to the boost install instructions. Also note that these instructions are based on the changes I had to make to the CNTK instructions as outlined in Bug 1553.

# Make sure you followed the clone instructions at the end of https://github.com/Microsoft/CNTK/wiki/Setup-CNTK-on-Linux so we get Multiverso, honestly, we should have been able to just use --recursive on the initial clone

# Update the repo
cd CNTK
git pull # There were updates since last I sync'd
cd Source/Multiverso
git fetch # There wasn't anything new
Yarons-MacBook-Pro:TestServer yarongoland$ jx index.js \{\"devices\":\{\"ios\":0,\"android\":2\}\}
2016-12-07 19:13:50 - INFO HttpServer: 'listening on *:3000'
2016-12-07 19:14:54 - DEBUG HttpServer: 'device presented, name: 'HTC-HTC One M9', uuid: 'ebe26767-f52d-4370-9740-2d6c07a2df80', platformName: 'android', type: 'unittest', hasRequiredHardware: 'true', nativeUTFailed: 'false''
2016-12-07 19:14:54 - DEBUG TestFramework: 'device added, name: 'HTC-HTC One M9''
2016-12-07 19:15:43 - DEBUG HttpServer: 'device presented, name: 'motorola-Nexus 6', uuid: 'a8b4fef5-bd10-409c-b438-9ca744b998f1', platformName: 'android', type: 'unittest', hasRequiredHardware: 'true', nativeUTFailed: 'false''
2016-12-07 19:15:43 - DEBUG TestFramework: 'device added, name: 'motorola-Nexus 6''
2016-12-07 19:15:43 - INFO TestFramework: 'all required 2 devices are present for platformName: 'android''
2016-12-07 19:15:43 - DEBUG UnitTestFramework: 'starting unit tests on 2 devices, platformName: 'android''
2016-12-07 19:15:43 - DEBUG Un
12-07 11:15:26.135 com.test.thalitest 8451 8504 W jxcore-log Initializing JXcore engine
12-07 11:15:26.135 com.test.thalitest 8451 8504 W jxcore-log JXcore engine is ready
12-07 11:15:26.200 com.test.thalitest 8451 8504 W jxcore-log Starting JXcore engine
12-07 11:15:26.279 com.test.thalitest 8451 8504 W jxcore-log Platform android
12-07 11:15:26.279 com.test.thalitest 8451 8504 W jxcore-log
12-07 11:15:26.280 com.test.thalitest 8451 8504 W jxcore-log Process ARCH arm
12-07 11:15:26.280 com.test.thalitest 8451 8504 W jxcore-log
12-07 11:15:26.668 com.test.thalitest 8451 8504 I jxcore-log JXcore Cordova bridge is ready!
12-07 11:15:26.668 com.test.thalitest 8451 8504 I jxcore-log
12-07 11:15:26.668 com.test.thalitest 8451 8504 W jxcore-log JXcore engine is started
This file has been truncated, but you can view the full file.
12-07 11:14:38.888 com.test.thalitest 1613 1705 W jxcore-log Initializing JXcore engine
12-07 11:14:38.888 com.test.thalitest 1613 1705 W jxcore-log JXcore engine is ready
12-07 11:14:38.928 com.test.thalitest 1613 1705 W jxcore-log Starting JXcore engine
12-07 11:14:38.990 com.test.thalitest 1613 1705 W jxcore-log Platform android
12-07 11:14:38.990 com.test.thalitest 1613 1705 W jxcore-log
12-07 11:14:38.990 com.test.thalitest 1613 1705 W jxcore-log Process ARCH arm
12-07 11:14:38.990 com.test.thalitest 1613 1705 W jxcore-log
12-07 11:14:39.249 com.test.thalitest 1613 1705 I jxcore-log JXcore Cordova bridge is ready!
12-07 11:14:39.249 com.test.thalitest 1613 1705 I jxcore-log
12-07 11:14:39.249 com.test.thalitest 1613 1705 W jxcore-log JXcore engine is started
Yarons-MacBook-Pro:TestServer yarongoland$ jx index.js \{\"devices\":\{\"ios\":0,\"android\":2\}\}
2016-12-07 00:45:41 - INFO HttpServer: 'listening on *:3000'
2016-12-07 00:45:42 - DEBUG HttpServer: 'device presented, name: 'motorola-Nexus 6', uuid: 'ad3597f2-8556-4639-8907-13fcf1fa7443', platformName: 'android', type: 'unittest', hasRequiredHardware: 'true', nativeUTFailed: 'false''
2016-12-07 00:45:42 - DEBUG TestFramework: 'device added, name: 'motorola-Nexus 6''
2016-12-07 00:46:33 - DEBUG HttpServer: 'device presented, name: 'HTC-HTC One M9', uuid: '02b1c2b6-ca5e-4612-a8bc-6a7be598b7bf', platformName: 'android', type: 'unittest', hasRequiredHardware: 'true', nativeUTFailed: 'false''
2016-12-07 00:46:33 - DEBUG TestFramework: 'device added, name: 'HTC-HTC One M9''
2016-12-07 00:46:33 - INFO TestFramework: 'all required 2 devices are present for platformName: 'android''
2016-12-07 00:46:33 - DEBUG UnitTestFramework: 'starting unit tests on 2 devices, platformName: 'android''
2016-12-07 00:46:33 - DEBUG Un
12-06 16:45:24.271 com.test.thalitest 24421 24478 W jxcore-log Initializing JXcore engine
12-06 16:45:24.271 com.test.thalitest 24421 24478 W jxcore-log JXcore engine is ready
12-06 16:45:24.319 com.test.thalitest 24421 24478 W jxcore-log Starting JXcore engine
12-06 16:45:24.398 com.test.thalitest 24421 24478 W jxcore-log Platform android
12-06 16:45:24.398 com.test.thalitest 24421 24478 W jxcore-log
12-06 16:45:24.398 com.test.thalitest 24421 24478 W jxcore-log Process ARCH arm
12-06 16:45:24.398 com.test.thalitest 24421 24478 W jxcore-log
12-06 16:45:24.825 com.test.thalitest 24421 24478 I jxcore-log JXcore Cordova bridge is ready!
12-06 16:45:24.825 com.test.thalitest 24421 24478 I jxcore-log
12-06 16:45:24.825 com.test.thalitest 24421 24478 W jxcore-log JXcore engine is started
12-06 16:44:41.838 com.test.thalitest 13252 13310 W jxcore-log Initializing JXcore engine
12-06 16:44:41.838 com.test.thalitest 13252 13310 W jxcore-log JXcore engine is ready
12-06 16:44:41.901 com.test.thalitest 13252 13310 W jxcore-log Starting JXcore engine
12-06 16:44:42.047 com.test.thalitest 13252 13310 W jxcore-log Platform android
12-06 16:44:42.047 com.test.thalitest 13252 13310 W jxcore-log
12-06 16:44:42.047 com.test.thalitest 13252 13310 W jxcore-log Process ARCH arm
12-06 16:44:42.047 com.test.thalitest 13252 13310 W jxcore-log
12-06 16:44:42.434 com.test.thalitest 13252 13310 I jxcore-log JXcore Cordova bridge is ready!
12-06 16:44:42.434 com.test.thalitest 13252 13310 I jxcore-log
12-06 16:44:42.434 com.test.thalitest 13252 13310 W jxcore-log JXcore engine is started
@yaronyg
yaronyg / gist:08cb9b49b7cc866dfd114d9b37bb4ceb
Created December 2, 2016 23:26
HTC One M9 - 1596 - Test Write - Failed test
This file has been truncated, but you can view the full file.
12-02 15:04:06.072 /system/bin/wpa_supplicant 2797 - D wpa_supplicant wlan0: Event SCAN_STARTED (47) received
12-02 15:04:06.072 /system/bin/wpa_supplicant 2797 - D wpa_supplicant wlan0: Own scan request started a scan in 0.000667 seconds
12-02 15:04:06.088 system_server 1192 17125 D HtcWifiDataStallTracker mIsWifiConnected true mIsDhcpActive false supplicantStateCOMPLETED mOldWifiDisplayStatus 0mIsRoutingComplete true
12-02 15:04:06.270 /system/bin/wpa_supplicant 2797 - D wpa_supplicant nl80211: Ignored event (cmd=34) for foreign interface (ifindex 5 wdev 0x0)
12-02 15:04:06.270 /system/bin/wpa_supplicant 2797 - D wpa_supplicant nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
12-02 15:04:06.270 /system/bin/wpa_supplicant 2797 - D wpa_supplicant wlan0: nl80211: New scan results available
12-02 15:04:06.270 /system/bin/wpa_supplicant 2797 - D wpa_supplicant nl80211: Scan probed for SSID ''
12-02 15:04:06.270 /system/bin/wpa_supplicant 2797 - D wpa_supplicant nl80211: Scan