Skip to content

Instantly share code, notes, and snippets.

@longavailable
longavailable / .env
Last active May 2, 2026 05:24
Ollama local Embedding: miti99/gte-qwen2 + LLM: llama3.1:8b
# Ollama local embedding、 llm 代替 openai 云端模型
# Ollama local Embedding: miti99/gte-qwen2 + LLM: llama3.1:8b
# 模板地址:https://github.com/plastic-labs/honcho/blob/main/.env.template
# Honcho Environment Variables Template
# Copy this file to .env and fill in the appropriate values
#
# Required variables are marked with (REQUIRED)
# Optional variables have default values and can be left commented out
# =============================================================================
@longavailable
longavailable / install-update-openclaw.sh
Created April 1, 2026 12:12
20260401-openclaw github proxy 加速,尽修改了download_file函数
#!/bin/bash
set -euo pipefail
# OpenClaw Installer for macOS and Linux
# Usage: curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash
BOLD='\033[1m'
ACCENT='\033[38;2;255;77;77m' # coral-bright #ff4d4d
# shellcheck disable=SC2034
ACCENT_BRIGHT='\033[38;2;255;110;110m' # lighter coral
#!/bin/bash
# Get the output of ha su info
info_output=$(ha su info)
# Parse the output and extract values
update_available=$(echo "$info_output" | grep -Eo 'update_available: (true|false)')
version_latest=$(echo "$info_output" | grep -Eo 'version_latest: .*' | cut -d ' ' -f2)
# Check if update is available
#!/bin/bash
# Get the output of ha core info
info_output=$(ha core info)
# Parse the output and extract values
update_available=$(echo "$info_output" | grep -Eo 'update_available: (true|false)')
version_latest=$(echo "$info_output" | grep -Eo 'version_latest: .*' | cut -d ' ' -f2)
# Check if update is available