Skip to content

Instantly share code, notes, and snippets.

@ertegun
ertegun / containers_logs_list.sh
Created October 28, 2025 08:35
contailer logs list
for container in $(docker ps --format '{{.Names}}'); do
logpath=$(docker inspect --format='{{.LogPath}}' $container)
if [ -f "$logpath" ]; then
size=$(du -h "$logpath" | cut -f1)
printf "%-30s %s\n" "$container" "$size"
fi
done
@ertegun
ertegun / install_docker.sh
Last active August 16, 2025 19:44
Install Docker/Docker-Compose
#!/bin/bash
# Renkli çıktı için
GREEN='\033[0;32m'
NC='\033[0m' # No Color
# Sistem sürümünü kontrol et
UBUNTU_VERSION=$(lsb_release -r | awk '{print $2}')
echo -e "${GREEN}🚀 Docker ve Docker Compose kurulumu başlıyor...${NC}"
@ertegun
ertegun / BlackListAdguardHome
Last active September 2, 2024 08:40
MyAdguardHomeLists
||readbakery.com^
@ertegun
ertegun / SQL
Last active May 27, 2022 15:12
test
SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'mydb' AND ENGINE = 'InnoDB';