Skip to content

Instantly share code, notes, and snippets.

@tzhvh
tzhvh / cffi.md
Created August 19, 2022 17:15
Running setup.py install for cffi did not run successfully
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
@tzhvh
tzhvh / ensp22H2.md
Last active June 24, 2022 02:48
things i tried before ensp worked again on 22621 aka windows 11 22H2

Getting Hyper-V out of the way

bcdedit /copy {current} /d "Windows Hyper-V disabled"
bcdedit /set {get guid from output of copy command} hypervisorlaunchtype off
restart into it

First error

--------------------------- VirtualBox - Error In supR3HardNtChildPurify --------------------------- <b>supHardenedWinVerifyProcess failed with VERR_SUP_VP_EXE_VS_PROC_NAME_MISMATCH: (rc=-5618)</b>Please try reinstalling VirtualBox.where: supR3HardNtChildPurify what: 5 VERR_SUP_VP_EXE_VS_PROC_NAME_MISMATCH (-5618) - Process Verification Failure: Executable file name and process image name does not match up. --------------------------- OK ---------------------------

@tzhvh
tzhvh / fix_pip.md
Last active May 16, 2022 12:03
Fix pip install path issues
python3 -m pip install --user pipx
python3 -m pipx ensurepath

It might be tempting to just ask to use conda upon encountering these

Defaulting to user installation because normal site-packages is not writeable
@tzhvh
tzhvh / dedoze.md
Created May 10, 2022 16:17
Keep app alive, safe from doze
adb shell
pm grant <package> android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
cmd appops set <package> RUN_IN_BACKGROUND ignore
cmd appops set <package> RUN_ANY_IN_BACKGROUND ignore
cmd appops write-settings