Skip to content

Instantly share code, notes, and snippets.

@maxwell2011
maxwell2011 / zig-windows.sh
Created August 5, 2024 03:16 — forked from dimdin/win.zig
zig translate-c windows.h
# https://github.com/Jake-Shadle/xwin
cargo install xwin
# download microsoft sdk in ~/xwin
xwin --accept-license --arch x86_64,aarch64 --variant desktop --sdk-version "10.0.20348" --cache-dir ~/.xwin-cache \
splat --include-debug-libs --include-debug-symbols --preserve-ms-arch-notation --output ~/xwin
# translate to zig
zig translate-c ~/xwin/sdk/include/um/windows.h \
-D UNICODE \
@maxwell2011
maxwell2011 / wincred.py
Created July 29, 2024 14:17 — forked from exhuma/wincred.py
Retrieve Windows Credential via Python
"""
Access windows credentials
Credentials must be stored in the Windows Credentials Manager in the Control
Panel. This helper will search for "generic credentials" under the section
"Windows Credentials"
Example usage::
result = get_generic_credential('foobar')
@maxwell2011
maxwell2011 / automobile.ipynb
Created December 15, 2018 10:22 — forked from martinwicke/automobile.ipynb
Estimator demo using Automobile dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.