Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
lidgnulinux / riverctl-a2d03cf6.patch
Created May 21, 2026 07:07
riverctl patch for dwl.
diff --git a/Makefile b/Makefile
index 578194f..9ae2f63 100644
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,15 @@ dwl: dwl.o util.o
$(CC) dwl.o util.o $(DWLCFLAGS) $(LDFLAGS) $(LDLIBS) -o $@
dwl.o: dwl.c client.h config.h config.mk cursor-shape-v1-protocol.h \
pointer-constraints-unstable-v1-protocol.h wlr-layer-shell-unstable-v1-protocol.h \
- wlr-output-power-management-unstable-v1-protocol.h xdg-shell-protocol.h
+ wlr-output-power-management-unstable-v1-protocol.h \
@lidgnulinux
lidgnulinux / cwmrc_like_riverwm.txt
Last active May 23, 2026 00:56
An attempt to mimic cwmrc for riverwm.
#!/bin/sh
alias bind-key="riverctl map normal"
alias bind-mouse="riverctl map-pointer normal"
alias borderwidth="riverctl border-width"
export W=Super
export S=Shift
export A=Alt
export C=Control
@dori4n
dori4n / Office 2024 ISO Links at Microsoft.md
Created January 13, 2025 06:30
Office 2024 ISO Download Links at Microsoft

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@alichherawalla
alichherawalla / design-system.md
Created February 10, 2026 15:26
Memoria Design System

Memoria Design System

A design language for premium, dark-themed knowledge interfaces.


Philosophy

"Numbers are heroes, labels are whispers."

@Gezine
Gezine / PS5_CEC_example.sh
Last active May 22, 2026 23:44
PS5 HDMI libcec commands
# Note
# I am using Raspberry pi 4 to send CEC commands
# /dev/cec1 is pi's second HDMI port
# '4' is PS5 address that TV assigned, change if you need
# Turn on PS5 (You need to enable "Power off Link" at PS5 HDMI settings to turn on from rest mode)
cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=power-on-function
# Turn on PS5 from rest mode (When you didn't enable "Power off Link" at PS5 HDMI settings)
cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=power-toggle-function
@NullArray
NullArray / MAC-by-Vendor.txt
Created June 3, 2019 23:08
List of valid MAC adresses sorted by vendor
Misc MACs:
Num MAC Vendor
--- --- ------
0000 - 00:00:00 - XEROX CORPORATION
0001 - 00:00:01 - XEROX CORPORATION
0002 - 00:00:02 - XEROX CORPORATION
0003 - 00:00:03 - XEROX CORPORATION
0004 - 00:00:04 - XEROX CORPORATION
0005 - 00:00:05 - XEROX CORPORATION
0006 - 00:00:06 - XEROX CORPORATION
@Brajesh2022
Brajesh2022 / Running Antigravity CLI on Termux.md
Last active May 23, 2026 01:12
Working setup for running Antigravity CLI (agy) natively on Android Termux without proot-distro, VMs, or Cloud Shell. Fixes 7 compatibility issues: TCMalloc 39-bit VA, faccessat2 syscall, glibc libc.so shim, LD_PRELOAD pollution, DNS resolver, TLS certificates, and shell hash caching. Includes a reusable pattern-based binary patch script (patch_…

This document describes the working setup for running the native Antigravity CLI (agy) on Android Termux.

The main goal is to run the official Linux ARM64 Antigravity binary directly from Termux without Cloud Shell, without a full VM, and without replacing Android. The setup uses a small binary patch plus a wrapper that adapts the Linux/glibc binary to Termux's Android environment.

The method is designed to be repeatable for future Antigravity releases. The patch script scans instruction patterns instead of relying on fixed offsets. If Antigravity changes its allocator code generation in the future, the script will print warning counts instead of silently claiming success.

What This Fixes

Antigravity's Linux ARM64 binary can fail on Termux for multiple independent reasons.

@eooce
eooce / auto-add-ssl-workers.js
Last active May 22, 2026 23:12
auto-add-ssl-workers
export default {
async fetch(request, env, ctx) {
const url = new URL(request.url);
// 处理 API 请求:支持 POST (/api/add-ssl) 和 GET (/?...)
if (
(url.pathname === '/api/add-ssl' && request.method === 'POST') ||
(url.pathname === '/' && request.method === 'GET' && url.searchParams.has('zoneId'))
) {
return handleApiRequest(request, url.searchParams);
javascript: ( function(){
/*What you want to do goes here */
alert(window.location);
})();
For SmartObject execution:
javascript:(function(){
let urlParams = new URLSearchParams(window.location.hash);
$(".lyt-explorer-maincontent").after('<div><a onclick="$(this).parent().remove()">close</a><br/><iframe src="'
+ window.location.origin + '/Management/Runtime/Form.aspx?_ID=2ae83f85-6336-49f1-a9e5-fe78b220f6c4&smartobjectguid='