Skip to content

Instantly share code, notes, and snippets.

View Pent's full-sized avatar
🧲
magnetizing

Pent

🧲
magnetizing
View GitHub Profile
@ruvnet
ruvnet / Poison.md
Created October 16, 2025 11:59
A Rust-WASM Document Sanitization Middleware

Building poison-pill: A Rust-WASM Document Sanitization Middleware

Introduction

Document poisoning attacks represent a critical and unsolved vulnerability in LLM applications. Research shows just 250 malicious documents can backdoor LLMs of any size, while 5 poisoned documents can compromise RAG systems with millions of entries. This implementation plan provides a complete roadmap for building “poison-pill” - a high-performance, Rust-based WASM middleware that sanitizes documents before they reach LLMs, distributed via npm and executable through npx.


1. DOCUMENT POISONING ATTACKS: The Threat Landscape

@lfhbento
lfhbento / userscript.js
Last active January 17, 2026 07:15 — forked from spf13/script.js
Download all your Kindle books before Feb 26, 2025
// ==UserScript==
// @name Kindle Download
// @namespace http://tampermonkey.net/
// @version 2025-02-20
// @description Download all your kindle books
// @author You
// @match https://www.amazon.com/hz/mycd/digital-console/contentlist/booksPurchases/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com
// @grant none
// ==/UserScript==
@Artefact2
Artefact2 / README.md
Last active March 30, 2026 04:15
GGUF quantizations overview
@pixelass
pixelass / config.json
Created February 5, 2024 14:40
SD 1.5 person LoRA config with AdamW and token shuffling
{
"LoRA_type": "Standard",
"LyCORIS_preset": "full",
"adaptive_noise_scale": 0,
"additional_parameters": "",
"block_alphas": "",
"block_dims": "",
"block_lr_zero_threshold": "",
"bucket_no_upscale": true,
"bucket_reso_steps": 64,
@btbytes
btbytes / rust.png
Last active December 18, 2025 07:45
Rust Strings
rust.png
git clone https://github.com/cpacker/MemGPT.git
conda create -n memgpt python=3.10
conda activate memgpt
cd memgpt
pip install -r requirements.txt
export OPENAI_API_KEY="YOUR_API_KEY"
# download .txt docs from: https://huggingface.co/datasets/MemGPT/example-sec-filings/tree/main
# place in "memgpt/personas/examples/preload_archival/*.txt"
python3 main.py --archival_storage_files_compute_embeddings="memgpt/personas/examples/preload_archival/*.txt" --persona=memgpt_doc --human=basic
@btbytes
btbytes / llm-training.md
Last active February 11, 2026 22:05
Copy of https://rentry.org/llm-training. Updated 2024-03-03

-> lmg-train.png<-

The Novice's LLM Training Guide

->Written by Alpin<- ->Inspired by /hdg/'s LoRA train rentry<- !!!warning This guide is being slowly updated. We've already moved to the axolotl trainer.


[TOC2]

@mberman84
mberman84 / gist:f092a28e4151dd5cecebfc58ac1cbc0e
Last active June 23, 2024 15:34
Steps to install Textgen WebUI
# this tutorial assumes conda and git are both installed on your computer
conda create -n tg python=3.10.9
conda activate tg
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
git clone https://github.com/oobabooga/text-generation-webui.git
cd text-generation-webui
pip install -r requirements.txt
# GPU only:
@vizsumit
vizsumit / LoraConfig.json
Last active June 25, 2025 18:13
settings for Kohya_ss LoRA Training
{
"LoRA_type": "Standard",
"adaptive_noise_scale": 0,
"additional_parameters": "",
"block_alphas": "",
"block_dims": "",
"block_lr_zero_threshold": "",
"bucket_no_upscale": true,
"bucket_reso_steps": 64,
"cache_latents": true,