Skip to content

Instantly share code, notes, and snippets.

Avatar

zhuowei

View GitHub Profile
View crashlog.txt
--- crash at 2022/05/01 21:19:21---
build:7a75bff14545-1.10.0-release.135263-buildbot
r0:00000000 r1:00000000 r2:00030ca0 r3: 00000000
r12:00003fe0 lr:0802f343 pc:0802f354 psr: 21000000
cfsr:00010000 hfsr:40000000 mmfar:00000000 bfar: 00000000
rcccsr:00000000
heap allocated: 63008
Lua totalbytes=0 GCdebt=0 GCestimate=0 stacksize=0
--- crash at 2022/05/01 21:19:53---
@zhuowei
zhuowei / t.py
Created Nov 19, 2021
Proof that the NFT Bay's torrent is mostly zeroes
View t.py
import libtorrent as lt
# usage:
# sudo apt install python3-libtorrent
# wget https://thenftbay.org/billion-dollar-nft-torrent.torrent
# python3 t.py
info = lt.torrent_info("billion-dollar-nft-torrent.torrent")
print("Number of pieces: ", info.num_pieces())
print("dumping piece hashes:")
View softsim.md

SoftSIM across two computers: this doesn't work and I don't know why; can someone help

On the bluetooth computer:

sudo sdptool browse 00:11:22:33:44:55
<snip>
Service Name: SIM Access
Service RecHandle: 0x1000c
Service Class ID List:
View softsim_doesnt_work.txt
zhuowei@faith:~/softsim$ ruby src/demo_client.rb -s tcp -p 23366 --host 192.168.1.13 -t info -v 5
/home/zhuowei/softsim/src/lib/apdu.rb:140: warning: key 28493 is duplicated and overwritten on line 140
"-s"
"-p"
"--host"
"-t"
"-v"
[state] state set to not_connected
[client] connecting
[msg send] < CONNECT_REQ (00)
View strings.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="__external__btn_shutter_desc">Take a photo</string>
<string name="__external__credit_card_permissions_allow">Allow camera access</string>
<string name="__external__credit_card_permissions_deny">"Don't allow camera access"</string>
<string name="__external__credit_card_permissions_explanation">"Then you'll be able to scan your card. You can change this in your settings any time."</string>
<string name="__external__credit_card_permissions_title_fb">Allow Facebook to access your camera</string>
<string name="__external__download_failed_body">"Check your device's network connection and try again."</string>
<string name="__external__download_failed_title">No network connection</string>
<string name="__external__download_retry">Try again</string>
View watch_6_to_7.diff
diff --git a/DT.txt b/../../../../../watch7ota/AssetData/boot/Firmware/all_flash/DTn187sap.txt
index 4cc7323..08f26d9 100755
--- a/DT.txt
+++ b/../../../../../watch7ota/AssetData/boot/Firmware/all_flash/DTn187sap.txt
@@ -4,19 +4,19 @@ device-tree:
AAPL,phandle (4): 0x1
config-number (29): "syscfg/CFG#/0x40,zeroes/0x40"
serial-number (29): "syscfg/SrNm/0x20,zeroes/0x20"
- target-type (6): "N157s"
+ target-type (6): "N187s"
View seppanic.txt
iBoot version: iBoot-7429.40.92.0.5
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 4.1.0: Wed Sep 29 23:41:27 PDT 2021; root:AppleImage4-157.40.10~81/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain
View ipad_pro_to_mac_mini_12b9.patch
diff --git a/SortedJ517DT.txt b/../../../macos12b9/Firmware/all_flash/SortedJ274DT.txt
index dafb4da..50a6d11 100644
--- a/SortedJ517DT.txt
+++ b/../../../macos12b9/Firmware/all_flash/SortedJ274DT.txt
@@ -3,12 +3,12 @@ device-tree:
#size-cells (4): 2
AAPL,phandle (4): 0x1
clock-frequency (4): 0
- compatible (25): "J517AP\0iPad13,4\0AppleARM\0"
+ compatible (27): "J274AP\0Macmini9,1\0AppleARM\0"
View dcp_panic.txt
iBoot version: iBoot-7429.40.68
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 5.0.0: Mon Sep 6 01:31:08 PDT 2021; root:AppleImage4-157.40.6.0.2~68/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain
View gist:7b7a5879de39d3bb1aa48fb77fd18f60
iBoot version: iBoot-7429.40.68
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 5.0.0: Mon Sep 6 01:31:08 PDT 2021; root:AppleImage4-157.40.6.0.2~68/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain