Overview To manage multiple AWS keys on localhost, configure multiple profiles in the AWS CLI using the ~/.aws/config and ~/.aws/credentials files. Step-by-step instructions Obtain Access Keys:Navigate to the AWS Management…
Category: DevOps
How to use curl to make DNS queries and resolve domains
1. Use –resolve Option The –resolve option allows you to manually specify the IP address for a domain, effectively overriding DNS resolution. Steps: Use the following syntax: curl –resolve <hostname>:<port>:<IP_address> <URL> Key…
How to force DNS lookup domains
$ nslookup dmscambs.co.uk 8.8.8.8$ nslookup dmscambs.co.uk$ curl -i www.dmscambs.co.uk$ curl -vvv www.biomodels.co.uk
AWS CLI Cheat Sheet
Common commands General Configuration Configure AWS CLI with credentials: aws configure –> Enter Access Key, Secret Key, Region, and Output Format. Create a profile: aws configure –profile <profile-name> Use a specific profile: Add –profile <profile-name> to your…
Move a subdirectory into a new git repository
Context In the real world, we may probably have a large Git repository where you want to move out some sub-directories into single Git repositories. Regarding the Git repository, we…
How to automatically delete a Docker container after running it
Normally, a Docker container persists after it has exited. This allows you to run the container again, inspect its filesystem, and so on. However, sometimes you want to run a…
Create or update a commit by a specified author
You may have a situation where a repository is mirrored to multiple remote URLs. One of the URLs is on Bitbucket and the other one is based on GitLab for…
Create an empty commit
When updating a submission, a new revision will be created to capture the updates and a commit will also be created. However, some updates don’t change the files coming alongside the submission but edited some metadata on that submission/dataset. In this case, an empty commit is created to match the newly created version.
Multistage build in Docker
[cvct-advance id=”3689″] Read these documentations https://drumcoder.co.uk/blog/2020/apr/24/docker-spring-boot/ https://suraj.pro/post/multi-staging/
