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
x = range(0,5) | |
# no way there are bugs here! | |
for lol in x: | |
print x | |
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
echo "buckets logging to a folder other than <theirname>/:" | |
for bucket in $(aws s3 ls | awk '{print $3}') | |
do | |
bucket_status=$(aws s3api get-bucket-logging --bucket $bucket | grep -v "$bucket/") | |
if [[ $bucket_status != "" ]]; then | |
echo "\t$bucket" | |
fi | |
done | |
echo "buckets logging to a bucket other than s3.bucket.access.logs:" |
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
for bucket in $(aws s3 ls | awk '{print $3}') | |
do | |
bucket_status=$(aws s3api get-bucket-versioning --bucket $bucket) | |
if [[ $bucket_status != "Enabled" ]]; then | |
echo $bucket | |
fi | |
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
.. code-block:: javascript | |
db.runCommand( { aggregate: "records", | |
pipeline: [ { $project: { costsOneDollar: | |
{ $eq: [ "$price", { $literal: "$1.00" } ] } } | |
} ] } ) |