Skip to content

Instantly share code, notes, and snippets.

@leo-aa88
leo-aa88 / bluetoothctl_guide.md
Created January 12, 2025 01:59
bluetoothctl guide

Guide to Connecting to a Bluetooth Device using bluetoothctl

This guide walks you through the process of connecting to a Bluetooth device on a Linux system using the bluetoothctl command-line tool. It covers initial setup, scanning, pairing, and connecting procedures, along with troubleshooting tips.

Prerequisites

  • A Linux distribution with Bluetooth support (e.g., Arch Linux).
  • The bluez package installed, which provides bluetoothctl and related utilities.
  • A working Bluetooth adapter installed on your system.
  • Sudo privileges to execute commands that require root access.
@Pythonation
Pythonation / prompt.md
Last active October 2, 2026 15:31
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

@eliottness
eliottness / README.md
Last active October 2, 2026 15:27
Bitwarden SSH agent in WSL2 via a systemd user service (socat + npiperelay) — with the gotchas that make ssh-add hang

Bitwarden SSH agent in WSL2 (via systemd)

Use the SSH keys stored in your Windows Bitwarden Desktop vault from inside WSL2 — ssh, git, ssh-add, etc. — managed by a systemd user service instead of a fragile .zshrc snippet.

This bridges the Windows OpenSSH-agent named pipe that Bitwarden exposes (\\.\pipe\openssh-ssh-agent) to a Unix socket inside WSL using npiperelay + socat.

@wojteklu
wojteklu / clean_code.md
Last active October 2, 2026 15:26
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

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.

BLACK => "\033[30m",
RED => "\033[31m",
GREEN => "\033[32m",
YELLOW => "\033[33m",
BLUE => "\033[34m",
PURPLE => "\033[35m",
CYAN => "\033[36m",
WHITE => "\033[37m",
# background color
@JBlond
JBlond / bash-colors.md
Last active October 2, 2026 15:22 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@myheart111
myheart111 / How to download from pan.baidu.com, pan.quark.cn and 123pan without an account (2026).md
Last active October 2, 2026 15:22
How to download from pan.baidu.com, pan.quark.cn and 123pan without an account (2026)

How to download from pan.baidu.com, pan.quark.cn and 123pan without an account (2026)

Looking for a way to download a Baidu Netdisk (百度网盘), Quark Pan (夸克网盘) or 123pan (123云盘) share link without a Chinese phone number, without the app and without the 50 KB/s free speed? This is the step-by-step I use in 2026. One website, three clouds, no account — you paste the link, you see the real size and the price, then you get a normal download link.

🔄 Update (25 September 2026) — 123pan added The tricks that used to work — PanDownload, baidu.kinh.cc, browser userscripts, "cracked" Netdisk clients, Telegram "parser" bots — are dead, banned within days, or malware. The same wall now exists on Quark Pan, which replaced Baidu Pan on most Chinese forums, and since 26 November 2025 on 123pan too: the "guest download under 100 MB" is gone, every download needs a logged-in account with a +86 number and a 10 GB monthly quota. The method below works for **pan.baidu.com/s/…, `pan.quark.cn/s/…

@eisenwave
eisenwave / case_against_almost_always_auto.md
Last active October 2, 2026 15:18
The case against Almost Always `auto` (AAA)

The case against Almost Always auto (AAA)

Introduction

I've been writing C++ for half a decade now, and auto has always been a great source of discomfort to me. Whenever I came back to a past project that makes extensive use of it, I found myself confused, and first had to look at all the types before I could make sense of it.

Similarly, I've worked as an intern at a company that had a AAA policy for its code base. Whenever something didn't work, and I had to debug some code, half the time was spent just looking up types.