neehar.priydarshi
Tue Jan 30 2024
Using the command “git push origin feature-branch -f” forces the remote repository to match the precise state of the local repository. However, it should be used with caution because it has the ability to overwrite remote modifications and cause data loss.
neehar.priydarshi
Tue Jan 30 2024
Using git rebase command allows you to modify the history of your repository by changing a sequence of commits. It lets you to reorganise, modify, and merge commits. Git rebase is commonly used for resolving conflicts.
soniya.rayabagi
Tue Jan 30 2024
The
<<-EOF
and EOF
are Terraform's heredoc syntax
, This syntax enables the creation of multiline strings in Terraform configuration files without the need to manually insert newline characters (\n
).nisanth
Mon Jan 29 2024
To check if an instance is running using Terraform, you can use the following command:
This command displays the current state of your infrastructure as recorded by Terraform. It will show information about the resources that Terraform has created, including details about the EC2 instance, such as its ID, IP address, and other attributes.
terraform show
This command displays the current state of your infrastructure as recorded by Terraform. It will show information about the resources that Terraform has created, including details about the EC2 instance, such as its ID, IP address, and other attributes.
nisanth
Mon Jan 29 2024
If we want to create an instance in different regions within the same Terraform file, we need to use provider aliases. In Terraform, a single file typically contains one default provider configuration for ‘aws.’ To work with multiple regions, we use provider aliases.
Instead of having two separate provider blocks, we add aliases to them. For example:
This way, we can create instances in different regions using a single Terraform file, and each instance is associated with its respective region through the use of provider aliases
Instead of having two separate provider blocks, we add aliases to them. For example:
hcl
provider "aws" {
alias = "us-east-2"
region = "us-east-2"
}
resource "aws_instance" "example" {
provider = aws.us-east-2
ami = "ami-id"
instance_type = "t2.micro"
}
provider "aws" {
alias = "us-east-1"
region = "us-east-1"
}
resource "aws_instance" "example1" {
provider = aws.us-east-1
ami = "ami-id"
instance_type = "t2.micro"
}
This way, we can create instances in different regions using a single Terraform file, and each instance is associated with its respective region through the use of provider aliases
soniya.rayabagi
Mon Jan 29 2024
how to troubleshoot the visibility of an
discovered that instances may not appear in the console if deployed in a different region , verified instance existence by providing the correct region in the AWS console.
example:
AWS EC2 instance.
discovered that instances may not appear in the console if deployed in a different region , verified instance existence by providing the correct region in the AWS console.
example:
provider "aws" {
region = "us-east-2"
}
satya
Mon Jan 29 2024
if you are using
Every time you start ngrok it will use the same domain name
ngrok
to expose your localhost , you can serve that in a static domain.Every time you start ngrok it will use the same domain name
ngrok http --domain=<your-domain>. <port>
satya
Sat Jan 27 2024
setup tailwind css without using node.js
The below setup is for macOS arm64
Step1
Step2
Step3
Create input.css file and import the required tailwind base, components & utilities
Step4
For production add the tailwind watcher command with
The below setup is for macOS arm64
Step1
curl -sLO
chmod +x tailwindcss-macos-arm64
mv tailwindcss-macos-arm64 tailwindcss
Step2
./tailwindcss init // this will create tailwind.config.js file
Step3
Create input.css file and import the required tailwind base, components & utilities
Step4
./tailwindcss -i input.css -o output.css --watch // this will generate a output.css file, so make sure to link it in your root file
For production add the tailwind watcher command with
--minify
flag
./tailwindcss -i input.css -o output.css --minify
hilda
Thu Jan 25 2024
ChatGPT 4.0 has a limit of 40 messages per 3 hours while using some of the custom GPTs like DALL·E
soniya.rayabagi
Thu Jan 25 2024
touch filename :
Used to create an empty file .git remote :
The command is used to manage remote repositories.git reset HEAD~1 :
Removes the most recent commit from the current branch without modifying the working directory.git pull origin branch_name :
Fetches changes from the specified branch (branch_name) on the origin remote repository.Showing 22 to 24 of 71 results