Skip to content

Instantly share code, notes, and snippets.

@basvd
basvd / notes.md
Created March 24, 2025 21:59
Notes on Anycubic Kobra OS debugging

Intercept gklib IO:

strace -p pid-of-gklib -f -e trace=read,write -e signal=none -y --strings-in-hex=non-ascii-chars -s 1000

Intercept gklib socket API:

2>&1 | grep 'socket:'
@basvd
basvd / SunshineLauncher.ahk
Last active December 29, 2024 20:53
Game launcher for Sunshine stream host
#Requires AutoHotkey v2.0
OnError ErrorCallback
if A_Args.Length != 2 {
MsgBox "Two parameters must be provided: Game URI, executable name"
ExitApp
}
gameUri := A_Args[1]
exeName := A_Args[2]
@basvd
basvd / reboot-to-windows.desktop
Last active January 18, 2019 03:36
Reboot to Windows launcher
# Reboot to Windows launcher
# Selects Windows for next boot only (grub-reboot 2, assuming it's the third menu item) and then reboots the system.
# Dependencies: zenity, gksudo, grub-reboot, systemd, arc or moka icon theme
[Desktop Entry]
Version=1.1
Type=Application
Name=Reboot to Windows
Comment=Reboot with Windows as one-time default
Icon=microsoft