All gists

santiago
Last active 1 hour ago vibecoded

plugin to make pi.dev / pi.gui send the session as user.id to avoid sharing KV_cache

0 0 1
1 /**
2 * DeepSeek `user_id` — ONE ID PER SESSION, never one shared value.
3 *
4 * DeepSeek's Chat Completions API accepts a custom `user_id` body parameter
5 * (https://api-docs.deepseek.com/quick_start/rate_limit) used for:
6 * - content-safety review isolation
7 * - KV-cache isolation
8 * - scheduling/concurrency isolation
9 *
10 * WHY PER SESSION. Those are ISOLATION keys: a single fixed value puts every session that uses it
santiago
Last active 1 hour ago atomique
0 0 1

Important Indexes — Atomique Knowledge Base

The atomique codebase is indexed in the context-mode knowledge base for cross-session recall. These indexes are how future sessions access project knowledge without re-reading source files.

Indexed Sources

Source label Path Contents
atomique-core Disks/System.atdsk/Lua/core/ 22 files — atm.lua, boot.lua, constants.lua, Window.lua, bookmarks.lua, url.lua, mainloop.lua, gfx.lua, animation.lua, etc.
santiago
Last active 1 hour ago

copy proxmoxHost info as json inside one LXC used to parse it and display it

0 0 1
1 #!/bin/bash
2
3 CTN=132
4
5 sudo pvesh get /nodes/proxmoxA/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxA.json' &
6
7 sudo pvesh get /nodes/proxmoxB/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxB.json' &
8
9 sudo pvesh get /nodes/proxmoxCase/status -o json-pretty | sudo pct exec $CTN -- sh -c 'cat > /var/www/html/nodes/proxmoxCase.json' &
santiago
Last active 1 hour ago
0 0 1
1 # add this to http section of nginx.conf
2 # Sends all virtual hosts access log to rsyslog on my goaccesss machine
3
4 log_format vhost_combined '$host $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
5 access_log syslog:server=66.66.66.66:514,facility=local7,severity=info vhost_combined;
6
7 # 66.66.66.66 = replace by IP of GoAccess machine running rsyslogd
8 # (in my case reachable on 10.x via wireguard tunnel from frontend)
9 # Make sure all virtual hosts do not have 'access_log off' or any other access log
10 # as this would override this global line
santiago
Last active 1 hour ago bash nginx

Script to update home IP in nginx conf

0 0 1
1 #!/usr/bin/env bash
2
3 # ------------------------------------------------------------------------------
4 # This will either allow automically with allowed IP or ask for auth otherwise
5 # in /etc/nginx/sites-available/search.lema.org
6 # ------------------------------------------------------------------------------
7 # satisfy any;
8 # include /etc/nginx/home_allow.conf;
9 # auth_basic "Restricted";
10 # auth_basic_user_file /etc/nginx/.htpasswd;