Browsing Posts / Page 2 of 33

They have literally made the very last thing available in a pumpkin spice variety.

#meme

Sep 15

Why is it OK for cats to run around the house naked but if I do it everyone gets “offended”?

#humor #cats #observation

Sep 14

“We admire Taylor Swift's music but I don't think most Americans, whether they like her music or are fans of hers or not, are going to be influenced by a billionaire celebrity who I think is fundamentally disconnected from the interests and the problems of most Americans.” - JD Vance… without any sense of irony or hypocrisy

#GOP #MAGA #idiot #irony

Sep 12

A friend said that he didn’t understand cloning. I said “that makes two of us.”

#humor

Sep 6

#TRUTH

#tech #meme

Sep 6

What could possibly go wrong?

Sep 6

I suppose the 4 dead at Apalachee High School are those “post-birth abortions” the #Republicans keep warning us about.

Sep 5

#Elon is not focused on wealth at this point. The #Tesla board approved his $50B pay package. He has arrived as the richest man on earth. He is about control. #Twitter and #StarLink are tools and weapons he and other large investors are wielding to determine the outcome of elections and wars.

Sep 4

Who was Beethoven’s lead singer?

#questions

Sep 2

Microsoft renamed the Remote Desktop app to “The Windows App”. Next it will have a dedicated button on the keyboard oh crap it already does.

Windows App general availability coming soon
Windows App general availability coming soon

techcommunity.microsoft.com

Sep 1

The fuck?

#humor

Aug 26

I hate when this happens. Effing monoliths.

#humor

Aug 26

OH MY GOD HE’S EATING THE FARMER’S DOG!

Aug 24

Today's #GOP is not the party of Lincoln. It's the party of Booth.

Aug 23

The look on her face.

Aug 23

Me making dinner.

#meme #humor

Aug 23

There should be a shade of brown called shartreuse.

#humor

Aug 23

Is it really a package of ground up Farmer’s Dog?

#humor

Aug 21

Everyone deserves to be pampered every once in a while, especially if they’re incontinent.

#humor

Aug 16

And #ElonMusk wants to implant technology into people’s heads. #NOPE

The Latest: Trump interview with Elon Musk on X plagued by glitches
The Latest: Trump interview with Elon Musk on X plagued by glitches

apnews.com

Aug 12

Just rewatched all #StarTrek #TOS episodes and realized that Dr. McCoy was always a prickly jerk or a horny dope in love.

Aug 2

Run Ollama API On macOS With Custom Host Bindings

By default the ollama API runs on the localhost IP address of 127.0.0.1. If you want to host it on all of your Mac's IP addresses it requires that you set a system-wide environment variable. The problem with doing this is that Login Items (in System Settings) can launch before Launch Agents. This means that Ollama (in the menu bar) may not see the host settings. To solve this you need to launch Ollama at startup after a delay.

Here's how to add the host binding for all IP addresses on the Mac and then have Ollama launch 10 seconds after you sign in. This works in macOS 14.5 Sonoma and should work in later versions.

Step 1: Create a launch daemon plist file below. Save it as com.nonsequiturs.ollama.plist.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.nonsequiturs.ollama</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/launchctl</string>
        <string>setenv</string>
        <string>OLLAMA_HOST</string>
        <string>0.0.0.0</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>LaunchOnlyOnce</key>
    <true/>
</dict>
</plist>

Step 2: Copy the file to two locations:

/Library/LaunchDaemons/
~/Library/LaunchAgents/

This will set the host bindings at the system level, and also at the user level. So you should be covered no matter how you launch Ollama in the future.

Step 3: Set file permissions on the system-level file.

sudo chown root:wheel /Library/LaunchDaemons/com.nonsequiturs.ollama.plist

sudo chmod 644 /Library/LaunchDaemons/com.nonsequiturs.ollama.plist

Step 4: Install the launch agents:

sudo launchctl bootstrap system /Library/LaunchDaemons/com.nonsequiturs.ollama.plist

launchctl load ~/Library/LaunchAgents/com.nonsequiturs.ollama.plist

Now your system will start up and bind the Ollama host address to all IP addresses on the Mac.

Step 5: To launch Ollama after a 10 second delay, Open Script Editor and create the simple AppleScript file below.

delay 10
tell application "Ollama" to run

In the File menu choose Export, and then export it as type “Application” and name it “LaunchOllamaDelay”. Save it to your user Applications folder.

In System Settings go to Login Items and add the LaunchOllamaDelay application to the startup items. Also remove any existing Ollama startup item.

Now when you restart and sign in, Ollama will launch after 10 seconds which should be enough time for the Launch Agent to have executed. And if Ollama updates itself in the future it should also just work when it restarts.

#YOUREWELCOME #Apple #macOS #ollama #code #tech #ai

Jul 28

Buy one Ho, get one Ho free. Nice.

#humor

Jul 26

Page 2 of 33
Pageof 33

Copyright © 2024 Michael Argentini. All rights reserved.