Skip to content

Instantly share code, notes, and snippets.

View nobbynobbs's full-sized avatar
👀
who's there?

Roman nobbynobbs

👀
who's there?
  • Nizhny Novgorod, Russia
View GitHub Profile
@nobbynobbs
nobbynobbs / Jenkinsfile
Last active May 9, 2023 20:32
example of sidecar service in jenkins declarative pipeline
pipeline {
agent { label "docker" }
stages {
stage("test sidecar") {
steps{
script {
withDockerNetwork { n ->
// we could use Image.withRun() instead of Image.run(),
// and get rid of try/catch/finally blocks
// It's prefferable way, but it doesn't remove volumes after containers
@nobbynobbs
nobbynobbs / docker-compose.yaml
Last active March 31, 2026 11:43
kafka and kafka-ui, without zookeeper
name: kafka-sandbox
services:
kafka:
image: bitnami/kafka:4.0.0
environment:
- KAFKA_CLUSTER_ID=lkorDA4qT6W1K_dk0LHvtg
# Start Kraft Setup (Kafka as Controller - no Zookeeper)
- KAFKA_CFG_NODE_ID=1
- KAFKA_CFG_PROCESS_ROLES=broker,controller
- KAFKA_CFG_BROKER_ID=1
@nobbynobbs
nobbynobbs / stats.sql
Created June 23, 2022 17:41
postgres stats
SELECT
relname AS "relation",
C .reltuples::bigint AS approximate_rows,
pg_size_pretty (
pg_total_relation_size (C .oid)
) AS "data_size",
pg_size_pretty (
pg_indexes_size(C .oid)
) as "indexes_size",
pg_size_pretty (