Skip to content

Instantly share code, notes, and snippets.

@cooperleong00
cooperleong00 / white-box_jailbreak.py
Last active October 15, 2026 03:00
white-box LLM jailbreak using weight orthogonization
# %%
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
import random
random.seed(42)
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from datasets import load_dataset
# %%

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.

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:

Windows key buttons

- Windows 11

- Windows 10

@omniscientpolymath
omniscientpolymath / ZenMemoryEfficiency_Guide.md
Last active October 15, 2026 02:54
Zen Browser Memory and Performance Efficiency Guide
Zen Browser

Zen Memory and Performance Efficiency Guide

A comprehensive guide for the Zen Browser to improve its efficiency, performance, and battery usage.

@ffunatsu
ffunatsu / 新月配列.yab
Last active October 15, 2026 02:52
新月配列.yab(やまぶきR、※ UTF-8ではなくUTF16-LEまたはShift-JISで保存しないと動きません。)
;新月配列 v1.0.0
;https://github.com/nagamine-git/shingetsu-layout
[ローマ字シフト無し]
1,2,3,4,5,6,7,8,9,0,-,^,¥
so,ko,si,te,lyo,tu,nn,i,no,ri,「
ha,ka,1,to,ta,ku,u,2,3,ki,’
su,ke,ni,na,sa,ltu,ru,,,.,/
[1ローマ字シフト無し]
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@mrcodedev
mrcodedev / linuxCommands.md
Created August 25, 2018 00:03
Comandos Linux

Información del sistema

  1. arch: mostrar la arquitectura de la máquina (1).
  2. uname -m: mostrar la arquitectura de la máquina (2).
  3. uname -r: mostrar la versión del kernel usado.
  4. dmidecode -q: mostrar los componentes (hardware) del sistema.
  5. hdparm -i /dev/hda: mostrar las características de un disco duro.
  6. hdparm -tT /dev/sda: realizar prueba de lectura en un disco duro.
  7. cat /proc/cpuinfo: mostrar información de la CPU.
  8. cat /proc/interrupts: mostrar las interrupciones.