Skip to content

Instantly share code, notes, and snippets.

View purush7's full-sized avatar
🏠
Working from home

Kali Vara Purushotham Santhati purush7

🏠
Working from home
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
@purush7
purush7 / clickhousedump
Created September 25, 2023 15:09 — forked from inkrement/clickhousedump
dump all clickhouse databases and tables
#!/bin/bash
OUTDIR=.
while read -r db ; do
while read -r table ; do
if [ "$db" == "system" ]; then
echo "skip system db"
continue 2;
@purush7
purush7 / iterm2-solarized.md
Created October 15, 2020 14:02 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k