Skip to content

Instantly share code, notes, and snippets.

View praveenc's full-sized avatar
🎯
Focusing

Praveen Chamarthi praveenc

🎯
Focusing
  • United States
View GitHub Profile
@praveenc
praveenc / json
Last active January 11, 2026 18:51
Zed editor Cobaltz theme
{
"name": "Cobaltz",
"author": "Praveen Chamarthi",
"themes": [
{
"name": "Cobaltz",
"appearance": "dark",
"style": {
"background": "#0F2438",
"syntax": {
@praveenc
praveenc / interview.md
Created December 31, 2025 18:49
Use `AskUserQuestionTool` for robust agent implementation
description argument-hint model
Interview me about the plan
plan
opus

Read this plan file $1 and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. but make sure the questions are not obvious.

@praveenc
praveenc / starship_config.toml
Last active December 13, 2025 01:25
Starship Config
"$schema" = 'https://starship.rs/config-schema.json'
#"$schema"= "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
command_timeout = 1500 # Reduce from default 500ms
add_newline = true
palette = "catppuccin_mocha"
# Replace the "❯" symbol in the prompt with "➜"
@praveenc
praveenc / ruff-lint.md
Created July 27, 2025 17:59
ruff-lint - Claude code custom command
allowed-tools description
Bash(ruff check:*), Bash(ruff format:*), Read(~/.config/ruff/ruff.toml)
Lint and format codebase using Ruff

Lint codebase using Ruff

Your goal is to lint and format the codebase using Ruff.

Do the following:

@praveenc
praveenc / bedrock_utils_v2.py
Created June 14, 2025 16:01
Python util script to invoke Amazon Bedrock using ConverseAPI. Supports Document upload, Prompt Caching, Reasoning Enabled.
import re
import time
from dataclasses import dataclass
from functools import lru_cache
from pathlib import Path
from typing import Any, ClassVar, Final, Literal
import boto3
from botocore.config import Config
from botocore.exceptions import ClientError
@praveenc
praveenc / bedrock_utils.py
Last active June 10, 2025 17:58
Python util script to invoke Amazon Bedrock using ConverseAPI. Supports Document upload, Prompt Caching, Reasoning Enabled.
# /// script
# requires-python = ">=3.12.9"
# dependencies = [
# "loguru==0.7.3",
# "boto3==1.38.32",
# "rich==14.0.0",
# ]
# ///
import time
@praveenc
praveenc / lancedb_operations.py
Created March 2, 2025 20:02
LanceDB vector store operations using OpenAI compatible custom embeddings function
from pathlib import Path
from typing import Any, Dict, List, Literal, Union
import lancedb
import numpy as np
import pandas as pd
import pyarrow as pa
from lancedb.embeddings import (
EmbeddingFunction,
EmbeddingFunctionRegistry,
@praveenc
praveenc / aws-ecr-migrate.sh
Created March 15, 2021 17:49
AWS ECR Migration Script (authenticate, pull, re-tag and push)
#!/bin/bash
set -xe
# The Enviroment where this script will be ran needs to have jq, aws cli and docker installed
# Set parameters
region=$1
original_aws_profile=$2
new_aws_profile=$3
original_aws_account_number=$4
@praveenc
praveenc / list-filenames-walk.py
Created May 21, 2020 17:57
Get all filenames (fqdn) under a given directory
#!/usr/bin/env python
from os import walk
from os.path import join
DIR_PATH='/path/to/dir'
## Get all pdf files under the dir DIR_PATH
for (dirpath, _, filenames) in walk(DIR_PATH):
full_names = [join(dirpath, fn) for fn in filenames if fn.endswith('pdf')]
break
@praveenc
praveenc / .vimrc
Created May 20, 2020 01:53
vimrc with plugins from vimawesome.com
" Ignore compiled files
set wildignore=*.o,*~,*.pyc
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" No annoying sound on errors
set noerrorbells