Skip to content

Instantly share code, notes, and snippets.

@MrPink
Last active May 2, 2018 16:44
Show Gist options
  • Save MrPink/4973449b5d4b9d6011a6d9f0b7b3700d to your computer and use it in GitHub Desktop.
Save MrPink/4973449b5d4b9d6011a6d9f0b7b3700d to your computer and use it in GitHub Desktop.
DevOps Troubleshooting tips and tricks

Tips and tricks for Linux troubleshooting

Terraform commands

  • Initialize Terraform terraform init

  • Terraform plan terraform plan

  • Terraform apply terraform apply

  • Increase Terraform verbosity export TF_LOG=debug

Docker and Docker-compose commands

  • Build Docker image from Dockerfile with tag docker build -t foo

  • Pull Docker image docker pull nginx-stable

  • Push docker image docker push nginx

  • Login to AWS ECR $(aws ecr get-login)

AWS tips and tricks

Linux systems administration

Git tips and tricks

  • comprehensive from beginner to advanced Git [https://git-scm.com/doc]

  • Fetch updates from origin git fetch origin

  • Create a new branch locally git checkout -b <my-branch-name>

  • Checkout an existing branch git checkout <branch-name>

  • Push branch git push <branch-name>

  • Reset branch with remote (Gitlab) git rebase origin --hard

Troubleshooting performance and disk issues

Troubleshooting web application issues

Linux CLI commands

  • remove all files ending with .txt rm *.txt

SSH commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment