Skip to content

Instantly share code, notes, and snippets.

@robert-saramet
robert-saramet / riscv_guide_1.md
Created July 19, 2025 10:11
Comprehensive Guide to 32-Bit RISC-V Assembly Programming (RV32I)

Comprehensive Guide to 32-Bit RISC-V Assembly Programming (RV32I)

This guide provides a thorough introduction to programming in 32-bit RISC-V assembly language, focusing on the RV32I base integer instruction set. It starts with content from this cheat sheet and expands it into a complete, structured reference. The guide is organized for easy navigation, with clear sections, tables for listings, explanations, examples, and notes. It draws from official specifications and tutorials to ensure accuracy and completeness. Beginners can follow sequentially, while experienced users can reference specific sections.

Key assumptions:

  • We use the GNU Assembler (GAS) syntax, common for RISC-V tools.
  • Examples assume a bare-metal or simple simulator environment (e.g., RARS, Spike, or QEMU).
  • RV32I is the base; extensions like M (multiply/divide) are noted but not required unless specified.
  • Code snippets are testable in simulators; error handling and overflows are ign
@karl-zylinski
karl-zylinski / android_setup.odin
Last active December 6, 2026 08:17
Download the Android SDK, Android NDK and JRE in a portable way so that Odin can it for building Android apps.
/* This program downloads the Android SDKs and Java Runtime Environment (JRE) in a portable way. It
will all just end up in a folder. It can then be used for building Odin Android apps. It can be used
for non-Odin things as well.
`odin run odin_android_setup.odin -file -- path/where/you/want/the/stuff`
After the install, the program will tell you which environment variables you need to set for Odin to
use the downloaded stuff.
-------
@syhily
syhily / SKILL.md
Created October 26, 2026 10:06
把扫描版中文书籍 PDF 制作成排版精良的 EPUB 3 电子书的 SKILL
name scanned-book-to-epub
description 把扫描版中文书籍 PDF 制作成排版精良的 EPUB 3 电子书并发布到 GitHub Releases 的完整工作流——书籍勘察、脚手架移植、MinerU 双模式 OCR(pipeline 底稿 + vlm 交叉比对)、并行子代理 swarm 交叉校对(Ghostscript 渲染原页裁决分歧、页底脚注逐页补回)、pandoc + Lua 过滤器构建、tag 触发 CI 发布。当用户要把某本扫描书/PDF 做成 EPUB 电子书、提到"OCR 实现 EPUB"、"孙绍振系列"、"close-reading-of-* 项目"、"审校完前不要打 tag"等时使用。已验证项目:syhily/close-reading-of-masterpieces(名作细读)、syhily/close-reading-of-classical-poetry(月迷津渡)、syhily/close-reading-of-classical-prose(古典散文解读全编,455 页 62 篇,7 代理 swarm 完成)。

扫描书 → EPUB 工作流

把一本扫描版中文书做成 EPUB 3 并发布 GitHub Release。六个阶段:勘察 → 脚手架 → OCR → swarm 交叉校对 → 全书统一与卫生检查 → 构建发布。

模板项目

@eyelash
eyelash / kde_plasma_wallpapers.md
Last active December 6, 2026 08:09
KDE Plasma Default Wallpapers

KDE Plasma Default Wallpapers

6.8

@crxssrazr93
crxssrazr93 / sunshine-headless-virtual-display-wayland-linux.md
Last active December 6, 2026 08:07
How to create a virtual dummy display for Sunshine on headless Linux Wayland (KDE Plasma/GNOME) without an HDMI/DisplayPort dummy plug. Fixes Sunshine 'Unable to find display or encoder', empty KMS monitor list, and Moonlight Error 503 using a forced connector + synthetic EDID + multi-GPU adapter_name.

How to Create a Virtual Dummy Display for Sunshine on Wayland (Headless Linux, No HDMI/DisplayPort Dongle)

A complete, tested guide to running Sunshine game streaming on a headless Linux Wayland desktop (KDE Plasma, GNOME, wlroots) without a physical HDMI or DisplayPort dummy plug. This fixes the common Sunshine startup errors on a monitorless PC by forcing a virtual display connector and feeding it a synthetic EDID, so Sunshine and Moonlight get a real capturable screen.

Keywords: Sunshine headless display, virtual display Linux, Wayland dummy plug alternative, Moonlight headless streaming, EDID override, KMS capture, KDE Plasma Wayland, multi-GPU Sunshine, AMD amdgpu, NVIDIA, Error 503.

The problem this solves

On a headless machine (no monitor attached), Sunshine has nothing to capture, so it fails at startup with errors like:

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.

@xikhar
xikhar / metroidvania-prompt.md
Created December 1, 2026 22:06
metroidvania-prompt

Build a high quality complete pixel style metroidvania game in the browser.

Platform and constraints: It should run in the browser. Graphics drawn using webgl. Gameplay engine built on top of webgl as well, no external libraries. you need to invent all the code to make and run the game great.

First part: Research. It needs to be a Metroidvania, so research on how they look like and what are the gameplay mechanisms, camera movements, world design, Techniques to build it. Webgl things to understand. study the existing games for some references. Read ENGINE section below for what more to research on that.

Second part: reference & Design. Use PIXELGAME.jpg in main-ref folder as the source of truth. Use available models on FAL MCP to generate more reference images as you need, or any video that you need. The first part of the process is to explore reference ideas and have a concrete plan of what to build, along with what it should look like. And the entire theme should be consistent across the game. generate mo

@rapinsa
rapinsa / block_gc.txt
Last active December 6, 2026 07:47 — forked from MewX/block_gc.txt
Block Adobe Hosts C:\drivers\etc\hosts
For anyone who might read this in the future, I've found the best solution to this problem. For some reason I didn't need to go through all these steps on my surface pro adobe programs, but my desktop gave me issues. So if you're still having issues after doing the following, read on.
If you just end the process in Task Manager, the pop-up comes back up eventually.
If you just delete the files in "C:\Program Files (x86)\Common Files\Adobe\AdobeGCClient" or the folder itself, they may just recreate themselves every day or two.
If you delete/disable the Adobe services or schedules in Task Scheduler, those may just come back too.
To solve these issues, I decided to make a .bat file that deletes every file in that AdobeGCClient folder (exact location may depend on your Adobe install folder) and schedule it to do this every time I log on/turn on my pc. So far that has worked for the past few days.
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 6, 2026 07:41
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest