python3-Bscripts/build-lab-index.py# rebuild all four indexes
python3-Bscripts/build-lab-index.py--stats# counts, write nothing
python3-Bscripts/build-lab-index.py--verify-links# resolve every emitted link
python3-Bscripts/build-lab-index.py--why<relpath># tags + evidence for one lab
python3-Bscripts/build-lab-index.py--bychapter--out-
python3-Bscripts/build-lab-index.py--bydifficulty--out-
python3-Bscripts/build-lab-index.py--byrequirement--out-
python3-Bscripts/build-lab-index.py--bypath--out-
python3-Bscripts/build-lab-index.py--formatjson--out~/labs.json
python3-Bscripts/build-lab-index.py--formatcsv--out~/labs.csv
python3-Bscripts/lab-env-probe.py# probe only
python3-Bscripts/lab-env-probe.py--match# probe + corpus match
python3-Bscripts/lab-env-probe.py--match--listrunnable
python3-Bscripts/lab-env-probe.py--match--listblocked
python3-Bscripts/lab-env-probe.py--match--chapter53
python3-Bscripts/lab-env-probe.py--match--assumefrida,proxy
python3-Bscripts/lab-env-probe.py--no-device--match
python3-Bscripts/lab-env-probe.py--match--json>~/manifest.json
cdexamples
./build-chain-target.sh# build only, out of tree
./build-chain-target.sh--install
./build-chain-target.sh--target-sdk23# reproduce the install floorOUTDIR=/tmp/x./build-chain-target.sh
./build-chain-target.sh--uninstall
Re-ran a claim, got a different result. Not "they were wrong"
Divergence causes, in descending frequency:
1 vantage · 2 device/version · 3su form · 4 tool version ·
5 a command that succeeded and did nothing · 6 the lab is wrong.
python3-Bscripts/build-lab-index.py--why<lab># header vs derived
python3-Bscripts/build-lab-index.py--verify-links# promised paths
python3-Bscripts/lab-env-probe.py--match--chapterNN# can a reader run it?
python3-B../76-CheatSheets/scripts/lint-commands.py--path.# target: 0 ERROR
find.\(-name'__pycache__'-o-name'*.pyc'-o-name'*.class'\-o-name'*.apk'-o-name'*.dex'-o-name'*.so'-o-name'*.o'\)
# raw C0 control bytes -- must be zeroGet-ChildItem-LiteralPath"73-Labs"-Recurse-File|ForEach-Object{$b=[System.IO.File]::ReadAllBytes($_.FullName)$n=@($b|Where-Object{($_-lt0x20-and$_-notin9,10,13)-or$_-eq0x7F}).Countif($n){"$($_.Name) $n"}}
# BOM -- valid UTF-8, so a decode check will NOT catch itGet-ChildItem-LiteralPath"73-Labs"-Recurse-File-Filter*.md |ForEach-Object{$b=[System.IO.File]::ReadAllBytes($_.FullName)if($b.Length-ge3-and$b[0]-eq0xEF-and$b[1]-eq0xBB-and$b[2]-eq0xBF){"BOM: $($_.Name)"}}