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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#define COLS 25 | |
#define ROWS 25 | |
#define ALIVE 1 | |
#define DEAD 0 | |
void printgrid(char *grid) { | |
printf("\033[H\033[2J"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local wezterm = require("wezterm") | |
local config = wezterm.config_builder() | |
local action = wezterm.action | |
-------------------------------------------------------------------------------- | |
-- Workspaces | |
-------------------------------------------------------------------------------- | |
local function project_dirs() | |
local projects = { wezterm.home_dir } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
################################################################################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------------------------------------------------ | |
-- options | |
vim.g.mapleader = " " | |
local opt = vim.opt | |
-- UI | |
opt.laststatus = 3 -- global statusline | |
opt.number = true -- Print line number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
NewerOlder