Skip to content

Instantly share code, notes, and snippets.

@fanlushuai
fanlushuai / fuckAD.js
Last active September 19, 2026 07:21
红果短剧自动跳过广告,流畅看剧
function getRotation() {
//1竖屏 2横屏
importPackage(android.content);
return context.getResources().getConfiguration().orientation;
}
function getScreenHW() {
// console.log(getRotation());
// 正常的手机,高度,是大于宽度的。但是,device.width,device.height,函数,有时候是会获取错误的。
// 强行扭正。

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.

@aderusha
aderusha / link_multiple_devices.yaml
Created September 12, 2022 21:19
Select multiple entities to link their on/off state. If any selected entity is turned on or off, the other selected entities will be sent a matching on or off command.
@xdenb43
xdenb43 / MikroTik AdGuard Home container installation.md
Last active September 19, 2026 06:42 — forked from kangarie/mikrotik_container_adguardhome.txt
MikroTik AdGuard Home container installation

--> adguard home to container | by @xdenb43
--> tested on hap ax3/ROS 7.17.2+

Important

defconf network 192.168.88.1/24
docker network 192.168.254.1/24

Install AdGuard Home (AGH) to MikroTik using container

Prerequisites

@kingsmen732
kingsmen732 / server1.py
Created September 24, 2025 08:45
icloud 2fa passthrough to get device details
import os
from getpass import getpass
import plistlib as plist
import json
import uuid
import pbkdf2
import requests
import hashlib
import hmac
import base64
# Claude Code CLI Environment Variables
# This file lists all environment variables used in v2.1.202 with explanations
## Anthropic API & Authentication
ANTHROPIC_API_KEY - Primary API key for Anthropic's Claude API; used as an auth source (source "ANTHROPIC_API_KEY") when no OAuth token is configured
ANTHROPIC_AUTH_TOKEN - Alternative bearer token for Anthropic services; sent as Authorization: Bearer and takes priority over ANTHROPIC_API_KEY, also used with gateway mode
ANTHROPIC_BASE_URL - Custom base URL for the Anthropic API; overrides the default api.anthropic.com endpoint (a non-api.anthropic.com host marks the client as non-first-party)
ANTHROPIC_BETAS - Comma-separated list of beta feature headers appended (trimmed, non-empty) to the internal beta flags on API requests
ANTHROPIC_CUSTOM_HEADERS - Custom HTTP headers for API requests, parsed as newline-separated "Key: Value" pairs
@matsurigoto
matsurigoto / prework-setup.md
Last active September 19, 2026 05:31
GitHub Copilot 工作坊 —— 行前準備指南

🚀 GitHub Copilot 工作坊 —— 行前準備指南

⏰ 這份文件是給還沒有任何帳號、沒裝過任何軟體的參加者看的。 建議在活動前一天花 15–20 分鐘照著做完,現場就能直接開始動手實作。

如果你已經有 GitHub 帳號、VS Code、Git,只要跳到最後的 ✅ 完成檢查清單 確認一下就好。


你總共需要準備四樣東西

@Klerith
Klerith / pasos-node-typescript.md
Last active September 19, 2026 05:24
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@pdulapalli
pdulapalli / empty.xml
Created June 10, 2019 02:39
Empty RSS Feed
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
@goodylili
goodylili / bash.md
Created July 16, 2026 07:31
bash_tutorial.md

Bash — Class Reference

All examples tested and runnable as-is. ⚠️ = macOS gotcha.


1. Introduction to Bash

Bash = interactive shell + scripting language. A script is just saved commands.