Skip to content

Instantly share code, notes, and snippets.

@native-api
native-api / out.txt
Created May 17, 2021
pyenv shim fallthrough demo
View out.txt
+ program=xz
+ export PYENV_ROOT=/home/vmuser/.pyenv
+ PYENV_ROOT=/home/vmuser/.pyenv
+ exec /home/vmuser/.pyenv/libexec/pyenv exec xz --version
+(/home/vmuser/.pyenv/libexec/pyenv:23): main(): enable -f /home/vmuser/.pyenv/libexec/../libexec/pyenv-realpath.dylib realpath
+(/home/vmuser/.pyenv/libexec/pyenv:30): main(): '[' -z '' ']'
++(/home/vmuser/.pyenv/libexec/pyenv:32): main(): type -P greadlink readlink
++(/home/vmuser/.pyenv/libexec/pyenv:32): main(): head -1
+(/home/vmuser/.pyenv/libexec/pyenv:32): main(): READLINK=/bin/readlink
+(/home/vmuser/.pyenv/libexec/pyenv:33): main(): '[' -n /bin/readlink ']'
@native-api
native-api / msi-registry-keys-utils.py
Created Jan 5, 2017
utility functions to work with Windows Installer registry database
View msi-registry-keys-utils.py
# coding: utf-8
"""
Some utility functions to work with Windows Installer database in registry.
(Worked it out while rebuilding deleted %windir%\Installer)
Terminology used in fn names:
* patchid,productid - corresponding GUIDs as they are used in key names, e.g. CC458296FE7970347B78C876789B0194
* msx/fname - original package file name as it is in HKCR\Installer\SourceList:PackageName
* local - full path to cached file in %windir%\installer
"""