Compare commits

..
3 Commits
Author SHA1 Message Date
liph d6fd64c8af add lxc-update 2026-08-04 11:22:17 +02:00
liph 27abec8ab7 updated pi 2026-08-04 10:41:59 +02:00
liph b164f3e43a Stop tracking herdr session-history.json; it is already ignored 2026-07-29 13:56:15 +02:00
12 changed files with 156 additions and 61 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Submodule herdr_1/.config/herdr/plugins/.tmp-install-750065-1785311987680/checkout added at 5f76bc9eab
Submodule herdr_1/.config/herdr/plugins/github/herdr-bar-96eebe452a9c added at 58c23e5c8d
Submodule herdr_1/.config/herdr/plugins/github/herdr-lazygit-b11d62e75f78 added at a13e12c99e
Submodule herdr_1/.config/herdr/plugins/github/herdr-spreader-f248c87aa2e2 added at 5f76bc9eab
Submodule herdr_1/.config/herdr/plugins/github/herdr-zoxide-f7b96c313637 added at 7be842fe84
Submodule herdr_1/.config/herdr/plugins/github/osamahbeig.pane-mover-d60fe0209b83 added at a9fde7a4f9
Submodule herdr_1/.config/herdr/plugins/github/sessionizer-66e03d1ff740 added at d3476681fe
+33
View File
@@ -0,0 +1,33 @@
---
description: Research a topic via web browsing without modifying files
argument-hint: "<topic>"
---
Research the following topic thoroughly using web browsing and search tools: **$1**
## Guidelines
- **Do NOT modify, create, or delete any files.** This is a research-only task.
- Use web search and fetch tools (e.g., `web_explore`, `ollama_web_search`, `ollama_web_fetch`, or `ctx_fetch_and_index`) to gather authoritative, current information.
- If the topic has multiple sub-questions or angles, break them down and cover each.
- Cross-reference multiple sources where appropriate; prefer primary/official sources.
- Cite sources inline (URLs or titles) so findings are verifiable.
## Output
Produce a well-structured research summary suitable for being saved as a Markdown file. Include:
1. **Overview** — short summary of the topic
2. **Key Findings** — main points, organized by sub-topic
3. **Details & Evidence** — supporting facts, figures, quotes, with source URLs
4. **Open Questions / Caveats** — anything unresolved, conflicting, or uncertain
5. **Sources** — consolidated list of references
Keep the output focused and skimmable — use headers, bullet points, and short paragraphs.
## After presenting the findings
Ask the user:
> "Would you like me to save these findings to a `.md` file? (if so, propose a filename based on the topic)"
Only create the file if the user explicitly confirms.
+2 -2
View File
@@ -11,8 +11,8 @@
"npm:@demigodmode/pi-web-agent" "npm:@demigodmode/pi-web-agent"
], ],
"defaultProvider": "ollama", "defaultProvider": "ollama",
"defaultModel": "kimi-k2.7-code:cloud", "defaultModel": "kimi-k2.6:cloud",
"defaultThinkingLevel": "medium", "defaultThinkingLevel": "high",
"subagents": { "subagents": {
"agentOverrides": { "agentOverrides": {
"scout": { "scout": {
+112
View File
@@ -0,0 +1,112 @@
#!/bin/bash
# LXC Arch Container Cleanup Script
# Usage: sudo bash cleanup.sh [--auto]
set -euo pipefail
AUTO=0
if [[ "${1:-}" == "--auto" ]]; then
AUTO=1
fi
ask() {
if [[ $AUTO -eq 1 ]]; then
return 0
fi
read -rp "$1 [y/N]: " ans
[[ "$ans" =~ ^[Yy]$ ]]
}
# --- PRE-CHECK ---
echo "=== Disk Usage (Before) ==="
df -h /
echo ""
# 1. PACMAN / PARU CACHE
if ask "Clean pacman package cache (keeps only latest 2 versions)?"; then
if command -v paccache &>/dev/null; then
paccache -rk2
else
echo "Installing pacman-contrib for paccache..."
pacman -S --noconfirm pacman-contrib
paccache -rk2
fi
fi
# 2. ORPHANED PACKAGES (pacman/paru)
echo ""
echo ">>> Checking for orphaned packages..."
orphans=$(pacman -Qdtq 2>/dev/null || true)
if [[ -n "$orphans" ]]; then
echo "Orphans found:"
echo "$orphans"
if ask "Remove orphaned packages?"; then
# shellcheck disable=SC2086
pacman -Rns --noconfirm $orphans
fi
else
echo "No orphaned packages found."
fi
# 3. PARU BUILD CACHE (AUR)
if command -v paru &>/dev/null; then
echo ""
if ask "Clean paru build cache (~/.cache/paru)?"; then
CACHE_DIR="${HOME}/.cache/paru"
if [[ -d "$CACHE_DIR" ]]; then
rm -rf "$CACHE_DIR/clone"/* 2>/dev/null || true
rm -rf "$CACHE_DIR/diffs"/* 2>/dev/null || true
echo "Paru cache cleaned."
fi
fi
fi
# 4. PODMAN CLEANUP
if command -v podman &>/dev/null; then
echo ""
echo ">>> Podman cleanup..."
dangling=$(podman images -f dangling=true -q 2>/dev/null || true)
if [[ -n "$dangling" ]]; then
echo "Dangling images found."
if ask "Remove dangling podman images?"; then
podman image prune -f
fi
else
echo "No dangling podman images."
fi
if ask "Run full podman system prune (removes unused containers, networks, images)?"; then
podman system prune -f
fi
else
echo "Podman not installed, skipping."
fi
# 5. JOURNAL LOGS
if ask "Vacuum systemd journal to 7 days / 100MB?"; then
journalctl --vacuum-time=7d --vacuum-size=100M
fi
# 6. TEMP FILES
if ask "Clean /tmp and /var/tmp (files older than 3/7 days)?"; then
find /tmp -type f -atime +3 -delete 2>/dev/null || true
find /var/tmp -type f -atime +7 -delete 2>/dev/null || true
echo "Temp files cleaned."
fi
# 7. TRIM (helpful on SSD/thin-provisioned storage)
if command -v fstrim &>/dev/null; then
if ask "Run fstrim to discard unused blocks?"; then
fstrim -av / 2>/dev/null || echo "fstrim failed or not supported by host storage"
fi
fi
# 8. LARGE LOG CHECK
echo ""
echo ">>> Large log files (>10MB) in /var/log:"
find /var/log -type f -size +10M -exec ls -lh {} + 2>/dev/null || true
echo ""
echo "=== Disk Usage (After) ==="
df -h /