Skip to content

Instantly share code, notes, and snippets.

View prabhatsharma's full-sized avatar
🎯
Focusing

Prabhat Sharma prabhatsharma

🎯
Focusing
View GitHub Profile
@prabhatsharma
prabhatsharma / otel-config.yaml
Created May 17, 2024 21:12
otel config yaml for windows
receivers:
sqlserver:
collection_interval: 10s
hostmetrics:
collection_interval: 30s
scrapers:
cpu:
disk:
filesystem:
load:
@prabhatsharma
prabhatsharma / ingest_high_cardinality_data.py
Last active October 15, 2023 09:14
High cardinality data generator
import requests
import json
import uuid
import time
import random
# Define the endpoint URL and authorization header
endpoint_url = "http://localhost:5080/api/default/trace_bloom/_json"
authorization_header = "Basic cm9vdEBleGFtcGxlLmNvbTpDb21wbGV4cGFzcyMxMjM="
@prabhatsharma
prabhatsharma / openobserve-cla.md
Last active July 22, 2024 22:17
OpenObserve CLA

OpenObserve Inc. Contributor License Agreement ("CLA")

Thank you for considering contributing to OpenObserve. Contributions from the community are the foundation of our project and we greatly value them. To ensure clarity and legality surrounding these contributions, we request all contributors to sign this Contributor License Agreement (CLA).

OpenObserve Inc. believes in open source principles. By signing the CLA, contributors uphold these principles and ensure that OpenObserve can be used widely, while also allowing OpenObserve Inc. to protect its rights and those of its users.

Human-Friendly Summary

This summary offers a simplified understanding of the CLA. It doesn't replace the full CLA. Please read the full agreement carefully.

This file has been truncated, but you can view the full file.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Not working as typsense does not resilve DNS names inc luster mode. Just IP addresses
# refer to https://github.com/typesense/typesense/issues/203
---
apiVersion: v1
kind: Namespace
metadata:
name: typesense
apiVersion: v1
kind: Service
metadata:
name: os
namespace: typesense
spec:
clusterIP: None
selector:
app: typesense
ports:
@prabhatsharma
prabhatsharma / sagemaker-local
Last active December 2, 2024 17:06
Instructions to setup sagemaker locally
#!/bin/bash
# local sagemaker setup
conda update conda # update conda
conda create -n localsm python==3.7
conda activate localsm
conda install -c conda-forge jupyterlab
Prioritization test: Is preparing a great update a priority? Have you given sufficient effort considering you are updating the CEO of one of the largest and fastest growing companies in the world? Does your update reflect the depth and urgency with which you are building your business?
Goal test: What is/are the goal(s) of your update? To gain feedback? Give a status update? To dive deep into a particular aspect of a project? Try to line up your written content such that it increases the likelihood of achieving your goal(s).
Clear-headed test: For each sentence or bullet point, ask yourself what point you are trying to make? State your point verbally, and if your verbal point is clearer than your written point, then change your written point. Is it possible to make your point with fewer words?
Clarity test: Write so that that non-technical person not familiar with the games industry will understand your key points. Does your writing require extensive industry or technical knowledge to understand? Do
from kazoo.client import KazooClient
connection_string = "zookeeper-headless.zookeeper.svc.cluster.local:2181"
zk = KazooClient(hosts=connection_string)
zk.start()
zk.create("/aws/ec2/ebs/st1")
from kazoo.client import KazooClient
connection_string = "zookeeper-headless.zookeeper.svc.cluster.local:2181"
zk = KazooClient(hosts=connection_string)
zk.start()
def get_node(path="/"):
if zk.exists(path):