Skip to content

Instantly share code, notes, and snippets.

View winstxnhdw's full-sized avatar
⚠️
This user is a registered cybercriminal. Learn about GitHub Terms of Service.

Winston H. winstxnhdw

⚠️
This user is a registered cybercriminal. Learn about GitHub Terms of Service.
View GitHub Profile
@winstxnhdw
winstxnhdw / extract_btkeys.py
Last active August 1, 2023 04:50 — forked from Mygod/export-ble-infos.py
Export your Windows Bluetooth LE keys into Arch Linux. Make sure you have chntpw installed.
"""
Usage:
$ yay -Syu chntpw
$ python export-ble-infos.py -s <path-to-your-windows-mount>/Windows/System32/config/SYSTEM
$ sudo sh -c 'mv -i bluetooth/ /var/lib
"""
import os
import shutil
import subprocess
@winstxnhdw
winstxnhdw / choice.bat
Last active December 31, 2022 20:36 — forked from jcefoli/choice.bat
Improved template for binary choices in batch files.
@echo off
set /p choice=Do something? [y/N]:
if /i '%choice%'=='Y' goto yes
pause
exit
:yes
echo Do all of the yes things here!
pause
@winstxnhdw
winstxnhdw / edit_with_neovim_for_wt.reg
Last active December 24, 2022 16:42 — forked from JAffleck/editWithNeoVIm.reg
Adds "Edit with Neovim" to the Windows 10 context menu for the Windows Terminal. See original fork for Neovim-qt instead.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Neovim]
@="Edit with Neovim"
"Icon"="C:\\tools\\neovim\\Neovim\\bin\\nvim-qt.exe"
[HKEY_CLASSES_ROOT\*\shell\Neovim\command]
@="wt new-tab PowerShell nvim (Get-Item -LiteralPath %1).FullName"