Skip to content

Instantly share code, notes, and snippets.

@bubasik
bubasik / debug_headers.php
Last active October 8, 2026 08:08
Как вытащить vpn список vless серверов из happ подписки для v2raya, v2rayN приложений и подключить устройств выше лимита по подписке
// Path to store all incoming requests
define('LOG_OUTPUT', __DIR__ . '/requests.log');
$data = sprintf(
"[%s]\n%s %s %s\n\nHTTP HEADERS:\n",
date('c'),
$_SERVER['REQUEST_METHOD'],
$_SERVER['REQUEST_URI'],
$_SERVER['SERVER_PROTOCOL']
);
@leo-aa88
leo-aa88 / bootable.md
Created February 14, 2024 12:42
Create bootable usb stick with dd

Creating a bootable USB stick using the dd command is a common task for installing or running a Linux distribution from a USB drive. The dd command is a powerful Unix utility for converting and copying files, and when used correctly, it can write an ISO image of an operating system to a USB stick, making it bootable. Here's a general outline of the steps you need to follow to use dd to create a bootable USB stick:

Step 1: Download the ISO Image

First, you need to download the ISO image of the operating system you want to install. Ensure you have the ISO file saved on your system.

Step 2: Identify the USB Stick

Before using dd, you need to identify the USB stick's device name in your system. Be very careful during this step because selecting the wrong device could overwrite data on another disk.

  1. Insert the USB stick into your computer.
  2. Open a terminal.
@coodoo
coodoo / session-1.md
Created September 6, 2026 05:55
Agentflow -- 幫你完美指揮 AI 做事的神兵利器

影片:https://youtu.be/-DiOWxu8VZ8


/* agentflow 起手式(安裝與使用) -------------------------------------------------- */

官網

- https://github.com/agfnow/agentflow
@pascalpoitras
pascalpoitras / 1.md
Last active October 8, 2026 07:29
My WeeChat configuration

This configuration is no longer updated

anonymous
anonymous / Python Wifi Connectivity Script For Linux
Created July 14, 2012 20:54
Easy Wifi Connection via Python
#!/bin/python
#
# Connects to a Wifi network
#
import os
def commandExists(command):
def canExecute(file):
return os.path.isfile(file) and os.access(file, os.X_OK)
@ogzhanolguncu
ogzhanolguncu / SKILL.md
Created October 4, 2026 18:54
socratic-code-mentor: a Claude Code skill for learning by building. You write the core, the LLM mentors and does the grunt work. Install: save as ~/.claude/skills/socratic-code-mentor/SKILL.md
name socratic-code-mentor
description Mentor a user who builds a project to learn how it works. They write the core; you do all other work and keep it fun. Use when the user says "teach me", "guide me", "mentor me", "hints only", "no spoilers", "Socratic", or "help me learn X by building it", or when a project file says the project is for learning. Do not use for normal feature work. Do not use when the first request is "just fix it" or "write it for me".
@pavel-kirienko
pavel-kirienko / disable_windows_security.ps1
Last active October 8, 2026 07:11
A script that disables Windows security features: Defender, Firewall, UAC, SmartScreen, Windows Update, etc.
# This script will disable most of the Windows security-related features.
# It is mostly intended for use in disposable VMs, such as simulation and CI/CD runners.
# Read the source to see what exactly is done.
# Author: Pavel Kirienko <pavel.kirienko@zubax.com>
# Relaunch elevated if needed
$IsAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
if (-not $IsAdmin) {
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<meta content="#5865F2" name="theme-color">
<script id="discord:component-embed" type="application/json">

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.