Skip to content

Instantly share code, notes, and snippets.

View knzcx's full-sized avatar

knzcx

  • living in a docker container
  • 11:48 (UTC +02:00)
View GitHub Profile
@knzcx
knzcx / docker-ecs-file-transfer.md
Created April 28, 2025 14:22
Quick guide for copying files from Docker containers running on ECS/EC2 to local machine using command line only.

Copying Files from Docker Container on ECS: Quick Guide

Generic Commands

1. Identify Container

# List ECS tasks
aws ecs list-tasks --cluster YOUR_CLUSTER_NAME

# Show task details
@knzcx
knzcx / sips-macos.txt
Last active March 3, 2025 17:58
Convert HEIC to JPG locally on macOS
~ sips -s format jpeg example-image.heic --out example-image.jpg
=> additional information & formats
~ sips --version
sips-311
~ sips
sips - scriptable image processing system.
This tool is used to query or modify raster image files and ColorSync ICC profiles.
Its functionality can also be used through the "Image Events" AppleScript suite.
@knzcx
knzcx / cloudflare-updatewafrule.py
Last active April 13, 2025 20:29
Cloudflare WAF Custom Rules Updater
#!/usr/bin/env python3
import argparse
import requests
import json
import sys
import time
from datetime import datetime
# Import Rich components at module level