ELK Cheatsheet

Elasticsearch Get version of ES curl http://localhost:9200/ Get all indices in a cluster curl http://localhost:9200/_aliases Get all indices in a cluster (pretty) curl http://localhost:9200/_aliases?pretty=true Show index creation time curl http://localhost:9200/_cat/indices?h=health,status,index,id,pri,…

Azure Cheatsheet

Getting Started Install latest version of Azure CLI on Mac brew update && brew install azure-cli Resource: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos Install PowerShell brew install --cask powershell Run a powershell terminal with: pwsh Resource: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7.…

GCP Cheatsheet

Thanks, I hate it. CLI Login to account gcloud auth login List projects gcloud projects list Set project PROJECT_NAME=yourproject gcloud config set project $PROJECT_NAME List credentialed accounts gcloud auth list Change credentialed account ACCOUNT_NAME=account_to_use gcloud config set account $ACCOUNT_NAME Set project_id…

Javascript Cheatsheet

Note to self: if you are looking at this, you're in for a bad time Front-End Ajax Submit a POST request via a form without reloading the page As an added bonus, this will also print the response output to the DOM. <!DOCTYPE html> <html lang="…

Terraform Cheatsheet

Initialize Workspace This is used to download and configure providers in your terraform code: terraform init Resource: https://learn.hashicorp.com/tutorials/terraform/eks Run the terraform code terraform apply Destroy all terraform resources terraform destroy List all resources terraform state list Resource: https://github.com/hashicorp/terraform/issues/12917…