Skip to content

Instantly share code, notes, and snippets.

View knzcx's full-sized avatar

knzcx

  • living in a docker container
  • 07:38 (UTC +02:00)
View GitHub Profile
@knzcx
knzcx / transfer-ublock-settings-chrome-to-brave.md
Last active July 23, 2025 12:25
Transfer uBlock Origin Settings from Chrome to Brave (Manual Method)

Transfer uBlock Origin Settings from Chrome to Brave (Manual Method)

Problem

When Chrome disables uBlock Origin due to Manifest V3 changes, you may lose access to the extension's dashboard and cannot use the built-in export/import functionality. This guide shows how to manually transfer your uBlock Origin settings from Chrome to Brave.

Prerequisites

  • Both Chrome and Brave browsers installed
  • uBlock Origin installed in Brave
  • Access to your system's file manager or terminal
@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