Skip to content

Instantly share code, notes, and snippets.

View rohithtp's full-sized avatar

Rohith Pavithran rohithtp

View GitHub Profile

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
#!/bin/zsh
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Help message
show_help() {
@rohithtp
rohithtp / test-sse.sh
Last active March 30, 2025 04:22
to test sse connection channel for an external model context protocol server
#!/bin/zsh
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Help message
show_help() {

Keybase proof

I hereby claim:

  • I am rohithtp on github.
  • I am rohithtp (https://keybase.io/rohithtp) on keybase.
  • I have a public key ASD_qrAVe45iieFcnDxSmA3LrV9qbB59OIhDvuEKZ_pS2Ao

To claim this, I am signing this object: