Skip to content

Instantly share code, notes, and snippets.

@YeapGuy
YeapGuy / capslock-alt.ahk
Created May 5, 2026 07:58
AutoHotkey for sk-prog
#Requires AutoHotkey v2.0
#SingleInstance
; Remap CapsLock to Right Alt
CapsLock::RAlt
; ----------------------------------------------------------------/
; Toggle Caps Lock by pressing both Shift keys simultaneously
; ----------------------------------------------------------------/
@YeapGuy
YeapGuy / hp-virtual.sh
Last active May 2, 2026 21:02 — forked from ParsaAlizadeh/env-wrapper.sh
Virtual printer for manually printing two sided
#!/bin/bash
# Place this file at /usr/lib/cups/hp-virtual, chown root:root and chmod 0744.
if [[ $# -eq 0 ]]; then
echo 'file hp-virtual:/ "HP Virtual Printer" "HP Virtual Printer"'
exit 0
fi
JOBID="$1"
USER="$2"
@YeapGuy
YeapGuy / airtag-decryptor.swift
Last active September 4, 2025 06:41
Decrypt macOS Find My .record file
//
// airtag-decryptor.swift
//
//
// Created by Matus on 28/01/2024.
//
import Foundation
import CryptoKit
// Function to decrypt using AES-GCM
@YeapGuy
YeapGuy / hs_err_pid23.log
Created November 13, 2019 19:27
Java SIGSEGV 2
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ff1e619a7b2, pid=23, tid=0x00007ff1c47d4700
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b01) (build 1.8.0_212-8u212-b01-1~deb9u1-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J 12441 C2 ckt.a(JIZ)V (88 bytes) @ 0x00007ff1e619a7b2 [0x00007ff1e619a420+0x392]
#
@YeapGuy
YeapGuy / hs_err_pid28.log
Created November 13, 2019 19:14
Java SIGSEGV
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fae8e4c0d1e, pid=28, tid=0x00007fae845b4700
#
# JRE version: OpenJDK Runtime Environment (8.0_212-b01) (build 1.8.0_212-8u212-b01-1~deb9u1-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.212-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J 13427 C2 net.minecraft.server.v1_14_R1.Chunk.a(Lnet/minecraft/server/v1_14_R1/Entity;Lnet/minecraft/server/v1_14_R1/AxisAlignedBB;Ljava/util/List;Ljava/util/function/Predicate;)V (281 bytes) @ 0x00007fae8e4c0d1e [0x00007fae8e4c0800+0x51e]
#