Monthly Shaarli

All links of one month in a single page.

August, 2020

Booting Secure – mikeymikey blogs here
Asus WMI

asus-wmi.c
asus-wmi.h

Enable ALS

ASUS_WMI_DEVID_ALS_ENABLE

Read FAN

ASUS_WMI_DEVID_CPU_FAN_CTRL

CPU Temp

WMI Method: 0x4647574D
0x00020013

Note: Find all executable files that use Sidecar

Command:

find / -perm +111 -type f -exec sh -c 'jtool2 -L "{}" 2>/dev/null | grep SidecarCore && echo "SidecarCore matched at {}"' \; > ~/sidecarfind.txt

Found files:

SidecarCore matched at /usr/libexec/SidecarDisplayAgent
SidecarCore matched at /usr/libexec/SidecarRelay
SidecarCore matched at /System/Library/PreferencePanes/Sidecar.prefPane/Contents/MacOS/Sidecar
SidecarCore matched at /System/Library/PreferencePanes/Sidecar.prefPane/Contents/Resources/sidecarPrefCheck
SidecarCore matched at /System/Library/PrivateFrameworks/AnnotationKit.framework/Versions/A/AnnotationKit
SidecarCore matched at /System/Library/PrivateFrameworks/SidecarCore.framework/Versions/A/XPCServices/DisplayMarkup.xpc/Contents/MacOS/DisplayMarkup
SidecarCore matched at /System/Library/PrivateFrameworks/ReminderKitUI.framework/Versions/A/XPCServices/com.apple.ReminderKitUI.ReminderCreationViewService.xpc/Contents/MacOS/com.apple.ReminderKitUI.ReminderCreationViewService
SidecarCore matched at /System/Library/PrivateFrameworks/MarkupUI.framework/Versions/A/MarkupUI
SidecarCore matched at /System/Library/PrivateFrameworks/SidecarUI.framework/Versions/A/SidecarUI
SidecarCore matched at /System/Applications/Notes.app/Contents/MacOS/Notes
SidecarCore matched at /System/Applications/Mail.app/Contents/MacOS/Mail
SidecarCore matched at /System/Applications/Reminders.app/Contents/MacOS/Reminders
SidecarCore matched at /System/Applications/Reminders.app/Contents/PlugIns/RemindersSharingExtension.appex/Contents/MacOS/RemindersSharingExtension
The Chernobyl Story [Updated & Expanded] - Album on Imgur
IOHIDEventDriver vs AppleUserHIDEventDriver

AppleUserHIDEventDriver source code

IOHIDEventDriver is superseded by AppleUserHIDEventDriver
IOUSBHostHIDDevice is superseded by AppleUserUSBHostHIDDevice

To disable both AppleUserxxx, use boot-args: AppleUserUSBHostHIDDevice-debug=1 AppleUserHIDEventDriver-debug=1

Real Mac Dumps
Random Ponderings: A Brief Overview of Deep Learning
Notes for competitive programming

Some notes for cp training.

E689120's "A way to pratice competitive programming":
https://codeforces.com/blog/entry/66909;
https://drive.google.com/file/d/1J2x8pIYQ3MXANgvzOgBciWd3d79j_Exa/view

A list of competitive programming related things:

Learning sites:

Blogs:

Math sites:

Random sites:

Communities:

Investigating ASUS WMI sensors from PowerShell | maidavale.org
USB Descriptor and Request Parser
Note: A beautiful comment on youtube

The saddest part of life is when that person that gave you the best memories becomes a memory.

Online x86 and x64 Intel Instruction Assembler
Note: macOS ALS/Keyboard Backlight protocol

MacBookPro12,X and older:

  • ALS and Keyboard Backlight is controlled by SMC
  • ALS keys: AL, ALI0, ALI1, ALRV, ALV0, ALV1
  • Keyboard Backlight keys: LKSB, LKSS, MSLD
  • See AsusSMC

Newer MacBook:

  • On Macbook without Touchbar, ALS sensor is called ALS0. IOService is AppleLMUController.
  • On Macbook with Touchbar, ALS sensor is connected via USB. IOService is AppleUSBALSService (com.apple.driver.AppleHIDALSService)
  • Keyboard Backlight seems to be controlled by the keyboard itself. IOService is AppleHIDKeyboardEventDriverV2. It has a property named KeyboardBacklightBrightness
  • There's a boolean property KeyboardBacklight in IOResources.
  • AppleHIDKeyboardEventDriverV2 location: /S/L/E/AppleTopCase.kext/Contents/PlugIns/AppleTopCaseDriverV2.kext
  • AppleUSBALSService location: /S/L/E/AppleHIDALSService.kext
5 Useful Tricks JavaScript has been Hiding from You | by Alexandre Zajac | JavaScript In Plain English | Medium
Dive into Deep Learning

An interactive deep learning book with code, math, and discussions

Provides NumPy/MXNet, PyTorch, and TensorFlow implementations