Skip to content

Instantly share code, notes, and snippets.

View mhmyu's full-sized avatar
🎯
🐜

yu mhmyu

🎯
🐜
View GitHub Profile
@mhmyu
mhmyu / Markdown-Instructions-for-AI--and-humans.md
Created August 25, 2026 13:38 — forked from eonist/Markdown-Instructions-for-AI--and-humans.md
Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

When creating Markdown (.md) files to standardize prompt instructions or best practices, clarity, consistency, and structure are paramount. Below is a comprehensive guideline on how to structure these files and what to do-and avoid-when authoring them.


Key Principles

  • Clarity: Use Markdown to make prompts and instructions easy to read, both for humans and AI models[6][8].
  • Consistency: Stick to a single Markdown flavor (e.g., CommonMark, GitHub Flavored Markdown) throughout your project[5].
@mhmyu
mhmyu / llm-wiki.md
Created August 24, 2026 22:25 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@mhmyu
mhmyu / README.md
Created August 7, 2026 22:01 — forked from mattezell/README.md
Install Antigravity 2.0 / Antigravity IDE on Linux from the official tarballs (user-local install, Ubuntu 24.04+ AppArmor handled)

Antigravity / Antigravity IDE — Linux tarball installer

Antigravity 2.0 and the Antigravity IDE currently ship for Linux as raw .tar.gz archives — no .deb, no .AppImage, no Flatpak, no installer. This gist is a small set of shell scripts that turn one of those extracted tarballs into a proper user-local install: a desktop launcher in your app menu, a CLI symlink on your $PATH, an icon, and (on Ubuntu 24.04+) a working Chromium sandbox via an AppArmor profile.

Status: community workaround. Replace with whatever Google ships

@mhmyu
mhmyu / googleurlparams.md
Created May 3, 2024 00:39 — forked from Sauerstoffdioxid/googleurlparams.md
Google/Blogger Image URL Parameters

Google/Blogger Image URL Parameters

This is an effort to document what is known about Google's (Blogger's/Blogspot's) image URL parameters. Some of these options were taken from existing first or third party documentation (see the links at the end of this document), but the majority is based off my own investigations.

Where to use them?

  • On Blogger's image URL's: 2.bp.blogspot.com/-OF7u67HQE1M/VHc8S8qJTDI/AAAAAAAACxI/UD-11c63diQ/s1600/005.png
  • On just about any googleusercontent image URL: https://lh3.googleusercontent.com/Jvmz11cLrvNIHG_LWjVO9B-UV2IN4Cfk1pycbhWZl6IriMgCAGCOFuBRtoHaiZ6xeVGqCugZcCql=w176-h176-n-o

Replace the bolded parts with the parameters.

@mhmyu
mhmyu / GitCommitEmoji.md
Created May 24, 2022 22:24 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Deploy Next.js static to GitLab pages

Create a basic GitLab CI config:

$ cat .gitlab-ci.yml
image: node

before_script:
 - npm install