sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
#!/bin/bash | |
# Usage: $0 {days} [--delete] | |
# Script searches for images pushed to ECR older than specified (default is 30 days) | |
# Checks if image is not running in any ECS container and then prints deletion command | |
# or deletes it directly. | |
# | |
# Script needs working AWSCLI config (`aws configure`) to function | |
DAYS=${1:-"30"} |
#!/usr/bin/env bash | |
DOMAIN=$1 | |
if [ -z "$DOMAIN" ]; then | |
echo -n 'Enter root domain (no www): ' | |
read input_d | |
DOMAIN=$input_d | |
fi |
rsync (Everyone seems to like -z, but it is much slower for me)