Skip to content

Instantly share code, notes, and snippets.

@jessedufrene
jessedufrene / README.md
Last active August 27, 2024 13:24
Ollama + Open WebUI docker compose

Ollama + Open WebUI docker compose

This setup should work right out of the box.

Using Ollama on other machine

If Ollama is being hosted on a separate machine:

  1. Comment out the whole ollama service part
  2. Comment out the extra_hosts: section of the open-webui service
@jessedufrene
jessedufrene / .env
Last active April 25, 2024 21:06
Netbox docker compose
# username for login is 'admin'
SUPERUSER_EMAIL=[email protected]
SUPERUSER_PASSWORD=
DB_PASSWORD=
REDIS_PASSWORD=
@jessedufrene
jessedufrene / ver.py
Last active May 3, 2023 00:58
Python Version - Decent way of auto incrementing the version of a Python script based on the tags in the Git repo
import subprocess
# what to put if version cannot be determined
_undefined_version = "undefined version"
# first, try getting version from git
_git_version = None
try:
_git_version = subprocess.check_output(["git", "describe", "--dirty"], stderr=subprocess.PIPE).strip().decode("utf-8")
except (FileNotFoundError, subprocess.CalledProcessError) as e: