Skip to content

Instantly share code, notes, and snippets.

View QuickWrite's full-sized avatar
🎯
Focusing

QuickWrite QuickWrite

🎯
Focusing
View GitHub Profile
@theking2
theking2 / docker_logs
Created May 3, 2026 06:41
Docker Log sizes
#!/usr/bin/env python3
"""
Docker Container Log Size Calculator
Lists all Docker containers with their log sizes and total log usage.
"""
import subprocess
import json
import sys
from typing import Dict, List, Tuple
@luckygoswami
luckygoswami / migrate-gpg-key.md
Created May 5, 2025 17:59
Step-by-step guide to transfer your existing GPG key to a new machine for Git commit signing. Covers key export/import, Git configuration, and GitHub setup for seamless migration.

Title: 🔑 How to Import and Configure an Existing GPG Key on a New System

Description:

Step-by-step guide to transfer and set up an old GPG key (for Git commit signing) on a new machine.


1. Export Keys from Old System