Skip to content

Instantly share code, notes, and snippets.

@boxabirds
boxabirds / .cursorrules
Last active June 21, 2025 04:16
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@lelinhtinh
lelinhtinh / webWorkerInUserscript-withLibs.user.js
Last active June 21, 2025 04:15
Web worker trong Userscript với thư viện đính kèm
// ==UserScript==
// @name Web Worker in Userscript
// @namespace http://baivong.github.io
// @version 2.0.1
// @description Use Web Worker in Userscript with libraries
// @author Zzbaivong
// @match https://github.com/baivong
// @require https://greasyfork.org/scripts/18532-filesaver/code/FileSaver.js?version=128198
// @resource jszip https://greasyfork.org/scripts/19855-jszip/code/jszip.js?version=126859
// @resource worker https://gist.githubusercontent.com/baivong/e8a13c341a4814e726653d1f9fce02c2/raw/75e747879d1fab98708b08112d228e4acd3dec35/worker-withLibs.js
@changjonathanc
changjonathanc / anthropic_oauth.py
Created June 21, 2025 03:51
Anthropic OAuth CLI - Simplified Claude Code spoof demo
#!/usr/bin/env python3
import argparse
import base64
import hashlib
import json
import os
import secrets
import sys
import time
@fnky
fnky / ANSI.md
Last active June 21, 2025 04:06
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@BenWoodford
BenWoodford / lh2.md
Last active June 21, 2025 04:02
Lighthouse 2.0 GATT Information

All control characteristics are under Service 00001523-1212-EFDE-1523-785FEABCD124

Characteristics

Mode = 00001524-1212-EFDE-1523-785FEABCD124 (READ, WRITE, NOTIFY)

Identify = 00008421-1212-EFDE-1523-785FEABCD124 (WRITE)

Power State = 00001525-1212-EFDE-1523-785FEABCD124 (WRITE, newer firmware also had READ and NOTIFY)

@aojea
aojea / README.md
Last active June 21, 2025 03:59
Network Device Management with container runtimes

Network Device Management with container runtimes

This document provides a hands-on guide to understanding how runtimes interacts with network devices and namespaces, focusing on the new "Network Devices" feature described in the OCI (Open Container Initiative) runtime specification. The feature is expected to be released in the version 1.3.0 of the OCI specification.

In high-level container orchestration systems like Kubernetes, the management of network namespaces and interfaces is handled by the [Container Runtime Interface

@janlay
janlay / README.md
Last active June 21, 2025 03:58
Rule sets for Surge & Clash

Janlay's public ruleset

Enjoy all the common rulesets brought by janlay.

A quick guideline

In the rules section of Surge/Clash config, use the shared rulesets in this order:

  1. blocked-domains
  2. quick-direct
  3. loc-sens
  4. traffic
  5. \
@cliss
cliss / mergechapters.py
Created January 26, 2021 14:30
Merge Files with Chapters
import datetime
import json
import os
import subprocess
import sys
#############
### USAGE ###
#############
@id-ilych
id-ilych / geometry.js
Last active June 21, 2025 03:50
Functions to build a convex hull and minimum bounding box for a given set of points
const geometry = {};
// for all the functions below, assume screen coordinates: the x-axis is rightward, the y-axis is downward
// finds a point with the lowest vertical position (leftmost wins in case of a tie)
geometry.lowestPoint = (points) => points.reduce((lowest, point) => {
if (point[1] > lowest[1]) {
return point;
}
if (point[1] === lowest[1] && point[0] < lowest[0]) {
alias: Light Control
description: Uses an entity's state to control a light
triggers:
- trigger: state
entity_id:
- binary_sensor.motion_sensor
from: "off"
to: "on"
conditions: []
actions:
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy