Skip to content

Instantly share code, notes, and snippets.

@DavidBevi
DavidBevi / optimizing-hidden-text-into-text.md
Last active January 6, 2026 23:49
Optimizing hidden text into text

This is a quick reply to "Hiding text inside text" by Edwin Wagha: https://youtu.be/4LhL9ypdbQU

Hiding text into text

Edwin Wagha uses strings of 8 chars where each char is either ZWS (zero-width spacer) or ZWNJ (zero-width non-joiner) to represent any single-byte char. This allows to encode 256 distinct characters using 256 distinct 8-char-strings.

Additionally ZWJ (zero-width joiner) is inserted before and after the secret message (to aid parsing).

Hide it more efficiently

@DavidBevi
DavidBevi / Ahk2_TouchEmulator.ahk
Last active September 30, 2025 15:11
AHKv2, Touch Emulator
; Touch Emulator by DavidBevi https://gist.github.com/DavidBevi/43cccde5b282a92d970249f2895126d5
; Hold ENABLER_KEY to tranform mouse-mov into touch-mov
#Requires AutoHotkey v2.0+
#SingleInstance Force
CoordMode("Mouse")
; Globals -----------------------------------------------------------------------------------------
ENABLER_KEY:="Home" ;<--- EDIT THIS LINE TO CHANGE ENABLER_KEY
STATE:="down"
@DavidBevi
DavidBevi / Ahk2_StealMouseMovements_Demo.ahk
Last active September 24, 2025 14:51
AHK v2, steal mouse-movement messages
; DEMO SCRIPT
; Hold down ENABLER_KEY to block-cursor and move-gui
#Requires AutoHotkey v2.0+
#SingleInstance Force
global ENABLER_KEY := "Home" ;<--- EDIT THIS LINE TO CHANGE ENABLER_KEY --------------------------
; Other variables ---------------------------------------------------------------------------------
global WH_MOUSE_LL := 14
global WM_MOUSEMOVE := 0x0200
@DavidBevi
DavidBevi / AI-with-LIVE-websearch.md
Last active July 3, 2025 14:39
Quest for Free AI with actual live websearch

✨ Quest for Free AI with actual live websearch

This Gist reports my tests on the "List of software that allows searching the web with the assistance of AI"

I have tested only DEMOs from the OPEN SOURCE section that DON'T require an account.

Method

The AI will be given 3 questions:

  1. Are you capable of actual live websearch?
    I was told that AIs don't always disclose this, so I try to ask the other 2 anyway.
  2. What is the title of today's Wikipedia's featured article?
    Getting this right means that the AI has "basic fetch".
  3. Fetch the title and url of the latest project of user "DavidBevi" on Github (not GISTS) Getting this right means that the AI has "advanced fetch".
@DavidBevi
DavidBevi / LV_SetImageToAnyCol.ahk
Last active July 26, 2025 16:40 — forked from hoppfrosch/LV_SetSI.ahk
ListView: Icons in more than first column example #ahkv2 #function
; This is the short version, refer to the one in LV_SetImageToAnyCol_Demo.ahk
; for the extended version (better documentation, same function)
;FUNCTION-DEFINITION-----------------------------------------------------------------;
/**
* @example LV_SetImageToAnyCol(MyListView, 1, 2, 3) ;Row 1, Col 2, Img 3
* @important Requires `+LV0x2` style applied to the ListView.
* @tip Use either the ListView (`Gui.Control`) or its HWND (`Integer`).
*