Skip to content

Instantly share code, notes, and snippets.

import openai
class _QueryExecutor:
_openai_client = None
_model_name = "gpt-4o"
@classmethod
def invoke(cls, markdown_text,
temperature=0.2, max_tokens=16000):
@codingismycraft
codingismycraft / install-vim-vagrant.sh
Last active April 9, 2025 01:55
install-vim9-in-vagrant.sh
# Remove existing versions of vim
cd
sudo apt update
sudo apt install git -y
sudo apt purge vim -y
sudo apt autoremove -y
sudo apt update
sudo apt purge --auto-remove vim-gtk3 -y
@codingismycraft
codingismycraft / vagrant-gtk
Last active September 1, 2024 03:01
Vagrant with spark and vim_gtk3
###############################################################################
## Vagrantfile installing spark, vim-gtk3 and clipboard support.
##
## To allow clipboard sharing from host to guest and vice versa
## you will need to make clipboard sharing birectional from virtual-box using
## virtualbox front end.
###############################################################################
$script = <<SCRIPT
# Remove existing versions of vim
cd
sudo apt update
sudo apt install git -y
# Install konsole
sudo apt update
sudo apt install konsole
# Install conky