- install ollama
brew install ollama
- check you can run deepseek:
ollama run deepseek-r1:14b
(bigger model is better - if you can run 70B that is amazing!)
#!/bin/sh | |
# Run Goose AI check on staged files | |
files=$(git diff --cached --name-only --diff-filter=ACM | grep -E '\.txt$|\.md$|\.rst$') | |
if [ -z "$files" ]; then | |
exit 0 | |
fi | |
echo "Running Goose AI spell check..." |
brew install ollama
ollama run deepseek-r1:14b
(bigger model is better - if you can run 70B that is amazing!)
store := &InMemoryKVStore{data: make(map[string]string)} | |
store.Set("key1", "value1") | |
value, err := store.Get("key1") | |
if err != nil { | |
// handle error | |
} | |
store.Delete("key1") | |
results, err := store.Query("value") | |
if err != nil { | |
// handle error |
This is a riddle solver. | |
### | |
Riddle: Whats black and white and red all over? | |
Answer: A newspaper | |
### | |
Riddle: What dries by getting wet? | |
Answer: A towel |
def honeycomb_setup() { | |
script { | |
env.STEP_START = sh(script:'date +%s', returnStdout: true).trim() | |
env.STEP_SPAN_ID = sh(script:'uuidgen', returnStdout: true).trim() | |
} | |
} | |
def install_buildevents() { | |
sh""" | |
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64 curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64 | |
chmod 755 buildevents |
import streamlit as st | |
import pandas as pd | |
import altair as alt | |
import urllib | |
from streamlit.server.server import Server | |
from streamlit.report_thread import get_report_ctx | |
@st.cache | |
def get_UN_data(): |
import base64 | |
import os | |
from google.oauth2 import service_account | |
import googleapiclient.discovery | |
def hello_pubsub(event, context): |
# need to install stuff - selenium/webdriver/firefox driver/gecko or something, I forget now. | |
# Just mash the keyboard until it works. | |
my_url='https://bws.com.au/spirits/gin' | |
from selenium import webdriver | |
options = webdriver.FirefoxOptions() | |
options.add_argument('-headless') |
//def ConfigEnviroment = [:] | |
//ConfigEnviroment['fromEmail'] = "[email protected]" | |
def info(message) { | |
echo "INFO: ${message}" | |
} | |
def warning(message) { | |
echo "WARNING: ${message}" | |
} |