Skip to content

Instantly share code, notes, and snippets.

@fkjbvfdvbnfdkjvbjfhd
fkjbvfdvbnfdkjvbjfhd / sexcalibur.mkdn
Created April 23, 2025 11:44
Working around Casper Excalibur BIOS boot order quirk on Linux

Alright, you installed your first Linux distro. You didn't want to lose data, or have Windows lying around "just in case". However, you want to be able to boot into Linux without having to go through the boot menu again and again.

You've heard from your Linux user friends that Linux has a boot manager that also detects Windows, so you want Linux to be on top of Windows.

So, you do what others have been doing for years since UEFI came to be: Boot into BIOS, head to change the boot order. But, would you look at that! Linux didn't register itself to the BIOS's boot menu!

Then you go, "Okay, I've read online that efibootmgr can get this resolved just by changing the boot order!" That's supposed to work since this is UEFI, right?

So you boot back into Linux and use efibootmgr to change the boot order. However, the next boot still boots directly into Windows. You go to the boot menu and your order customization didn't register at all.

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.

A metatable in Lua defines various extraneous behaviors for a table when indexed, modified, interacted with, etc. They are Lua's core metaprogramming feature; most well known for being useful to emulate classes much like an OOP language.

Any table (and userdata) may be assigned a metatable. You can define a metatable for a table as such:

-- Our sample table
local tab = {}
-- Our metatable
local metatable = {
 -- This table is then what holds the metamethods or metafields
@AminulBD
AminulBD / bootstrap.sh
Last active October 17, 2026 12:08
Ubuntu Server LEMP Setup script
#!/bin/bash
DEBIAN_FRONTEND="noninteractive"
# Default values for parameters
DEFAULT_PHP_VERSION=8.4
DEFAULT_NODE_VERSION=24
DEFAULT_DOMAIN="example.test"
DEFAULT_USER="example"
DEFAULT_MYSQL_PASSWORD=$(openssl rand -base64 10)
@cenekSvoboda
cenekSvoboda / P vs NP Millennium Prize
Last active October 17, 2026 12:19
P vs NP Millennium Prize
<html>
<head>
<title>
P vs NP Millenium problem
</title>
</head>
<body>
<div id="a">
</div>
</body>
#!/usr/bin/env bash
set -euo pipefail
ROOT="${HOME}"
PATTERN="token|api|key"
usage() {
cat <<'EOF'
Scan for env files under a root directory that contain sensitive-looking patterns.
@godspeed-003
godspeed-003 / README.md
Last active October 17, 2026 12:02
Get $855+ Worth of Free AI API Credits with AgentRouter and 9 Other Platforms — Full Claude Desktop Setup

Get $855+ Worth of Free AI API Credits with AgentRouter and 9 Other Platforms — [Full Claude Desktop Setup]

Last Update: 0️⃣4️⃣/0️⃣9️⃣/2️⃣0️⃣2️⃣6️⃣
Know other free services like these? Share them in the comment, and I'll add them to the list.
Shortlink: https://freeclaude.s.gy/api

Most people are paying for Claude Pro when they don't have to. These 10 platforms give you free API credits on signup, some with daily top-ups too. You plug your key into Claude Desktop's developer mode and get the same Opus 5 / Opus 4.8 experience — no subscription needed.

GitHub account must be at least 1 year old to Sign Up.
[Some platforms may require more than one year.]

@anxkhn
anxkhn / VSCode_Marketplace_Tutorial.md
Last active October 17, 2026 11:55
Enable Marketplace on non MS VSCode Forks.

Enabling VS Code Marketplace in VSCodium and Trae

Microsoft claims Visual Studio Code (VS Code) is open source, yet it restricts the use of its Marketplace extensions in non-Microsoft products like VSCodium (telemetry/tracking free open source fork), Cursor, Windsurf, Trae, and other VS Code-based IDEs, enforcing what some see as monopolistic control. This guide provides a workaround to enable the VS Code Marketplace in VSCodium and Trae (more to be added soon), allowing you to freely use extensions. Note that using the VS Code Marketplace with non-Microsoft products may violate its terms of use, which state that extensions are intended for use only with Microsoft Visual Studio products. Proceed at your discretion after reviewing the terms.


Enabling VS Code Marketplace in VSCodium

To configure VSCodium to use the VS Code Marketplace instead of the default OpenVSX Registry, you can either set environment variables or create a custom product.json file.