I hereby claim:
- I am jianshen92 on github.
- I am jianshen92 (https://keybase.io/jianshen92) on keybase.
- I have a public key ASDkjUMPb-RJE9ox1OqohA5HOSI91BKkzqQ2GTV5X__5Swo
To claim this, I am signing this object:
| import boto3 | |
| def download_s3_directory(s3_resource, bucket: str, key: str, local_dir: str): | |
| """ Download the S3 directory to a local disk """ | |
| bucket_obj = s3_resource.Bucket(bucket) | |
| if key != "" and not key.endswith("/"): | |
| key = key + "/" | |
| for obj in bucket_obj.objects.filter(Prefix=key): | |
| local_file_path = local_dir + "/" + obj.key[len(key) :] | |
| local_file_dir = os.path.dirname(local_file_path) |
| git push origin --delete <branch-name> |
I hereby claim:
To claim this, I am signing this object:
| lsof -i -P -n | grep 8000 |
| find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete |
| git config --unset core.hookspath |
| git log --all --graph --decorate --oneline |