Skip to content

Instantly share code, notes, and snippets.

View techkuz's full-sized avatar
🎯
Focusing

Kuz Le techkuz

🎯
Focusing
View GitHub Profile
@techkuz
techkuz / Dockerfile
Created December 24, 2019 08:49 — forked from miguelmota/Dockerfile
Dockerfile grpcurl binary download
FROM ubuntu:18.04
RUN apt-get update -y
RUN apt-get install wget -y
RUN wget https://github.com/fullstorydev/grpcurl/releases/download/v1.1.0/grpcurl_1.1.0_linux_x86_64.tar.gz
RUN tar -xvzf grpcurl_1.1.0_linux_x86_64.tar.gz
RUN chmod +x grpcurl
RUN mv grpcurl /usr/local/bin/grpcurl
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
@techkuz
techkuz / pyenv_command.sh
Created September 24, 2018 07:39 — forked from xnoder/pyenv_command.sh
pyenv cheat sheet
# List all available versions
$ pyenv versions
system
# Install Python3 on machine as full binary
$ pyenv install 3.5.2
# Create virtualenv out of 3.5.2
$ pyenv virtualenv 3.5.2 developer
$ pyenv activate developer