Skip to content

Instantly share code, notes, and snippets.

@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]
  • How to add your terminal to Developer Tools:
  • Run sudo spctl developer-mode enable-terminal in your terminal.
  • Go to System Preferences, and then to Security & Privacy.
  • Under the Privacy tab, an item called Developer Tools should be present. Navigate to it.
  • Ensure that your terminal is listed and enabled. If you're using a third-party terminal like iTerm, be sure to add it to the list. (You may have to click the lock in the bottom-left corner and authenticate.)
  • Restart your terminal.
@startergo
startergo / vmware_admin.md
Created December 3, 2024 11:20
Error: You must have administrative privileges to modify or repair this installation (VMware)
  • Find the Installer in C:\Windows\Installer\ by opening Windows explorer search and enable search in file contents: image

  • Run this command in elevated command prompt:

msiexec.exe /i "C:\Windows\Installer\171d2a.msi"
@startergo
startergo / CPUID.cs
Last active December 2, 2024 08:53
CPUID,cs C# code for generation of an executable
using System;
namespace CPUID
{
using System;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;