Skip to content

Instantly share code, notes, and snippets.

@slspeek
slspeek / readme.md
Last active March 1, 2025 12:10
Quickstart guide for running GenAI locally with Ollama and Open-WebUI

Quickstart guide for running GenAI locally with Ollama and Open-WebUI

Start the open-webui server with ollama in the same docker image:

docker run -d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui3 --restart always ghcr.io/open-webui/open-webui:ollama

Now add a GenAI model from https://ollama.com/search. For example to add Mistral run

#!/bin/bash
#
# usage: create-tag.sh [-M|-m|-p][-d]
# defaults to -m
# -M creates new major version
# -m creates new minor version
# -p creates new patch version
# -d dry run
#
LAST_TAG=$(git for-each-ref --sort=creatordate --format '%(refname:lstrip=2)' refs/tags|tail -1)
@slspeek
slspeek / cleanup-tags.sh
Created January 15, 2024 12:57
Clean up old releases and tags
#!/bin/bash
for TAG in "$@"
do
echo Processing tag: $TAG
echo '----------------------'
gh release delete -y $TAG && echo Release: $TAG deleted
git push --delete origin $TAG && echo Remote tag: $TAG deleted
git tag -d $TAG && echo Local tag: $TAG deleted
echo
@slspeek
slspeek / install-mozilla-extension-system-wide.sh
Last active October 9, 2025 13:08
Install firefox extension system-wide on debian
#!/bin/bash
#
# typical use:
# sudo ./install-mozilla-extension-globally.sh ~/Downloads/adblock_for_youtube-0.3.6.xpi
#
set -e
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit 1
fi