Skip to content

Instantly share code, notes, and snippets.

@riga
riga / README.md
Last active October 30, 2026 08:20
Event ID based splitting of 2024 MC samples into 2024, 2025 and 2026 parts

Event ID based splitting of 2024 MC samples into 2024, 2025 and 2026 parts (based on splitmix64)

The snippets below demonstrate how to split MC events originally intended for the 2024 data-taking period into orthogonal parts that can be used to simulate the 2024, 2025 and 2026 data-taking periods. The splitting is done event-by-event and only depends on the event ID. The underlying algorithm is

  • fast,
  • deterministic (also across different working groups for synchronization purposes),
  • unbiased towards the event ID, and
  • splits events into three parts with frequencies that reflect the relative recorded luminosities in 2024, 2025 and 2026.
@flamerix-ai
flamerix-ai / README.md
Last active October 30, 2026 08:34
Claude Code burns ~15-20% of your tokens on a 3-word status line: a Bun preload that turns agent_summary off · by Flamerix AI, flamerix.ai · MIT

Claude Code burns ~15–20% of your tokens on a 3-word status line. Here's how to turn it off

by Flamerix AI · MIT License

Tested on Linux, Claude Code 2.1.257–2.1.312; macOS reported working by others (see Tested versions). The binary is not modified (BUN_OPTIONS=--preload). An update can silently undo it, so see Verify.

TL;DR

Every ~30 seconds, Claude Code re-sends each background agent's full transcript to the model just to fill that agent's status line in the agents panel. no-agent-summary.js is a Bun --preload

@tharlab
tharlab / cloudflare_flexible_https.txt
Last active October 30, 2026 08:10
#!important cloudflare mode "flexible ssl/https"
#!important cloudflare mode "flexible ssl/https"
=======================================================
-WAJIB!! bwt RULE global > rule template > "Redirect HTTP request to HTTPS" > deploy
-flexible ssl/https optional set: SSL/TLS > Edge Certificates > Always Use HTTPS | Automatic HTTPS Rewrites
err related:
ERR_TOO_MANY_REDIRECTS
ref:
@AtmegaBuzz
AtmegaBuzz / gist:017300dd63906259be3f84a51f7279ea
Last active October 30, 2026 08:09
Multi modal setup for opencode

Multimodal OpenCode Agent Setup

A multi-agent AI coding system using OpenCode + RepoWise with automatic task routing across specialized models.

What you get: An orchestrator (Kimi 2.5) that automatically delegates to a planner (GLM-5), coder (Kimi 2.5), and reviewer (Claude Sonnet) based on your prompt keywords.


1. Install Dependencies

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Opinion Lexicon: Positive
;
; This file contains a list of POSITIVE opinion words (or sentiment words).
;
; This file and the papers can all be downloaded from
; http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html
;
; If you use this list, please cite one of the following two papers:

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.

@StarWishsama
StarWishsama / mixin.yml
Last active October 30, 2026 08:03
Clash Verge Personal Config
# Profile Enhancement Merge Template for Clash Verge
mode: rule
unified-delay: true
geodata-mode: true
geo-auto-update: true
geo-update-interval: 24
geox-url:
@edthrn
edthrn / Strong_Opinions_Weakly_Held.md
Created November 30, 2024 12:29
Paul Saffo's Essay / Strong Opinions weakly held

Strong Opinions weakly held

Orginally posted on 07.26.02008 by Paul Saffo, at https://saffo.com

The point of forecasting is not to attempt illusory certainty, but to identify the full range of possible outcomes. Try as one might, when one looks into the future, there is no such thing as “complete” information, much less a “complete” forecast. As a consequence, I have found that the fastest way to an effective forecast is often through a sequence of lousy forecasts. Instead of withholding judgment until an exhaustive search for data is complete, I will force myself to make a tentative forecast based on the information available, and then systematically tear it apart, using the insights gained to guide my search for further indicators and information. Iterate the process a few times, and it is surprising how quickly one can get to a useful forecast.

Since the mid-1980s, my mantra for this process is “strong opinions, weakly held.” Allow your intuition to guide you to a conclusion, no matter how imperfec

@greymd
greymd / sudo新一.md
Last active October 30, 2026 07:54
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

『 sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convert や ojichatや textimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ