Skip to content

Instantly share code, notes, and snippets.

@x2020
x2020 / ollama_runpod.sh
Created February 10, 2026 16:23
Install ollama and models in runup
apt udate && apt install tmux zstd lshw && curl -fsSL https://ollama.com/install.sh | sh
OLLAMA_MODELS=/workspace/models ollama serve &
for model in "hf.co/mradermacher/Huihui-Qwen3-Coder-30B-A3B-Instruct-abliterated-i1-GGUF:Q4_K_M" "embeddinggemma:300m" "nomic-embed-text:latest" "qwen3-coder:30b "
do
ollama pull "$model"
done
@x2020
x2020 / bh_translate.py
Last active October 16, 2023 14:27
Translate bloodhound descriptions into notes field.
import sys
from neo4j import GraphDatabase
#from googletrans import Translator
from pygoogletranslation import Translator
NEODB_URL="bolt://localhost:7687"
NEODB_USER="neo4j"
NEODN_PWD="neo4j"
TRANSLATE_FROM='translate.google.co.jp'