Skip to content

Instantly share code, notes, and snippets.

@S1M0N38
S1M0N38 / wezterm.lua
Created May 5, 2025 13:36
Fuzzy projects / Workspaces
local wezterm = require("wezterm")
local config = wezterm.config_builder()
local action = wezterm.action
--------------------------------------------------------------------------------
-- Workspaces
--------------------------------------------------------------------------------
local function project_dirs()
local projects = { wezterm.home_dir }
"""
title: Install Deps
author: S1M0N38
date: 2024-09-29
version: 1.0
license: MIT
description: A dummy pipeline just to install deps
requirements: llama-index
"""
@S1M0N38
S1M0N38 / downlaod-alacritty-themes.sh
Created September 21, 2024 20:56
Alacritty themes
# Tokionight
curl -L -o $XDG_CONFIG_HOME/alacritty/themes/tokyonight.toml https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/heads/main/extras/alacritty/tokyonight_moon.toml
curl -L -o $XDG_CONFIG_HOME/alacritty/themes/tokyonight-moon.toml https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/heads/main/extras/alacritty/tokyonight_moon.toml
curl -L -o $XDG_CONFIG_HOME/alacritty/themes/tokyonight-day.toml https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/heads/main/extras/alacritty/tokyonight_day.toml
curl -L -o $XDG_CONFIG_HOME/alacritty/themes/tokyonight-night.toml https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/heads/main/extras/alacritty/tokyonight_night.toml
curl -L -o $XDG_CONFIG_HOME/alacritty/themes/tokyonight-storm.toml https://raw.githubusercontent.com/folke/tokyonight.nvim/refs/heads/main/extras/alacritty/tokyonight_storm.toml
# Catppuccin
curl -L -o $XDG_CONFIG_HOME/alacritty/themes/catppuccin-frappe.toml https://raw.githubusercontent.com/catppuccin/alacrit
@S1M0N38
S1M0N38 / molten-issues-232-setup.sh
Created September 6, 2024 06:40
Molten issues 232 setup script
#!/bin/bash
NVIM_APPNAME=test-nvim
XDG_DATA_HOME="$HOME/.local/share"
echo "--------------------------------------------------------------------------------"
echo "0. Remove file from previous tests"
rm -rf ~/.config/$NVIM_APPNAME
rm -rf ~/.local/share/$NVIM_APPNAME
@S1M0N38
S1M0N38 / install-lua-luarocks-on-macos.sh
Last active June 26, 2025 16:17 — forked from zirkuswurstikus/lua_build_macos.sh
A simple script to install Lua and Luarocks from source in a custom dir
#!/bin/bash
# This scripts installs Lua, LuaRocks, and some Lua libraries on macOS.
# The main purpose is to install Busted for testing Neovim plugins.
# After the installation, you will be able to run test using busted:
# busted --lua nlua spec/mytest_spec.lua
################################################################################
# Dependencies
################################################################################

Slash Commands

The following are some notes taken while testing and intercepting requests from the Zed Assistant Panel (Zed version 0.150.4) to their server hosting Claude 3.5 Sonnet model.

@S1M0N38
S1M0N38 / init.lua
Created July 24, 2024 11:21
Minimal Neovim Config
------------------------------------------------------------------------------------------------------------------------
-- options
vim.g.mapleader = " "
local opt = vim.opt
-- UI
opt.laststatus = 3 -- global statusline
opt.number = true -- Print line number
#!/bin/bash
[email protected]
REMOTE_DIR=/path/to/project/dir/in/remote/
LOCAL_DIR=/path/to/project/dir/in/local/
usage() {
echo "Usage: $0 [option]"
echo "Options:"
echo " -u, --upload Upload files to the remote server"
@S1M0N38
S1M0N38 / alacritty.toml
Created February 2, 2024 12:52
Minimal Alacritty config
import = [
# uncomment the flavour you want below:
# "~/.config/alacritty/catppuccin-latte.toml"
# "~/.config/alacritty/catppuccin-frappe.toml"
"~/.config/alacritty/catppuccin-macchiato.toml"
# "~/.config/alacritty/catppuccin-mocha.toml"
]
[env]
TERM = "xterm-256color"
@S1M0N38
S1M0N38 / serve.py
Created October 7, 2023 11:00
dummy-ollama
import json
import time
app = Flask(__name__)
@app.route("/api/generate", methods=["POST"])
def generate_response():
assert request.json
model = request.json["model"]