santiago / deepseek_user_id_with_session_name
0 likes
0 forks
1 files
Last active
plugin to make pi.dev / pi.gui send the session as user.id to avoid sharing KV_cache
| 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 / copyHostsInfo.sh
0 likes
0 forks
1 files
Last active
copy proxmoxHost info as json inside one LXC used to parse it and display it
| 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 / are_games_running.sh
0 likes
0 forks
1 files
Last active
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | POWER_LIMIT=30 |
| 5 | |
| 6 | power="$(nvidia-smi --query-gpu=power.draw --format=csv,noheader,nounits 2>/dev/null | head -n1)" |
| 7 | |
| 8 | if [[ -z "$power" ]]; then |
| 9 | echo "OOPS: cannot read GPU power - check nvidia GPU driver" |
| 10 | exit 1 |
santiago / Frigate Proxmox Config
0 likes
0 forks
1 files
Last active
| 1 | # USB Coral device |
| 2 | #Intel GPU accel for proxmox-A |
| 3 | #Enable EFI for |
| 4 | #cpu%3A x86-64-v2-AES,flags=+aes |
| 5 | #hostpci0%3A 0000%3A00%3A02.0,pcie=1,x-vga=1 |
| 6 | # |
| 7 | #vga%3Anone is the only way it will work with acceleration |
| 8 | #so VNC will not work |
| 9 | #usb0%3A host=1a6e%3A089a |
| 10 | args: -cpu host,hv-vapic,hv-evmcs |
santiago / Upgrade snac to stable
0 likes
0 forks
1 files
Last active
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | #Pre existing cloned repo |
| 4 | cd $HOME/snac2 |
| 5 | |
| 6 | SNAC_USER=snac |
| 7 | SNAC_DATA=/home/snac/data |
| 8 | |
| 9 | separator() { |
| 10 | printf '=%.0s' $(seq $(tput cols)) |
santiago / /etc/nginx/update-home-ip.sh
0 likes
0 forks
1 files
Last active
| 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; |
Newer
Older