How to Recursively Delete all Files in an AWS S3 Bucket
If you need to recursively delete all files in an AWS S3 bucket, then you can do the following:
aws s3 rm --recursive s3://your-bucket-name/foo/bar/ …
Read Article →
In-depth guides, insights, and best practices for modern software engineering
If you need to recursively delete all files in an AWS S3 bucket, then you can do the following:
aws s3 rm --recursive s3://your-bucket-name/foo/bar/ …
Read Article →
If you want to execute linux commands in Golang, then you can use exec.Command:
cmd := exec.Command("echo", "hello world")
res, _ := …
Read Article →
If you need to check for Prime Numbers in Golang, then you can use the following method:
const n = 1212121
if big.NewInt(n).ProbablyPrime(0) { …
Read Article →
If you need to raise a number to a power in Golang, then you can use the math.Pow function:
package main
import (
"math"
)
func …
Read Article →
If you need to get the CPU Frequency in Linux, then you can run the following command:
watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"
Read Article →
How can python pandas disable warnings?
If you need to disable warnings with Pandas on Python, then you can use the warnings module and ignore the …
If we take the following list:
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', …
Read Article →
When you are trying to create an RDS database and you get the dreaded error message:
IAM role ARN value is invalid or does not include the required …
The following code expects a python file with the contents as follows in a file called python/script1.py:
def …
Read Article →
If you get the Instance Profile already exists error when running your Terraform apply, then it is either because an instance profile with that name …
If you are using aws configure sso to populate your ~/.aws/credentials file and you get the following error when you try and reauthorize, then you can …
If you need to match a string in a file, then grep is your friend.
grepLet’s take a file called somefile.txt
this
is
a
test …
Read Article →