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
@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

Workshop: Service Mesh for Java Developers

Requirements for Attendees

To make the most out of the "Service Mesh for Java developers" workshop, attendees are expected to meet the following requirements:

  1. Basic knowledge of Java development: Attendees should be familiar with Java programming concepts and have experience working with Java-based frameworks such as Spring Boot and Micronaut.

  2. Familiarity with containerization:

#!/bin/bash
exec 3<>/dev/udp/"$1"/"$2"
echo -e "\n" >&3
cat <&3
exit
@gAmUssA
gAmUssA / gp.sh
Created November 2, 2020 16:21 — forked from sunsided/gp.sh
kubectl color output: finally you can tell Pending from Running
# https://unix.stackexchange.com/a/10065
# if stdout is a terminal
if test -t 1; then
# see if it supports colors
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
bold="$(tput bold)"
underline="$(tput smul)"
standout="$(tput smso)"
normal="$(tput sgr0)"
@gAmUssA
gAmUssA / IqRestApplication.java
Created October 19, 2020 16:48
Kafka Streams interactive questy + Spring webflux
package io.confluent.developer.iqrest;
import org.apache.kafka.common.serialization.Serde;
import org.apache.kafka.common.serialization.Serdes;
import org.apache.kafka.streams.KafkaStreams;
import org.apache.kafka.streams.StoreQueryParameters;
import org.apache.kafka.streams.StreamsBuilder;
import org.apache.kafka.streams.kstream.Consumed;
import org.apache.kafka.streams.kstream.Materialized;
import org.apache.kafka.streams.state.QueryableStoreTypes;
@gAmUssA
gAmUssA / notes.md
Last active May 13, 2020 21:36
5/13 #LiveStreams notes

5/13 #LiveStreams notes

9:47 put link to prep episode

flow

2:06 show starts! 7:52 intro 10:03 NEWS! 10:35 [blog] smarter rebalances in Kafka 12:55 Introducing Meetup Hub

@gAmUssA
gAmUssA / 1.adoc
Created January 21, 2020 16:57
source with ----

Asciidoc code formatting

Example 01

-- SQL Code block
SELECT SOME_FIELD FROM FOO;

Example 02