Skip to content

Instantly share code, notes, and snippets.

View irfanbaigse's full-sized avatar
👨‍💻
JAVA - AWS - Flutter - MT5/MT4 - PHP - Bun

Irfan Baig irfanbaigse

👨‍💻
JAVA - AWS - Flutter - MT5/MT4 - PHP - Bun
View GitHub Profile

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.

@rymiwe
rymiwe / README.md
Last active July 10, 2026 06:46
Claude Code config backup with chezmoi - auto-sync settings, agents, rules across machines

Claude Code Config Backup

Automatically backup your Claude Code configuration to a private GitHub repo using chezmoi. Your settings, agents, rules, and project configs are version-controlled and synced across machines.

What you get:

  • Auto-backup of memory files, rules, settings, agents, and skills
  • Auto-push to your dotfiles repo via chezmoi's native autoPush
  • Auto-pull on session start to keep multi-machine setups in sync
  • Restore your full setup on any machine with two commands
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@Artefact2
Artefact2 / README.md
Last active July 15, 2026 13:32
GGUF quantizations overview

Pipeline version 1

pipeline {
  agent { label "linux" }
  stages {
    stage('Hello') {
      steps {
        sh '''
          aws --version
        '''
getStringValuesSF() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
//Return String
String stringValue = prefs.getString('stringValue');
return stringValue;
}
getBoolValuesSF() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
//Return bool
bool boolValue = prefs.getBool('boolValue');
@yunyu
yunyu / snapping_list_view.dart
Last active October 1, 2023 02:32
A Flutter PageView replacement/snapping ListView for fixed-extent items
import "package:flutter/widgets.dart";
import "dart:math";
class SnappingListView extends StatefulWidget {
final Axis scrollDirection;
final ScrollController controller;
final IndexedWidgetBuilder itemBuilder;
final List<Widget> children;
final int itemCount;
@MithraTalluri
MithraTalluri / BinarySearchConditions.csv
Last active March 7, 2022 02:20
Conditions for Binary Search
low high mid while(?)
mid + 1 mid - 1 low + ((high - low) / 2) low <= high
mid + 1 mid low + ((high - low) / 2) low < high
mid mid - 1 low + ((high - low + 1) / 2) low < high
mid mid X (infinite loop) X (invalid)
@wkliwk
wkliwk / btt.sh
Last active June 20, 2026 11:48
BTT reset trial time
# BetterTouchTool reset trial time
# ** All preference will reset
echo "remove ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist"
rm -rf ~/Library/Preferences/com.hegenberg.BetterTouchTool.plist
echo "Done"
echo "remove ~/Library/Application\ Support/BetterTouchTool/"
rm -rf ~/Library/Application\ Support/BetterTouchTool/
echo "Done"
@boeledi
boeledi / shared_preferences.dart
Last active January 28, 2024 22:23
Sample to show a way of using the SharedPreferences in a build
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
List<String> _languages = <String>['de','en','es','fr','it','nl','pt'];
class TestPage extends StatefulWidget {
@override
_TestPageState createState() => _TestPageState();