Skip to content

Instantly share code, notes, and snippets.

View abhishekmishragithub's full-sized avatar
🎯
Focusing

Abhishek abhishekmishragithub

🎯
Focusing
View GitHub Profile

Workshop Title:

Building Agents with Retrieval-Augmented Generation (RAG) and Function Calling

Workshop Plan

Date: July 6th

Duration: 3-4 hours


@abhishekmishragithub
abhishekmishragithub / cpp_setup.md
Created March 14, 2024 12:33
googletest setup <> Codium AI

mkdir mybuild

cd mybuild/

cmake -Dgtest_build_tests=ON -Dgmock_build_tests=ON $GTEST_REPO_DIR ..

make

make test

select * from information_schema.key_column_usage
where constraint_catalog=current_catalog and table_name='your_table_name'
and position_in_unique_constraint notnull;
@abhishekmishragithub
abhishekmishragithub / latency.txt
Created March 11, 2024 15:48 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@abhishekmishragithub
abhishekmishragithub / talk.py
Last active March 9, 2024 09:22
Rich based tiny presentation
import pyfiglet
from rich import box
from rich.console import Console, Group
from rich.markdown import Markdown
from rich.panel import Panel
from rich.text import Text
from time import sleep
from rich.align import Align
console = Console()
@abhishekmishragithub
abhishekmishragithub / monitoring_and_obervability.md
Last active July 21, 2023 11:07
Understanding monitoring and obervability.

In short:

Parameter Monitoring Observability
Purpose Detect and alert on issues/problems Understand the state of a system
What/Which Data? Predetermined metrics and logs All telemetry data
Goal is to Identify problems Understand why problems occur
Method Reactive Proactive

Primitive Types

Integer

Declares an integer x with value 1.

let x: i32 = 1;
import boto3
import pandas as pd
import numpy as np
from datetime import datetime, timedelta
import random
from rich.progress import Progress
import time
def create_dataset(file_name, num_rows, start_date, end_date):
"""Create a dataset"""
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:7.3.0
hostname: zookeeper
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
@abhishekmishragithub
abhishekmishragithub / create_clickup_tasks.py
Created May 22, 2023 14:27
Clickup tasks using ClickUp v2 API
import csv
import requests
import pandas as pd
import logging
import json
# Set up logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# Your ClickUp API token
api_token = ""