Skip to content

Instantly share code, notes, and snippets.

@datfooldive
datfooldive / patch.py
Last active September 26, 2026 16:11
Disable Cheat Engine 7.7.1 Linux trial and Patreon gate
#!/usr/bin/env python3
# Disable CE 7.7.1 Linux trial and Patreon gate
import os, shutil, sys
BIN = sys.argv[1] if len(sys.argv) > 1 else "cheatengine-x86_64"
PATCHES = [
(0x558008, bytes.fromhex("c6831c08000001"), bytes.fromhex("90909090909090"),
"NOP trial flag write"),
(0x557b40, bytes.fromhex("554889e548"), bytes.fromhex("e95bffffff"), "jmp sub_957B40 -> sub_957AA0"),
_prompt_agnoster_status() {
local segment=
(( RETVAL )) && segment+=" %F{red}${RETVAL}"
(( EUID == 0 )) && segment+=" %F{yellow}⚡"
(( ${#jobstates} )) && segment+=" %F{cyan}⚙"
if [[ -n ${VIRTUAL_ENV_PROMPT} ]]; then
segment+=" %F{cyan}${VIRTUAL_ENV_PROMPT}"
elif [[ -n ${VIRTUAL_ENV} ]]; then
segment+=" %F{cyan}${VIRTUAL_ENV:t}"
#define SYS_SOCKET 41
#define SYS_BIND 49
#define SYS_LISTEN 50
#define SYS_ACCEPT 43
#define SYS_WRITE 1
#define SYS_CLOSE 3
#define AF_INET 2
#define SOCK_STREAM 1
#define IPPROTO_TCP 6
@datfooldive
datfooldive / wadb.sh
Last active January 25, 2025 13:33
enable adb wireless quickly
#!/bin/bash
check_root() {
if [ "$(id -u)" -ne 0 ]; then
echo "Error: This script must be run as root"
exit 1
fi
}
enable_wireless_adb() {
@datfooldive
datfooldive / typingtesthack.js
Last active November 23, 2024 16:26
typing test hack
// ==UserScript==
// @name 10fastfingers hack
// @namespace http://tampermonkey.net/
// @version 1.6
// @description Simulate typing and auto correct
// @license MIT
// @author kyzsuki
// @match https://10fastfingers.com/typing-test/*
// @match https://typingtop.com/*/typing-test
// @grant none