Spice up termux with beautiful themes and productivity plugins to make your life easier!
pkg install zsh git lsd vim
Install Oh-My-Zsh
Spice up termux with beautiful themes and productivity plugins to make your life easier!
pkg install zsh git lsd vim
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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.
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.
| #!/bin/sh | |
| set -fuC | |
| # --- USER CONFIG STARTS --- | |
| IN_KEYS="ingress|input|incoming|ollama" | |
| OUT_KEYS="egress|output|outgoing" | |
| SEC_KEYS="drop|deny|reject|block" | |
| # --- USER CONFIG ENDS --- | |
| show_help() { |
When working with forks in Git, you may need to pull specific commits from one fork to another. This can be useful when you want to include a specific change from one fork to another without merging the entire branch.
From another fork to your fork
From your fork to another fork
git log after fetching.| netsh advfirewall firewall add rule name="ADB WSL2: Open Port 5037" dir=in action=allow protocol=TCP localport=5037 remoteip=172.16.0.0/12 profile=domain,private |
Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
| ## | |
| # Copyright (c) 2020 Valentin Weber | |
| # | |
| # After some minor modifications (as marked below) this EventGhost | |
| # Python script provides a method to send requests to devices | |
| # registered with the Join API <https://joaoapps.com/join/api/> from | |
| # any EventGhost Python Script or Command. | |
| # | |
| # EventGhost usage: `eg.globals.JoinPushDevice(text="hello_world")` | |
| ## |
| /* | |
| * "Bleh" -- a "potato-friendly" cmatrix clone. | |
| * | |
| * Screenshot: https://i.imgur.com/dt6RmU7.png | |
| * | |
| * Adapted to Windows from: | |
| * https://www.reddit.com/r/commandline/comments/1jcnyht/bleh_a_potatofriendly_cmatrix_clone/ | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> |
| #!/bin/bash | |
| # Remove existing "nameserver" lines from /etc/resolv.conf | |
| sed -i '/nameserver/d' /etc/resolv.conf | |
| # Run the PowerShell command to generate "nameserver" lines and append to /etc/resolv.conf | |
| # we use full path here to support boot command with root user | |
| /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -Command '(Get-DnsClientServerAddress -AddressFamily IPv4).ServerAddresses | ForEach-Object { "nameserver $_" }' | tr -d '\r'| tee -a /etc/resolv.conf > /dev/null |