Skip to content

Instantly share code, notes, and snippets.

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
REMOTE_HOST=user@my.remote-machine.com
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"]
@S1M0N38
S1M0N38 / Instructions.md
Created November 13, 2022 11:11
Setup GPG keys on MacOS
brew install gnupg pinentry-mac                    && \
mkdir $GNUPGHOME                                   && \
echo "pinentry-program /usr/local/bin/pinentry-mac" > \
     "$GNUPGHOME/gpg-agent.conf"
@S1M0N38
S1M0N38 / .vimrc
Created November 10, 2022 10:26
Minimal configuration for vim
" Improving on minimal vim configuration at
"
" https://github.com/lemonase/dotfiles/blob/
" ab2d279804a8a6b5e6862012c13bd22b64076431/
" config/vim/.vim/vimrc.min
"
"load system defaults
if filereadable(expand('$VIMRUNTIME/defaults.vim'))
unlet! g:skip_defaults_vim
@S1M0N38
S1M0N38 / morningstreams.py
Created August 23, 2022 10:19
Expose acestreams from morningstream in you local network
#!/usr/bin/env python3
"""
This content is not affiliated with, endorsed, sponsored, or specifically
approved by Morningstreams.
This is the simple script from where
https://github.com/S1M0N38/morningstreams originates.
MIT License
@S1M0N38
S1M0N38 / openvpn.md
Last active November 7, 2025 10:59
Configuring Nord VPN using openvpn

Installations and downloads

Update the system and install openvpn and unzip

sudo apt update && sudo apt upgrade
sudo apt install openvpn
sudo apt install unzip

Now reboot the raspberry (this fix TUN/TAP error).

sudo reboot
@S1M0N38
S1M0N38 / proverbs.py
Last active September 15, 2018 00:42
wisdom dispenser 🧙‍♂️
# -*- coding: utf-8 -*-
import random
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
url = 'https://raw.githubusercontent.com/AntJanus/programmers-proverbs/master/README.md'
response = urlopen(url)