Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ThatOneCalculator's full-sized avatar
🌊
Vibing

Kainoa Kanter ThatOneCalculator

🌊
Vibing
View GitHub Profile
@ThatOneCalculator
ThatOneCalculator / ua.py
Last active February 28, 2022 17:22
Bot for Ukraine War Reports
import disnake
from disnake.ext import commands
bot = commands.Bot(
command_prefix=commands.when_mentioned_or("!!"),
description="Bot for Ukraine War Reports",
intents=disnake.Intents.default(),
chunk_guilds_at_startup=True)
@bot.event
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThatOneCalculator
ThatOneCalculator / import_ggufs.sh
Created January 7, 2024 22:48
A dead simple batch gguf importing script. Just place/run it in the same directory as your ggufs.
#!/usr/bin/env bash
for gguf_file in ./*.gguf; do
base_name=$(basename "$gguf_file" .gguf)
echo "Making modelfile for $base_name"
model_file="./Modelfile_$base_name"
echo "FROM ./$gguf_file" > "$model_file"
ollama create "$base_name" -f "$model_file"
rm "$gguf_file"
rm "$model_file"