Skip to content

Instantly share code, notes, and snippets.

View gAmUssA's full-sized avatar
so hard

Viktor Gamov gAmUssA

so hard
View GitHub Profile
We use cookies for site functionality, user experience, to analyze traffic and to show personalized ads from United or our third-party partners. For more information, refer to our Privacy Policy.
Accept cookies
Cookie preferences
Navigated to: Fly - United Airlines
United logo link to homepage
Book
My trips
{
"namespace": "dev.gamov.flightdemo.avro",
"type": "record",
"name": "FlightData",
"doc": "Schema for flight data",
"fields": [
{
"name": "flightId",
"type": "string",
"doc": "Unique identifier for the flight"
INSERT INTO enriched_flights
SELECT
flightNumber,
CAST(FROM_UNIXTIME(scheduledDeparture/1000) AS TIMESTAMP(3)) AS scheduled_departure_time,
airline,
origin,
destination,
CAST(FROM_UNIXTIME(actualDeparture/1000) AS TIMESTAMP(3)) AS actual_departure_time,
CASE
WHEN status = 'CANCELLED' THEN 'CANCELLED'
2025-04-01T03:53:36.898Z [confluent] [info] Initializing server...
2025-04-01T03:53:36.909Z [confluent] [info] Server started and connected successfully
2025-04-01T03:53:36.915Z [confluent] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
/Users/vikgamov/.nvm/versions/node/v18.20.8/bin/node: bad option: --env-file
2025-04-01T03:53:36.939Z [confluent] [info] Server transport closed
2025-04-01T03:53:36.939Z [confluent] [info] Client transport closed
2025-04-01T03:53:36.939Z [confluent] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-04-01T03:53:36.939Z [confluent] [error] Server disconnected. For troubleshooting guidance, please visit our [deb
@gAmUssA
gAmUssA / Dockerfile
Created March 2, 2025 06:53
flink 1.20 and kafka and SR in docker
FROM flink:1.20.0
# Install necessary utilities
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
wget \
jq \
netcat-openbsd \
&& rm -rf /var/lib/apt/lists/*
#!/bin/bash
# Counters for Maven and Gradle projects
maven_count=0
gradle_count=0
echo "Starting to clean projects..."
# Recursively find directories containing pom.xml and run 'mvn clean'
while IFS= read -r -d '' file; do
@gAmUssA
gAmUssA / clone.sh
Created July 23, 2024 19:18
clone quick-start repo
#!/bin/bash
# Clone the repository
git clone https://github.com/startreedata/pinot-quickstart
# Extract the directory name and change to that directory
repo_name=$(basename https://github.com/startreedata/pinot-quickstart .git)
cd $repo_name
# Run the make command

Hello, Mermaid!

First Section

classDiagram
    class Item {
      <<interface>>
#!/bin/bash
# Set the path to your movies.json file
MOVIES_FILE="${MOVIES_FILE:-/app/movies.json}"
# Set the Kafka topic to produce to
KAFKA_TOPIC="${KAFKA_TOPIC:-your_kafka_topic}"
KAFKA_TOPIC_PARTITIONS="${KAFKA_TOPIC_PARTITIONS:-10}"
# Set the Kafka broker address
---
apiVersion: v1
kind: Namespace
metadata:
name: kuma-system
labels:
kuma.io/system-namespace: "true"
---
apiVersion: v1