#!/usr/bin/env bash set -euo pipefail BASE_DIR="$(cd "$(dirname "$0")" && pwd)" mkdir -p "$BASE_DIR/generated" chmod +x "$BASE_DIR/scripts/probe.sh" chmod +x "$BASE_DIR/scripts/render-config.py" if [ -f "$BASE_DIR/scripts/burst-95.sh" ]; then chmod +x "$BASE_DIR/scripts/burst-95.sh" fi if [ -f "$BASE_DIR/scripts/normal-80.sh" ]; then chmod +x "$BASE_DIR/scripts/normal-80.sh" fi "$BASE_DIR/scripts/probe.sh" python3 "$BASE_DIR/scripts/render-config.py" sudo systemctl daemon-reload sudo systemctl restart ollama echo echo "=== machine profile ===" cat "$BASE_DIR/generated/machine-profile.json" echo echo "=== continue config ===" echo "~/.continue/config.yaml updated" echo echo "=== ollama limits ===" systemctl show ollama | grep -E 'CPUQuota|MemoryHigh|MemoryMax'