Skip to content

Instantly share code, notes, and snippets.

@karpie28
karpie28 / main.py
Last active June 20, 2022 14:27
List all public files within all S3 buckets on your AWS account
# This snippet works only for small subset of files. Consider using S3 Inventory and Amazon Athena for bigger datasets.
from typing import Iterator
import boto3
import requests
s3 = boto3.client('s3')
all_buckets = [
bucket_dict['Name'] for bucket_dict in
s3.list_buckets()['Buckets']
#include<iostream>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<cstdio>
#include<fstream>
using namespace std;
long int p, q, n, t, read, flag, e[100], d[100], temp[100], j, m[100], en[100], i;
char msg[100];