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
| ------------------------------------------------------------------------------------------------------------------------ | |
| -- 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 | |
| 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" |
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
| 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" |
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
| import json | |
| import time | |
| app = Flask(__name__) | |
| @app.route("/api/generate", methods=["POST"]) | |
| def generate_response(): | |
| assert request.json | |
| model = request.json["model"] |
-
Installation
brew install gnupg pinentry-mac && \
mkdir $GNUPGHOME && \
echo "pinentry-program /usr/local/bin/pinentry-mac" > \
"$GNUPGHOME/gpg-agent.conf"
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
| " 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 |
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
| #!/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 |
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
| # -*- 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) |