Skip to content

Instantly share code, notes, and snippets.

View iDigitalFlame's full-sized avatar
💻
Hacking the Gibson!

iDigitalFlame iDigitalFlame

💻
Hacking the Gibson!
View GitHub Profile
@iDigitalFlame
iDigitalFlame / os_windows.go
Created January 18, 2023 21:34
Patched Windows runtime for Go1.10.8 to work with MinGW 12.2.0
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runtime
import (
"runtime/internal/atomic"
"unsafe"
)
@iDigitalFlame
iDigitalFlame / reg_poltool.py
Created November 17, 2022 02:56
Registry ".pol" file reader/writer to assist with debugging complex setups
#!/usr/bin/python
from sys import argv
if len(argv) <= 1:
raise ValueError(f"{argv[0]} <Registry.pol> <Output.pol>")
with open(argv[1], "rb") as f:
b = f.read()