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:
| #!/usr/bin/env python3 | |
| """ | |
| Benchmark Pod Startup Time | |
| This script is designed to measure how long it takes for a Kubernetes pod to become | |
| fully available, from the moment the pod manifest is applied until the pod is in a Ready | |
| state—and optionally, until a specified health check endpoint inside the pod returns HTTP 200. | |
| Usage: |
| #!/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" |
| """ | |
| 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/' |
I hereby claim:
To claim this, I am signing this object: