Skip to content

Instantly share code, notes, and snippets.

View turboBasic's full-sized avatar
🔮
Focusing

andriy melnyk turboBasic

🔮
Focusing
View GitHub Profile
@turboBasic
turboBasic / llm-wiki.md
Created June 26, 2026 22:40 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@turboBasic
turboBasic / git-commit-size
Last active June 10, 2025 08:55 — forked from kobake/git-commit-size.sh
Calculate size of a git commit object #git
# Calculate the size of a git commit in bytes.
function git-commit-size() {
# This script calculates the size of a git commit in bytes.
# Usage: git-commit-size.sh <commit hash>
#
# Example:
# git-commit-size.sh 1234567
#
# Output:
# The total size of the commit in bytes, formatted with thousands separators.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@turboBasic
turboBasic / sampleREADME.md
Created January 30, 2021 22:27 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@turboBasic
turboBasic / SemVer.groovy
Created November 28, 2020 13:07 — forked from michaellihs/SemVer.groovy
Semantic Versioning class for Groovy #groovy
enum PatchLevel {
MAJOR, MINOR, PATCH
}
class SemVer implements Serializable {
private int major, minor, patch
SemVer(String version) {
def versionParts = version.tokenize('.')
@turboBasic
turboBasic / sed cheatsheet
Created September 20, 2020 18:54 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@turboBasic
turboBasic / Jenkinsfile.groovy
Last active August 7, 2020 13:32 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes #jenkins #groovy #shell
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER'
// 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"'
// 1
@turboBasic
turboBasic / Resize-Image.ps1
Last active July 15, 2018 16:11 — forked from someshinyobject/PowerShell: Resize-Image
[Resize-Image.ps1] Installation: `Install-Package -ProviderName Gist -Name Resize-Image.ps1 -Source turboBasic; Import-Module $ENV:localAppData/Oneget/Gist/Resize-Image.ps1'
<#
.SYNOPSIS
Resize an image
.DESCRIPTION
Resize an image based on a new given height or width or a single dimension and a maintain ratio flag.
The execution of this CmdLet creates a new file named "OriginalName_resized" and maintains the original
file extension
.PARAMETER Width
The new width of the image. Can be given alone with the MaintainRatio flag
.PARAMETER Height
@turboBasic
turboBasic / Get-LatestUpdate.ps1
Last active March 15, 2018 20:44 — forked from keithga/Get-LatestUpdate.ps1
script to get latest Cumulative update for various builds of Windows 10 and Windows Server 2016
<#
.SYNOPSIS
Get the latest Cumulative update for Windows
.DESCRIPTION
This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog.
.NOTES
Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved.
@turboBasic
turboBasic / 0_reuse_code.js
Created August 29, 2017 15:30
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console