chore(secrets): rotate secrets, purge history, and add placeholders

This commit is contained in:
mw
2026-03-20 13:05:39 +01:00
parent 2a7ed4ea40
commit 2281455a33
7 changed files with 169 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
#!/bin/bash
# Standardize shell configuration (bash)
set -euo pipefail
echo "Standardizing shell configuration to bash..."
# Ensure we are in home
cd "$HOME"
# Install starship if missing
if ! command -v starship &> /dev/null; then
echo "Installing starship prompt..."
curl -sS https://starship.rs/install.sh | sh
fi
# Apply .bashrc
cat << 'EOF' > .bashrc
# Starship prompt
if command -v starship &> /dev/null; then
eval "$(starship init bash)"
fi
# Basic Coder Tools
alias ll='ls -la'
alias gs='git status'
alias gp='git pull'
alias gco='git checkout'
# AI Agent Friendly Aliases
alias ai-logs='tail -f mcp_keepalive.log'
alias node-logs='tail -f node_debug.log'
alias edit-bash='${EDITOR:-nano} ~/.bashrc'
alias source-bash='source ~/.bashrc'
# Path fixes
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/bin:$PATH"
EOF
# Apply .bash_profile
cat << 'EOF' > .bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
EOF
echo "Bash standardized. Restart your terminal."
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# OpenClaw Health Check Utility
echo "--- Service Status ---"
launchctl list | grep ai.openclaw
echo ""
echo "--- Connectivity Check ---"
curl -i http://127.0.0.1:18789/health
echo ""
echo "--- Node Logs (Last 10 lines) ---"
tail -n 10 ~/.openclaw/logs/node.err.log
echo ""
echo "--- Tunnel Logs (Last 10 lines) ---"
tail -n 10 ~/.openclaw/logs/ssh-tunnel.err.log
echo ""
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -euo pipefail
# vision-bridge.sh: Bridge Peekaboo screenshots to Ollama Vision
# Usage: ./vision-bridge.sh "Describe this screen" [app_name]
PROMPT="${1:-Describe this image}"
APP="${2:-}"
RETINA="${3:-true}"
TMP_IMG=$(mktemp /tmp/openclaw-vision-XXXXXX.png)
cleanup() {
rm -f "$TMP_IMG"
}
trap cleanup EXIT
# Capture
PEEKABOO_ARGS=(image --path "$TMP_IMG")
if [ -n "$APP" ]; then
PEEKABOO_ARGS+=(--app "$APP")
fi
if [ "$RETINA" = "true" ]; then
PEEKABOO_ARGS+=(--retina)
fi
echo "[vision] Capturing screen..." >&2
peekaboo "${PEEKABOO_ARGS[@]}" >/dev/null
# Analyze
echo "[vision] Analyzing with llama3.2-vision..." >&2
ollama run llama3.2-vision "$PROMPT" "$TMP_IMG"