From a6fdff1e9d4a23d4dfa1b30b093deaa22f3f4459 Mon Sep 17 00:00:00 2001 From: Will King Date: Thu, 26 Sep 2024 12:37:50 -0700 Subject: [PATCH] added a few scripts I needed --- comlatex.sh | 2 +- ogg2wav.sh | 6 ++++++ openwebui | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 ogg2wav.sh create mode 100644 openwebui diff --git a/comlatex.sh b/comlatex.sh index a815f64..1a70e7c 100755 --- a/comlatex.sh +++ b/comlatex.sh @@ -2,4 +2,4 @@ # #a script to compile a latex file based in distrobox -distrobox enter latex2 -- ~/bin/compiletex $@ +distrobox enter texlive -- ~/bin/compiletex $@ diff --git a/ogg2wav.sh b/ogg2wav.sh new file mode 100755 index 0000000..6ce1791 --- /dev/null +++ b/ogg2wav.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +INPUT_FILE="$1" +OUTPUT_FILE="${INPUT_FILE%.ogg}.wav" + +ffmpeg -i "$INPUT_FILE" "$OUTPUT_FILE" diff --git a/openwebui b/openwebui new file mode 100644 index 0000000..a160343 --- /dev/null +++ b/openwebui @@ -0,0 +1,10 @@ +podman run --rm \ + -p 127.0.0.1:3000:8080 \ + --network slirp4netns:allow_host_loopback=true \ + --add-host=ollama.local:10.0.2.2 \ + --env 'OLLAMA_BASE_URL=http://ollama.local:11434' \ + --env 'ANONYMIZED_TELEMETRY=False' \ + -v open-webui:/app/backend/data \ + --label io.containers.autoupdate=registry \ + --name open-webui \ + ghcr.io/open-webui/open-webui:main