Skip to content

Instantly share code, notes, and snippets.

View jmarhee's full-sized avatar

jdm jmarhee

View GitHub Profile
[Desktop Entry]
Version=1.0
Type=Application
Exec=icecat %u
Terminal=false
X-MultipleArgs=false
Icon=icecat
StartupWMClass=icecat-default
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/x-xpinstall;application/xhtml+xml;application/xml;audio/flac;audio/ogg;audio/webm;image/avif;image/gif;image/jpeg;image/png;image/svg+xml;image/webp;text/html;text/xml;video/ogg;video/webm;x-scheme-handler/chrome;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto;
#!/bin/bash
## Assumes a filename ${artist} - ${title}.mp3
## If not already in mp3:
# for f in *.m4a; do ffmpeg -i "$f" -vn -ar 44100 -ac 2 -b:a 192k "${f%.*}.mp3"; done
## Assumes album cover art at ./cover.jpg
ALBUM_NAME=$1
ALBUM_ARTIST=$2
@jmarhee
jmarhee / macos_ollama_host.md
Created October 16, 2025 19:04
Enables the Ollama server to run on all interfaces on macOS via homebrew, or via launchctl.

brew

If installing ollama via brew, to expose Ollama on all interfaces (i.e. 0.0.0.0) for use with a remote application, modify the service file to include an OLLAMA_HOST key in the EnvironmentVariables in /opt/homebrew/Cellar/ollama/{version}/homebrew.mxcl.ollama.plist:

<plist version="1.0">
<dict>
	<key>EnvironmentVariables</key>
	<dict>
 OLLAMA_FLASH_ATTENTION