How to get CPU Frequency in Linux
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 →
In-depth guides, insights, and best practices for modern software engineering
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 →
If you want to invoke an AWS Lambda from your CLI, then the best option is to have the AWS CLI installed.
Getting started with the AWS CLI – AWS …!-->
Read Article →Sometimes you might want to exit a command if a variable is not set in Bash.
You can do this as follows:
if [ -z "$VARIABLE_NAME" ]; then echo …
Read Article →
if you have a conditional in your Gitlab pipeline stage that checks if something has succeeded or failed, then you can use this to pass or fail your …
Read Article →If you find yourself having the requirements to support both AWS CLI v1 and v2 simultaneously, then you can use the following conditional in Bash to …
Read Article →