This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function awslogin() { | |
local profile_name=$1 | |
aws sso login --profile $profile_name | |
export AWS_PROFILE_NAME=$profile_name | |
echo change the AWS_PROFILE_NAME to $profile_name | |
} | |
RPROMPT='%{$fg[cyan]%}%* %{$fg[yellow]%}($AWS_PROFILE_NAME)%{$reset_color%}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datelist=('20240501' '20240502' '20240503' '20240504') | |
for date in "${datelist[@]}"; do | |
mkdir -p "/Users/mohdamzar96/Downloads/$date" | |
aws s3 sync "s3://bucket-name/by-date/$date/" "/Users/mohdamzar96/Downloads/$date" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unset SSH_AUTH_SOC && \ | |
podman machine stop && \ | |
podman machine set --cpus 4 --memory 3048 && \ | |
podman machine start && \ | |
podman image ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Credit to https://github.com/vitalik/django-ninja/issues/104#issuecomment-805939752 🔥 | |
python '3.11.6' | |
django '4.2.7' | |
ninja '1.0.1' | |
pydantic '2.5.2' | |
''' | |
from ninja import Router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
cloud { | |
organization = "xxxx" | |
workspaces { | |
name = "s3-creation" | |
} | |
} |