Skip to content

Instantly share code, notes, and snippets.

@arawup
arawup / nixos-ollama.md
Last active February 2, 2025 02:15
Getting ollama to work in nixos
  • NOTE:
    • baseline refers to the following: uses acceleration = "rocm", iGPU was disabled in bios, amd 7800xt(gfx1101- this will vary based on your gpu and rocminfo output nix-shell -p "rocmPackages.rocminfo" --run "rocminfo" | grep "gfx" and thus the versions used below("11.0.1"))
    • an overlay is used to patch the version and set in service.ollama.package
      • unstable refers to this commit 5df43628fdf08d642be8ba5b3625a6c70731c19c
      • stable refers to 24.11
    • (debugging) you can see a feed of ollama service log with journalctl -u ollama -ef
  • Tests
    • rocmOverrideGfx = "11.0.1"; only
      • unstable
        • msg="Dynamic LLM libraries" runners="[cpu]"
@arawup
arawup / Blender_Flatpak_thumbnailer_fix.sh
Last active October 22, 2023 05:32
Blender Flatpak thumbnailer fix
#we makes a symlink to the flatpak binaries
#because even if i changed the thumbnailer exec path to the flatpak;
#it will still attempt to fetch blender from usr/bin
#OS: pop os/ubuntu/debian
sudo ln ~/.local/share/flatpak/app/org.blender.Blender/current/active/files/blender/blender-thumbnailer /usr/bin
sudo ln ~/.local/share/flatpak/app/org.blender.Blender/current/active/files/blender/blender /usr/bin
echo "[Thumbnailer Entry]
@arawup
arawup / Krita_thumbnailer.md
Last active October 22, 2023 05:52
Krita Thumnailer doesn't support spaces in filename in Linux

The krita thumbnailer normally used, found online or documented doesn't make previews for file names with a space

Ex: test file.kra(won't have a preview) testfile.kra(will have a preview)

Solution Update the thumbnailer and clear cahed failed thumbnails:

Why this solution, I believe the %i and %o variables aren't being passed properly when they have spaces

I tried it without them, cleared the thumbnails .cache and it doesn't work without the quotes around those