Skip to content

Instantly share code, notes, and snippets.

View vzubriichuk's full-sized avatar

Vitaliy Zubriichuk vzubriichuk

View GitHub Profile
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table
@vzubriichuk
vzubriichuk / Makefile
Created June 24, 2022 12:57 — forked from valeriiduz/Makefile
Makefile for manipulate docker-compose of python Dockerfile
include .env
export $(shell sed 's/=.*//' .env)
.PHONY: help up start stop restart status ps clean
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
up: ## Up all or c=<name> containers in foreground
docker-compose -f $(or $(DOCKER_COMPOSE_FILE), docker-compose.yml) up $(c)