Skip to content

Instantly share code, notes, and snippets.

@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"
#!/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 / 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

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 / install-lua-luarocks-on-macos.sh
Last active March 23, 2026 07:31 — 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
################################################################################
@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 / 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
"""
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 / 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 }
@S1M0N38
S1M0N38 / balatro.sh
Created July 23, 2025 09:30
Start Balatro with Mods in backgroud with MacOS
#!/bin/bash
# Check if running on macOS
if [[ "$OSTYPE" != "darwin"* ]]; then
echo "Error: This script is only supported on macOS" >&2
exit 1
fi
# Cleanup function for signal handling
cleanup() {