This file contains 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
{ | |
"resourceSpans": [{ | |
"schemaUrl": "https://opentelemetry.io/schemas/1.25.0", | |
"resource": { | |
"attributes": [{ | |
"key": "service.name", "value": { "stringValue": "llm-gateway" }},{ | |
"key": "deployment.environment", "value": { "stringValue": "prod" }}]}, | |
"scopeSpans": [{ | |
"scope": { "name": "ai.request.pipeline", "version": "2.3.0" }, | |
"spans": [{ |
This file contains 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 | |
set -e # Exit on error. Use `set -eux` for debugging to print commands and expand variables. | |
REPO_NAME="kafka-batch-upload" | |
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # Get dir where setup.sh is | |
KAFKA_IMAGE="bitnami/kafka:3.7" # Define Kafka image once | |
echo "Setting up the Kafka Batch Upload project in ./${REPO_NAME}" | |
echo "This will create all necessary files and directories." | |
echo "Attempting to automate KRaft Cluster ID generation..." |
This file contains 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
// Package main implements a load tester for sending OpenTelemetry (OTLP) data | |
// via HTTP JSON or gRPC Protobuf, with an option to output generated data to a | |
// file instead of sending it over the network. | |
package main | |
import ( | |
"bytes" | |
"context" | |
"crypto/tls" | |
"encoding/hex" |
This file contains 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 | |
# Create directory structure | |
echo "Creating project directories..." | |
# Replaced nginx with traefik, added traefik config dir | |
mkdir -p otel-kafka-clickhouse-stack/{traefik/conf,otel-collector,clickhouse-init,kafka-data,clickhouse-data} | |
cd otel-kafka-clickhouse-stack || exit 1 # Exit if cd fails | |
# Create .env file for secrets and configs |
This file contains 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 | |
import argparse | |
import logging | |
import numpy as np | |
import pandas as pd | |
import pyarrow.parquet as pq | |
from pathlib import Path | |
from typing import Union | |
import random |
This file contains 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
COMPANY=Fiddler AI | |
ROLE=Product Manager | |
You are a deep research reasoning model with the ability to access relevant and | |
up-to-date information from the web. Please produce a structured report for a | |
"{{ROLE}}" about the company named "{{COMPANY}}". | |
The report must include the following sections and details: | |
1. Company Overview |
This file contains 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 argparse | |
import json | |
import re | |
import sys | |
import threading | |
import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
from datetime import datetime | |
import requests |
This file contains 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
usage: yt-transcript-downloader.py [-h] [-k KEY] [-v VIDEO] [-c CHANNEL] [-p PLAYLIST] [-s SEARCH] [-o {relevance,date,rating,views}] [-m MAX_SIZE] [-a AGE] | |
Download YouTube transcripts and metadata in YAML format, | |
with an optional max YAML file size limit. | |
options: | |
-h, --help show this help message and exit | |
-k KEY, --key KEY YouTube API Key to use. Overrides YOUTUBE_API_KEY env variable if not set. | |
-v VIDEO, --video VIDEO | |
YouTube Video ID or URL |
This file contains 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 | |
import argparse | |
import io | |
import os | |
import sys | |
import mutagen | |
from mutagen.id3 import ID3, ID3NoHeaderError | |
from mutagen.id3 import error as ID3Error | |
from mutagen.mp3 import MP3 |
This file contains 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
// macvolumes is a tool to classify macOS volumes by their physical connectivity | |
// and whether they are permanently installed or removable. It distinguishes between: | |
// - System volumes (the macOS boot volume) | |
// - Fixed volumes (built-in or permanently installed drives) | |
// - Removable volumes (external drives that can be disconnected) | |
// | |
// The tool uses macOS's standardized disk management structures to ensure | |
// consistent behavior across different Mac models. | |
package main |
NewerOlder