Skip to content

Instantly share code, notes, and snippets.

@jpountz
jpountz / StreamingXXHash.java
Last active March 16, 2026 08:24
xxhash streaming hashing
XXHashFactory factory = XXHashFactory.fastestInstance();
byte[] data = "12345345234572".getBytes("UTF-8");
ByteArrayInputStream in = new ByteArrayInputStream(data);
int seed = 0x9747b28c; // used to initialize the hash value, use whatever
// value you want, but always the same
StreamingXXHash32 hash32 = factory.newStreamingHash32(seed);
byte[] buf = new byte[8]; // for real-world usage, use a larger buffer, like 8192 bytes
for (;;) {
@CJHwong
CJHwong / README.md
Last active March 16, 2026 08:24
Claude Code + ntfy.sh: Mobile notifications & remote tool approval via action buttons

Claude Code + ntfy.sh: Mobile Notifications & Remote Approval

Push Claude Code notifications to your phone via ntfy.sh, and approve/reject tool calls with action buttons — no server required.

Scripts

Script Hook Purpose
ntfy_notify.sh Notification Push alerts when Claude needs input or finishes a task
ntfy_approve.sh PreToolUse Approve/reject tool calls from your phone
@coodoo
coodoo / outline.md
Last active March 16, 2026 08:21
「第二屆 AI 取暖會」講義文字稿

/* 前言 -------------------------------------------------- */

簡介

這是 Jeremy 於 2026-03-07 於第二屆「 AI 取暖會」中分享過去十八個月來與 AI/Agent 搏鬥的實戰心得。

影片

https://www.youtube.com/watch?v=9kb7oCamafE

@corylanou
corylanou / address-review.md
Created December 28, 2025 15:44
Claude Code skill: Address PR review comments, make fixes, reply, and resolve
description argument-hint model
Address PR review comments, make fixes, reply, and resolve
<pr-number>
claude-opus-4-5-20251101

Address PR Review Comments

Automates addressing pull request review feedback: analyze comments, make fixes, reply to explain changes, resolve threads, and request re-review from @codex.

@chenhunghan
chenhunghan / gist.md
Last active March 16, 2026 08:12
One Prompt to Save 90% Context for Any MCP Server

Local Code Mode for MCP

Most MCP servers just wrap CRUD JSON APIs into tools — I did it too with scim-mcp and garmin-mcp-app. It works, until you realize a tool call dumps 50KB+ into context.

MCP isn't dead — but we need to design MCP tools with the context window in mind.

@BumgeunSong
BumgeunSong / SKILL.md
Last active March 16, 2026 08:05
crig-concept-learning
name description
crig-concept-learning
Helps build deep understanding of any concept by scaffolding its structure (rigging) and crystallizing it into a seed sentence. Use when learning something new, feeling stuck while understanding a concept, or wanting to truly own an idea. Triggered by phrases like "이해하고 싶어", "그려지지 않아", "왜 필요해?", "내 것으로 만들고 싶어", "정리해봐", "핵심이 뭐야?".

Crig (Crystal Rigging)

씨앗: Crig은 개념의 골격을 세워 머릿속에서 돌릴 수 있게 하고, 그것을 다시 씨앗으로 굳히는 것이다.

초기 진입 프로토콜

@yazanzaid00
yazanzaid00 / ShortKit.md
Last active March 16, 2026 08:03
Run macOS Shortcuts Links Silently in the Background

ShortKit: Headless Shortcuts Launcher for macOS

Tired of shortcuts:// links opening the Shortcuts GUI app every time? ShortKit is a lightweight AppleScript application that registers its own custom shortkit:// URL scheme, allowing you to silently trigger Shortcuts in the background—no GUI.


Installation

1. Create the AppleScript

@l1kus-freedom
l1kus-freedom / !instruction.txt
Last active March 16, 2026 07:57
Инструкция по обходу блокировок\на случай интернет-шатдауна в РФ.
Сохраните себе данную инструкцию (Download ZIP) и распространите.
В РФ постепенно усиляется цензура и блокируются различные интернет-ресурсы. Нельзя исключать тот факт, что в один момент могут войти в постоянную практику локальные шатдауны и ограничению доступа во внешний Интернет.
В этой инструкции будут рекомендации по обходу блокировок на момент 05.09.2025, а также рекомендации на случай интернет-изоляции в РФ. Желательно предварительно установить и настроить весь софт — во время шатдауна у вас не будет такой возможности.
Для начала, рекомендую установить на ПК браузер Firefox или любой другой браузер с интерфейсом настройки прокси.
========================================================================================================================================
ОБХОД БЛОКИРОВОК
* Обход блокировок по DPI (Windows)
github.com/ValdikSS/GoodbyeDPI - не обновляется, плохо обходит блокировки без настройки, однако, может работать в некоторых случаях;
github.com/bol-van/zapret-win-bundle - оригинальный гит
@void285
void285 / pan.baidu.com.errno.js
Last active March 16, 2026 07:54
百度网盘错误代码汇总,从页面js中整理,简单归类,可能不全
// 文件类型-category
{1:"全部视频",2:"全部音乐",3:"全部图片",4:"全部文档",6:"其它文件",7:"全部种子"}
{1:"video",2:"audio",3:"image",4:"doc",5:"app",6:"other",7:"bt",100:"visio",101:"ppt",102:"pdf",103:"txt",104:"word",105:"excel",106:"ipa",107:"apk",108:"zip"}
// 昵称
{101:"昵称已被他人占用",102:"昵称含敏感词, 请修改后再试",103:"昵称仅支持中/英文、数字及符号-和_"}
{0:"昵称最长为12个字",1:"请输入至少一个字或两个字符",2:"仅支持中/英文、数字及符号-和_"}
// 文件分享
{0:"成功","-1":"由于您分享了违反相关法律法规的文件,分享功能已被禁用,之前分享出去的文件不受影响。","-2":"用户不存在,请刷新页面后重试","-3":"文件不存在,请刷新页面后重试","-4":"登录信息有误,请重新登录试试","-5":"host_key和user_key无效","-6":"请重新登录","-7":"该分享已删除或已取消","-8":"该分享已经过期","-9":"访问密码错误","-10":"分享外链已经达到最大上限100000条,不能再次分享","-11":"验证cookie无效","-14":"对不起,短信分享每天限制20条,你今天已经分享完,请明天再来分享吧!","-15":"对不起,邮件分享每天限制20封,你今天已经分享完,请明天再来分享吧!","-16":"对不起,该文件已经限制分享!","-17":"文件分享超过限制","-30":"文件已存在","-31":"文件保存失败","-33":"一次支持操作999个,减点试试吧","-32":x,"-70":"你分享的文件中包含病毒或疑似病毒,为了你和他人的数据安全,换个文件分享吧",2:"参数错误",3:"未登录或帐号无效",4:"存储好像出问题了,请稍候再试",108:"文件名有敏感词,优化一下吧",110:"分享次数超出限制,可以到“我的分享”中查看已分享的文件链接",114:"当前任务不存在,保存失败",115:"该文件禁止分享",112:'页面已过期,请<a href="javascript: