You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
😃
soft wrap users, what is it like to watch a tennis match in a fullscreen editor?
Alex Zolotarov
webgtx
😃
soft wrap users, what is it like to watch a tennis match in a fullscreen editor?
all I have to do is settle in front of my computer screen and bash the keyboard until something cool happens
When connected with a reverse or bind shell you'll notice that no interactive commands will work and
hitting Ctrl+c will terminate your session.
To fix this, you'll need to attach it to a TTY (make it interactive). Here's how:
This file contains hidden or 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
Sample ICACLS commands to set owner, grant full control, read-only, and read plus execute access
This file contains hidden or 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
Most SPA frameworks support HTML5 history.pushState() to change browser location without triggering a server request.
This works for users who begin their journey from the root (or /index.html), but fails for users who navigate directly to any other page.
The following example uses regular expressions to set up a 200 rewrite for all files to index.html,
except for the file extensions specified in the regular expression.
This file contains hidden or 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
Add the cloud-init script to the Terraform configuration
Open the main.tf file. Notice how the template_file.user_data data block retrieves the contents of the add-ssh-web-app.yaml file. Then, it is passed into aws_instance.web as a user_data value to be initialized when the instance is created.
This file contains hidden or 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
Sample resources for instance in terraform declared only by resources
This file contains hidden or 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
Terraform is a popular infrastructure as code (IaC) tool used to provision and manage cloud resources from various providers like Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), and others. It allows users to define infrastructure configurations in a declarative manner, making it easier to manage and automate the deployment process. Let's explore some of the advantages and disadvantages of using Terraform:
Advantages of Terraform:
Infrastructure as Code (IaC): Terraform enables you to define your infrastructure in code, making it versionable, maintainable, and easier to collaborate on with other team members. This brings many benefits like reproducibility, consistency, and easier rollbacks.
Multi-Cloud Support: Terraform provides a unified way to manage infrastructure across multiple cloud providers. This allows organizations to avoid vendor lock-in and leverage the best features of different cloud platforms.
Declarative Syntax: Terraform uses a declarative la