Skip to content

Instantly share code, notes, and snippets.

View sp1ke23's full-sized avatar
🎯
Focusing

sp1ke23 sp1ke23

🎯
Focusing
  • China
  • 18:09 (UTC +08:00)
View GitHub Profile
@jyxjjj
jyxjjj / Disclosure.md
Created July 10, 2026 07:26
AI Author Emails

AI Git Commit Attribution Reference

GitHub Copilot

Application Co-authored-by GitHub API
GitHub Copilot Cloud Agent Co-authored-by: copilot-swe-agent[bot] <198982749+copilot@users.noreply.github.com> copilot-swe-agent[bot]
GitHub Copilot Chat Co-authored-by: Copilot <167198135+copilot[bot]@users.noreply.github.com> copilot[bot]
GitHub Copilot CLI `Co-authored-by: Copilot <167198135+copilot[bot]@u
@starius
starius / extract_telegram_api.py
Created March 30, 2026 03:06
Extract api_id and api_hash from Telegram Desktop binary
#!/usr/bin/env python3
from __future__ import annotations
import argparse
import json
import re
import struct
import sys
from collections import Counter
@jwbee
jwbee / jq.md
Last active July 20, 2026 17:37
Make Ubuntu packages 90% faster by rebuilding them

Make Ubuntu packages 90% faster by rebuilding them

TL;DR

You can take the same source code package that Ubuntu uses to build jq, compile it again, and realize 90% better performance.

Setting

I use jq for processing GeoJSON files and other open data offered in JSON format. Today I am working with a 500MB GeoJSON file that contains the Alameda County Assessor's parcel map. I want to run a query that prints the city for every parcel worth more than a threshold amount. The program is

类别 药品通用名 原研品牌
抗生素类 头孢克洛 希刻劳
头孢呋辛 西力欣
左氧氟沙星 可乐必妥
莫西沙星 拜复乐
阿奇霉素 希舒美
头孢妥仑匹酯 美爱克
抗真菌类 盐酸特比萘芬 兰美抒
奥美拉唑 洛赛克
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active August 27, 2026 16:18
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@wilinz
wilinz / ms-edge-tts-api.md
Last active August 23, 2026 09:13
微软edge-tts-api(大声朗读协议)
@gnat
gnat / postgres_portable_no_install.md
Last active July 22, 2024 09:47
Postgres Standalone

🐘 Postgres Standalone

Why?

  • Localize your database into one single folder of your choosing.
  • No sudo / root requirement.
  • Run multiple Postgres at the same time on the same machine- Full bare metal performance.
  • Postgres is a great starter before moving to "slow single machine but horizontal scale": CockroachDB, ScyllaDB, etc.

Compile

@Zheaoli
Zheaoli / Jetbrains JVM Config
Last active July 27, 2022 05:37
This is a JVM config for Jetbrains IDE on my laptop(With i9 10th CPU and 64G RAM)
-Xms128m
-Xmx8182m
-XX:ReservedCodeCacheSize=512m
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
-XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5
-XX:+UnlockDiagnosticVMOptions -XX:-ZProactive
@wongsyrone
wongsyrone / main.go
Created March 8, 2021 06:22
top TLS fingerprint
// import tls "github.com/refraction-networking/utls"
tcpConn, err := net.Dial("tcp", "tlsfingerprint.io:443")
if err != nil {
fmt.Printf("net.Dial() failed: %+v\n", err)
return
}
config := tls.Config{ServerName: "tlsfingerprint.io"}
tlsConn := tls.Client(tcpConn, &tlsConfig, utls.HelloCustom)
clientHelloSpec := tls.ClientHelloSpec {