Skip to content

Instantly share code, notes, and snippets.

View Jacobboogiebear's full-sized avatar

Jacob Allen Morris Jacobboogiebear

  • USA Murfreesboro Tennessee
View GitHub Profile
@Jacobboogiebear
Jacobboogiebear / README.md
Last active March 4, 2024 22:08
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]
@=""
@Jacobboogiebear
Jacobboogiebear / kernel_patch.sh
Last active May 14, 2024 21:09
kernel patch for KVM on Windows WSL2
cp Microsoft/config-wsl .config
sed -i 's/# CONFIG_KVM_GUEST is not set/CONFIG_KVM_GUEST=y/g' .config
sed -i 's/# CONFIG_ARCH_CPUIDLE_HALTPOLL is not set/CONFIG_ARCH_CPUIDLE_HALTPOLL=y/g' .config
sed -i 's/# CONFIG_HYPERV_IOMMU is not set/CONFIG_HYPERV_IOMMU=y/g' .config
sed -i '/^# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set/a CONFIG_PARAVIRT_CLOCK=y' .config
sed -i '/^# CONFIG_CPU_IDLE_GOV_TEO is not set/a CONFIG_CPU_IDLE_GOV_HALTPOLL=y' .config
sed -i '/^CONFIG_CPU_IDLE_GOV_HALTPOLL=y/a CONFIG_HALTPOLL_CPUIDLE=y' .config
sed -i 's/CONFIG_HAVE_ARCH_KCSAN=y/CONFIG_HAVE_ARCH_KCSAN=n/g' .config
sed -i '/^CONFIG_HAVE_ARCH_KCSAN=n/a CONFIG_KCSAN=n' .config
make -j 8