Skip to content

Instantly share code, notes, and snippets.

@TheCjw
TheCjw / extract_bun.js
Created June 5, 2026 03:34
A standalone Bun/JavaScript CLI tool that parses the .bun section from PE, ELF, and Mach-O executables compiled with bun build --compile, listing and extracting the embedded source files, assets, and native libraries.
#!/usr/bin/env bun
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
import path from "node:path";
const TRAILER = Buffer.from("\n---- Bun! ----\n");
const BUN_SECTION_NAME = ".bun";
const OFFSET_STRUCT_SIZE = 32;
const MODULE_RECORD_SIZE = 52;

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.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active July 2, 2026 07:32
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on 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 most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@Postrediori
Postrediori / Upgrade-DigitalOcean-Ubuntu-Droplet-LTS.md
Last active July 2, 2026 07:31
Upgrade DigitalOcean Ubuntu Droplet to the Next LTS Version

Description

The instructions here cover upgrading Ubuntu droplet from one LTS release to the next one. This was used to incrementally upgrade from Ubutnu 16.04 to 20.04 via 18.04.

Instructions

Perform standard update

@Mike-Schvedov
Mike-Schvedov / PlayerMovement.cs
Created August 29, 2024 12:36
PlayerMovement - Survival Series Episode 1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public CharacterController controller;
public float speed = 12f;
public float gravity = -9.81f * 2;

テクニック値の計算

間違っている可能性が多分にあります

計算に使われる定数

近くの選手の値への倍率5
ダブルのときの補正20 トリプルのときの補正40
@MilesCranmer
MilesCranmer / arxiv_red_header.user.js
Last active July 2, 2026 07:31
Userscript to restore the red arXiv header. Install with Tampermonkey.
// ==UserScript==
// @name arXiv red header
// @namespace https://arxiv.org/
// @version 1.2
// @description Revert the June 2026 black arXiv header to the classic red (#b31b1b) with the old white logo
// @match https://arxiv.org/*
// @match https://*.arxiv.org/*
// @run-at document-start
// @grant GM_addStyle
// ==/UserScript==
@minhqnd
minhqnd / export_fap_calendar.md
Last active July 2, 2026 07:27
Xuất lịch học từ FAP (FPT Academic Portal) sang file ICS để import vào Apple Calendar / Google Calendar.

FAP to Calendar

Xuất lịch học từ FAP (FPT Academic Portal) sang file ICS để import vào Apple Calendar / Google Calendar.

Tính năng

  • Xuất lịch học của tất cả các môn trong kỳ hiện tại
  • Support vị trí 5 cơ sở FPT: Hòa Lạc, Đà Nẵng, Cần Thơ, HCM, Quy Nhơn
  • Tự động thông báo thời gian di chuyển dựa vị trí trên