Skip to content

Instantly share code, notes, and snippets.

View Z1xus's full-sized avatar
🍝
i love pasta

Z1xus

🍝
i love pasta
View GitHub Profile
@rebane2001
rebane2001 / evil-tailwind.html
Last active August 15, 2026 16:42
Monkey-patch Tailwind CSS to also support attributes (outside of classes)
<script>
const original_querySelectorAll = document.querySelectorAll;
document.querySelectorAll = function () {
if (arguments?.[0] == "[class]" && (new Error().stack).split("\n").filter(e=>e!="Error")?.[1]?.includes?.("tailwindcss/browser"))
return [...original_querySelectorAll.apply(document,["*"])].map(e=>({classList:[...e.classList,...[...e.attributes].map(x=>x.name.replace(/⁄/g,'/'))]}));
return original_querySelectorAll.apply(document,arguments);
}
const original_push = Array.prototype.push;
Array.prototype.push = function () {
if ((s=(new Error().stack).split("\n").filter(e=>e!="Error")?.[1],s)?.includes?.("enter")
@andelf
andelf / doh.rs
Last active September 24, 2025 21:22
Rust DoH DNS over HTTP Resolver for reqwest
//! A DoH client for the sync crate
//!
//! To be used in ClientBuilder.dns_resolver
use once_cell::sync::Lazy;
use std::{
cell::RefCell,
collections::HashMap,
net::SocketAddr,
time::{Duration, Instant},
@JerryLokjianming
JerryLokjianming / Crack Sublime Text Windows and Linux.md
Last active August 6, 2026 20:46
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/
  3. Open file select sublime_text.exe
  4. Offset 0x8545: Original 84 -> 85
  5. Offset 0x08FF19: Original 75 -> EB
  6. Offset 0x1932C7: Original 75 -> 74 (remove UNREGISTERED in title bar, so no need to use a license)
@pannal
pannal / REAPERControl.ahk
Last active October 14, 2024 22:07
REAPER Control v0.12b AutoHotkey Script
; ----------------------------------------------------------------------------------------------------------
; _____ _____ _____ _____ _____ _____ _____ _ _
; | __ || __|| _ || _ || __|| __ | | | ___ ___ | |_ ___ ___ | |
; | -|| __|| || __|| __|| -| | --|| . || || _|| _|| . || |
; |__|__||_____||__|__||__| |_____||__|__| |_____||___||_|_||_| |_| |___||_|
;
; ----------------------------------------------------------------------------------------------------------
; REAPER Control
; panni
; 2018
@Ircama
Ircama / Digispark.md
Last active March 18, 2026 15:34
Configuring the Digispark ATtiny85 board for Arduino IDE and upgrading the bootloader

Configuring the Digispark ATTINY85 board for Arduino IDE and upgrading the bootloader

Warning: this document has to be updated by pointing to https://github.com/SpenceKonde/ATTinyCore

This note describes the configuration of an ATtiny85 based microcontroller development board named Digispark and similar to the Arduino line. It is available in many online marketplaces for roughly 1 dollar (e.g., Ebay, Amazon, AliExpress) and is shipped fully assembled, including a V-USB interface (a software-only implementation of a low-speed USB device for Atmel's AVR microcontrollers). Coding is similar to Arduino: it uses the familiar Arduino IDE and is already provided with a ready-to-use bootloader (