Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac
| #!/usr/bin/env python3 | |
| """ reads and parses sensor data from ypyt cloud for given device token """ | |
| # see https://github.com/xoseperez/espurna/issues/1644 for more context | |
| import json | |
| import os | |
| import sys | |
| import paho.mqtt.client as mqtt | |
| import time as t |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
| const outputPath = "C::\\put_your_path\\syscall.csv"; | |
| var module = Process.getModuleByName("ntdll.dll"); | |
| var symbols = module.enumerateExports(); | |
| var csvString = "Name,Number\n"; | |
| for (var i = 0; i < symbols.length; i++) { | |
| const sysName = symbols[i].name; | |
| if (sysName.indexOf("Nt") == 0 && sysName.indexOf("Ntdll") == -1) { | |
| const symAddr = symbols[i].address; |