Skip to content

Instantly share code, notes, and snippets.

@greymd
greymd / sudo新一.md
Last active July 2, 2026 06:14
sudo新一

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

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

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

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

@OrangeViolin
OrangeViolin / character-optimization-design--optimization-examples.md
Last active July 2, 2026 06:14
Game Design Skill for Claude Code - 基于《游戏设计的100个原理》的游戏设计全流程助手 | 仅供个人学习与娱乐

Min/Maxing Examples and Mitigations

Traditional D&D

  • Problem: Players dump Charisma to boost Strength
  • Mitigation: Charisma affects more mechanics (leadership, NPC reactions)
  • Result: Still possible, but trade-offs are meaningful

Dark Souls

  • Approach: Complex stat scaling system
  • Design: Each weapon scales with different stats

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.

@paragdangui
paragdangui / gist:5ba45f2ec7fc374d891dcb2ad0924a31
Created June 27, 2026 16:54
Codex Reset Expiration info script
PYTHON_BIN=""
for candidate in /opt/homebrew/bin/python3 /usr/local/bin/python3 /usr/bin/python3 python3; do
if command -v "$candidate" >/dev/null 2>&1; then
PYTHON_BIN="$(command -v "$candidate")"
break
fi
done
if [[ -z "$PYTHON_BIN" ]]; then
@muyuanlove
muyuanlove / lazy_script.js
Created September 19, 2024 09:21 — forked from dahaha-365/lazy_script.js
Clash Verge Rev 全局扩展脚本(懒人脚本配置)
/***
* Clash Verge Rev 全局扩展脚本(懒人配置)
* 这个全局脚本没在代理合集中测试过,按道理应该是用不了的
* 既然用懒人配置了,那请好好偷懒,别问太多为什么
* 这个配置主要实现的功能是按地区分策略组组,并且在组内排除高倍率节点
* 已经在高达不超过10个机场测试过了(没钱买更多的),兼容性很好(自我感觉),都能实现预期的功能
* 有些自己踩过坑的地方都已经注释了,希望我的理解没错
* 部分代码编写非常拙劣,sorr9ry lo~
*/
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@roseaar42
roseaar42 / README.md
Last active July 2, 2026 05:54
ecs-cdk-first-deploy-workaround.ts – CDK example: deploy ECS with a placeholder image to avoid first-deploy errors

ECS CDK First Deploy Workaround

This CDK example demonstrates how to avoid first-time ECS deployment errors that occur when your service references a container image in ECR that hasn't been pushed yet. It's a common issue when using CI/CD pipelines that build and push to ECR after the infrastructure stack is created.

Why This Matters

If your ECS Service tries to use an ECR image that doesn’t exist, CloudFormation will fail the deploy. This is especially problematic during the initial deployment of infrastructure and pipelines together, where the image is only built later.

What This Does