Skip to content

Instantly share code, notes, and snippets.

@startergo
startergo / # libangle - 2025-03-11_07-19-11.txt
Created March 11, 2025 12:08
libangle (libangle) on macOS 15.3 - Homebrew build logs
Homebrew build logs for libangle on macOS 15.3
Build date: 2025-03-11 07:19:11
@startergo
startergo / debugging_qemu.md
Created January 24, 2025 03:51
Debugging a crashing QEMU session on a Windows host

1.Enable Debugging in QEMU: Start QEMU with debugging options enabled. You can use the -s and -S options to start QEMU in a paused state and listen for a debugger connection:

qemu-system-x86_64 -s -S -hda your_image.img

2.Use GDB for Debugging: Connect to the QEMU instance using GDB. Open a new terminal and run:

gdb
target remote localhost:1234

3.Set Up WinDbg: If you prefer using WinDbg, you can set up a debugging session with QEMU. Follow these steps:

@startergo
startergo / qemu_mingw64.md
Last active January 21, 2025 14:59
QEMU MINGW64 compiling

Upgrade installed packages

pacman -Suy --noconfirm

Install basic packets:

pacman -Sy --noconfirm --needed base-devel mingw-w64-x86_64-cmake mingw-w64-x86_64-gcc git mingw-w64-x86_64-meson rsync
@startergo
startergo / Mingw64_here.reg
Created January 4, 2025 01:16
Open Mingw64 terminal right click here
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Mingw64]
@="Open Mingw64 here"
"Icon"="C:\\msys64\\mingw64.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Mingw64\command]
@="C:\\msys64\\mingw64.exe bash"
@startergo
startergo / Snow_Leopard_kextcache.md
Created December 27, 2024 23:44
Rebuilding mkext caches in Snow Leopard
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
@startergo
startergo / cpuid.md
Last active December 26, 2024 18:38
Intel Processors extracted from the Microcode repository of "UEFI BIOS Updater" and sorted by Architecture
  • Intel Processors extracted from the Microcode repository of "UEFI BIOS Updater" and sorted by Architecture
  • 906EA
  • 906EB
  • 906EC
  • 906ED

[Socket 1200]

  • A0650
@startergo
startergo / allow_write.md
Created December 25, 2024 18:01
Allow write access to removable drives not protected by BitLocker

(Deny write access to removable drives not protected by BitLocker) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Policies\Microsoft\FVE

RDVDenyWriteAccess DWORD

(delete) = Allow (default)

1 = Deny

0 = Allow

@startergo
startergo / robocopy.md
Last active December 25, 2024 19:42
How to copy file/folder and preserve their creation date in Windows
robocopy "C:\your source folder" "F:\your destination folder" /e /dcopy:DAT /MT /z

Enable Vmware shared folders in PowerShell context:

net use Z: "\\vmware-host\Shared Folders"

Copy options

@startergo
startergo / clone_push_repo.md
Last active December 18, 2024 03:49
Clone remote repo and push to your repo
git show-ref
git remote add <remote_Branch> <remote_repo> 
git fetch
git add .
git commit -m 'reinitialized files'
git push -f --no-thin https:<your repo> HEAD:refs/heads/<remote branch>
@startergo
startergo / msys2_git.md
Last active January 8, 2025 01:16
Git credentials manager add support for a MSYS2 Shell

https://github.com/git-for-windows/git/wiki/Install-inside-MSYS2-proper

  • Open a PowerShell as administrator, and enter the following command:
New-Item -ItemType SymbolicLink -Path 'C:\msys64\opt\git-for-windows-mingw64-bin' -Target 'C:\Program Files\Git\mingw64\bin'

This asumes that both paths exist and you have both Git for Windows and MSYS2 installed on those default locations, change them according to your needs.

  • Next, add the following 2 lines to your .gitconfig file in you MSYS2 homefolder:
[credential]