Skip to content

Instantly share code, notes, and snippets.

View DeadBranches's full-sized avatar

DeadBranch DeadBranches

  • North America
View GitHub Profile
@DeadBranches
DeadBranches / openclaw-searxng-setup.md
Created February 22, 2026 17:00 — forked from chilledpear/openclaw-searxng-setup.md
SearXNG web search setup for OpenClaw

SearXNG Web Search Setup for OpenClaw

Run these steps on the OpenClaw host to give the bot free, unlimited web search (no API key needed).

1. Create SearXNG config

mkdir -p /opt/searxng
SECRET=$(openssl rand -hex 32)
cat > /opt/searxng/settings.yml << EOF
@DeadBranches
DeadBranches / main.js
Created November 4, 2025 20:53
Node Red range converter
// brain of the whole thing. hard work is done here
const mapNumber = (number, in_min, in_max, out_min, out_max) => {
var rangeCalculation = (number - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
return Math.round(rangeCalculation);
};
// Create an empty array to store the messages
var messages = [];
// Loop through the rooms in msg.lightControl because we know only rooms and devices are children of lightcontrol
@DeadBranches
DeadBranches / conda_package_finder.py
Last active March 29, 2023 21:48
Find in which conda environments a package is installed.
import os
import subprocess
from typing import List
def get_conda_envs() -> List[str]:
"""
Get a list of conda environments and return their names.
"""
# Execute the `conda env list` command and capture its output