Skip to content

Instantly share code, notes, and snippets.

View Jacobboogiebear's full-sized avatar

Clair Allen Morris Jacobboogiebear

  • USA
View GitHub Profile
[{"op":"Generate UUID","args":[]},{"op":"SHA2","args":["512",64,160]},{"op":"To Upper case","args":["All"]},{"op":"Take bytes","args":[5,29,false]},{"op":"From Hex","args":["Auto"]},{"op":"To Base64","args":["A-Za-z0-9+/="]}]
@Jacobboogiebear
Jacobboogiebear / README.md
Last active January 31, 2025 20:27
How to unpack and AutoHotKey (using default available packers) file from the compiled executable (EXE)

How to unpack any Autohotkey (default packers) autohotkey file from EXE

Video Tutorial

Please use this to reference

If you'd like to link to or reference this information, I'd really appriciate if you post something along the lines of this:

Info found from Jacob Morris (github.com/jacobboogiebear)
Link to gist with info found here: http://tinyurl.com/how-to-decompile-ahk
// ==UserScript==
// @name MultiTwitch Bigger Chat
// @namespace http://tampermonkey.net/
// @version 2024-02-20
// @description Easily make chat window bigger in MultiTwitch
// @author Jacob Allen Morris
// @match https://www.multitwitch.tv/**
// @icon https://www.google.com/s2/favicons?sz=64&domain=multitwitch.tv
// @grant none
// ==/UserScript==
@Jacobboogiebear
Jacobboogiebear / config.toml
Created October 29, 2023 13:15
File to fix Bevy/dynamic_linking error on windows
[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=off"]
function global:Invoke-BatchFile
{
param([string]$Path, [string]$Parameters)
$tempFile = [IO.Path]::GetTempFileName()
cmd.exe /c " `"$Path`" $Parameters && set > `"$tempFile`" "
Get-Content $tempFile | Foreach-Object {
if ($_ -match "^(.*?)=(.*)$")
const pyscript = (() => {
const process = require("process");
const { spawnSync, spawn } = require("child_process");
const { platform } = require("os");
let python_intp = "";
const os = platform();
if (os == "win32") {
let python_1 = spawnSync("where.exe", ["python"]).stdout.toString();
let python_2 = spawnSync("where.exe", ["python3"]).stdout.toString();
python_intp = python_1 != "" ? python_1 : python_2;
@Jacobboogiebear
Jacobboogiebear / scaffold.rs
Last active April 20, 2023 14:33
A small rust file to detect if running in a tty for Tauri (and a macro for println override) ONLY FOR WINDOWS
// Requires crate "windows" using features "Win32_System_Console", "Win32_Foundation", "Win32_UI_WindowsAndMessaging", "Win32_System_Threading", "Win32_System_Diagnostics_ToolHelp"
fn get_ppid(pid: u32) -> Option<u32> {
use windows::Win32::{
Foundation::{
CloseHandle
},
System::{
Diagnostics::ToolHelp::{
CreateToolhelp32Snapshot,
@Jacobboogiebear
Jacobboogiebear / optimize-docker-storage.bat
Created April 2, 2023 17:26
Batch scripts to optimize Docker Desktop storage on Windows 10/11 (requires Hyper-V enabled, for Windows 11 home use this script to enable: https://gist.github.com/Jacobboogiebear/24b46aa0c5587db50673403c4117a5bf)
@echo off
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
taskkill /F /IM "Docker Desktop.exe" /T
wsl --shutdown
powershell -Command "Optimize-VHD -Path %LOCALAPPDATA%\\Docker\\wsl\\data\\ext4.vhdx"
exit
#[macro_export]
macro_rules! type_name_of {
( $e:expr $(,)? ) => ({
fn __helper__<T> (_: [&T; 0]) -> &'static str {
core::any::type_name::<T>()
}
let it = [];
#[allow(unreachable_code)] {
if false {
loop {}
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}]
[HKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32]
@=""