I hereby claim:
- I am wokoman on github.
- I am wokoman (https://keybase.io/wokoman) on keybase.
- I have a public key ASBBiGjQI8Lj_wnyliJqRhf81UYO2VQC6PUNP2YpbsF8zgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
""" | |
Simple script that moves files to folders accordingly to their name. Files must start with YYYYMM format. | |
Useful for old automatic media uploads by OneDrive iOS app (aka SkyDrive). | |
""" | |
import os | |
import shutil | |
from pathlib import Path | |
directory = '/path/to/files/' |
#!/bin/bash | |
# Takes args in this order: region, prefix, profile | |
# Example: bash change-sets-cleanup.sh eu-west-1 kbc- AWS-profile-foo-bar-eu-west-1-AWSAdministratorAccess | |
# Setting AWS_PROFILE variable to be super safe | |
export AWS_PROFILE=$3 | |
stacks=$(aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE --query "StackSummaries[?starts_with(StackName, \`$2\`) == \`true\`].StackName" --output text --region "$1" --profile "$3") | |
for stack in $stacks; do | |
echo "${stack}: cleaning up change sets" |