Showing posts with label #CHEATSHEET. Show all posts
Showing posts with label #CHEATSHEET. Show all posts

Sunday, September 10, 2023

#MICROSOFT #AZURE #CHEATSHEET

 ----------------------------------------------

|               MICROSOFT AZURE CHEAT SHEET                    |

-----------------------------------------------

**Azure Basics:**

1. **Azure Account:**

   - Sign up for an Azure account at [Azure Portal](https://portal.azure.com/).

2. **Azure Subscriptions:**

   - Organize resources and set up billing with subscriptions.

**Azure Services:**

3. **Virtual Machines (VMs):**

   - Create and manage virtual machines.

   - Azure VM sizes, availability sets, and extensions.

4. **App Service:**

   - Platform-as-a-Service (PaaS) for web apps, APIs, and mobile apps.

5. **Azure Kubernetes Service (AKS):**

   - Managed Kubernetes container orchestration.

6. **Functions:**

   - Serverless compute service for event-driven applications.

7. **Storage Services:**

   - Azure Blob Storage: Scalable object storage.

   - Azure SQL Database: Managed relational databases.

   - Cosmos DB: Globally distributed NoSQL database.

8. **Networking Services:**

   - Virtual Network (VNet): Isolate and secure resources.

   - Azure Load Balancer: Distribute traffic.

   - Azure DNS: Managed DNS service.

9. **Security and Identity:**

   - Azure Active Directory (AD): Identity and access management.

   - Azure Key Vault: Securely manage keys and secrets.

10. **Developer Tools:**

    - Azure DevOps: Collaboration and CI/CD.

    - Azure Functions: Serverless compute for code execution.

    - Azure Logic Apps: Automate workflows.

11. **Big Data and Analytics:**

    - Azure Data Lake Storage: Scalable data lake.

    - Azure Databricks: Analytics and machine learning.

12. **IoT and Edge Computing:**

    - Azure IoT Hub: Manage IoT devices.

    - Azure IoT Edge: Deploy IoT solutions to edge devices.

**Working with Azure:**

13. **Azure CLI:**

    - Install and use the Azure command-line tools.

    - `az login`: Log in to Azure.

    - `az group list`: List resource groups.

14. **Azure Portal:**

    - Access the Azure web-based management portal.

    - Navigate and manage Azure resources through the portal.

15. **Azure Billing and Cost Management:**

    - Monitor and manage Azure costs through the billing dashboard.

16. **Azure Documentation:**

    - [Azure Documentation](https://docs.microsoft.com/en-us/azure/): Comprehensive documentation for Azure services.

**Azure Resources:**

17. **Azure Best Practices:**

    - [Azure Best Practices](https://docs.microsoft.com/en-us/azure/architecture/best-practices/): Guidance for designing well-architected systems on Azure.

18. **Azure Training and Certification:**

    - [Microsoft Learn](https://learn.microsoft.com/en-us/): Learn Azure skills through training resources and certification.

19. **Azure Community and Forums:**

    - [Azure Community](https://community.azure.com/): Connect with others and ask questions in the Azure community.


Saturday, September 9, 2023

#GOOGLE #CLOUD #PLATFORM (#GCP) #CHEATSHEET



 -------------------------------------------------

|        GOOGLE CLOUD PLATFORM (GCP) CHEAT SHEET     |

--------------------------------------------------

**GCP Basics:**

1. **GCP Account:**

   - Sign up for a GCP account at [GCP Console](https://cloud.google.com/).

2. **Projects and Billing:**

   - Create projects to organize resources and set up billing.

**GCP Services:**

3. **Compute Engine:**

   - VM Instances: Create and manage virtual machines (VMs).

   - Instance Templates: Create reusable VM configurations.

4. **App Engine:**

   - Platform-as-a-Service (PaaS) for deploying web applications.

5. **Kubernetes Engine (GKE):**

   - Managed Kubernetes service for container orchestration.

6. **Cloud Functions:**

   - Serverless compute service for event-driven functions.

7. **Storage Services:**

   - Cloud Storage: Scalable object storage.

   - Cloud SQL: Managed relational databases.

   - Bigtable: Distributed NoSQL database.

   - Firestore: Serverless NoSQL database.

8. **Networking Services:**

   - VPC: Virtual Private Cloud for network isolation.

   - Load Balancing: Distribute traffic across instances.

   - Cloud DNS: Managed DNS service.

9. **Security and Identity:**

   - Identity and Access Management (IAM): User and role management.

   - Cloud Identity: Manage users and devices.

   - Key Management Service (KMS): Encryption key management.

10. **Developer Tools:**

    - Cloud Source Repositories: Version control.

    - Cloud Build: Continuous integration and delivery.

    - Cloud Debugger: Debug applications in production.

11. **Big Data and Machine Learning:**

    - BigQuery: Serverless, highly scalable data warehouse.

    - AI Platform: Machine learning platform.

    - Dataflow: Stream and batch data processing.

12. **IoT and Data Analytics:**

    - IoT Core: Manage IoT devices.

    - Pub/Sub: Messaging service for event-driven systems.

    - Dataprep: Data preparation and transformation.

**Working with GCP:**

13. **Google Cloud SDK:**

    - Install and use the Google Cloud command-line tools.

    - `gcloud init`: Initialize your GCP configuration.

    - `gcloud projects list`: List available projects.

14. **GCP Console:**

    - Access the GCP web-based management console.

    - Navigate and manage GCP resources through the console.

15. **GCP Billing and Cost Management:**

    - Monitor and manage GCP costs through the billing dashboard.

16. **GCP Documentation:**

    - [GCP Documentation](https://cloud.google.com/docs/): Comprehensive documentation for GCP services.

**GCP Resources:**

17. **GCP Best Practices:**

    - [GCP Best Practices](https://cloud.google.com/docs/best-practices): Guidance for designing well-architected systems on GCP.

18. **GCP Tutorials and Training:**

    - [Google Cloud Training](https://cloud.google.com/training/): Learn GCP skills through training resources and certification.

19. **GCP Community and Forums:**

    - [Google Cloud Community](https://cloud.google.com/community): Connect with others and ask questions in the GCP community.


Friday, September 8, 2023

#Amazon #AWS #CHEATSHEET

 ----------------------------------------

|                   AWS CHEAT SHEET                           |

----------------------------------------

**AWS Basics:**

1. **AWS Account:**

   - Sign up for an AWS account at [AWS Console](https://aws.amazon.com/).

2. **Regions and Availability Zones:**

   - AWS infrastructure is divided into regions and further into availability zones.

**AWS Services:**

3. **Compute Services:**

   - EC2: Elastic Compute Cloud for virtual machines.

   - ECS: Elastic Container Service for container management.

   - Lambda: Serverless compute service.

4. **Storage Services:**

   - S3: Simple Storage Service for scalable object storage.

   - EBS: Elastic Block Store for block-level storage.

   - Glacier: Low-cost archive storage.

5. **Database Services:**

   - RDS: Relational Database Service for managed databases.

   - DynamoDB: NoSQL database service.

   - Redshift: Data warehousing service.

6. **Networking Services:**

   - VPC: Virtual Private Cloud for network isolation.

   - Route 53: DNS web service.

   - ELB: Elastic Load Balancer for distributing traffic.

7. **Security and Identity:**

   - IAM: Identity and Access Management for user and role management.

   - KMS: Key Management Service for encryption.

   - Cognito: Identity and user management.

8. **Developer Tools:**

   - CodeDeploy: Automate code deployments.

   - CodePipeline: Continuous integration and delivery service.

   - CloudFormation: Infrastructure as Code (IaC) tool.

9. **Analytics Services:**

   - EMR: Elastic MapReduce for big data processing.

   - Athena: Serverless query service.

   - QuickSight: Business intelligence service.

10. **Machine Learning Services:**

    - SageMaker: Managed machine learning platform.

    - Comprehend: Natural language processing.

    - Rekognition: Image and video analysis.

11. **Application Integration:**

    - SQS: Simple Queue Service for message queuing.

    - SNS: Simple Notification Service for event notifications.

    - Step Functions: Serverless workflow service.

**Working with AWS:**

12. **AWS CLI:**

    - `aws configure`: Set up AWS CLI credentials.

    - `aws s3 ls`: List S3 buckets.

    - `aws ec2 describe-instances`: Describe EC2 instances.

13. **AWS Management Console:**

    - Access the AWS web-based management console.

    - Navigate and manage AWS resources through the console.

14. **AWS Billing and Cost Management:**

    - Monitor and manage AWS costs through the billing dashboard.

15. **AWS Documentation:**

    - [AWS Documentation](https://aws.amazon.com/documentation/): Comprehensive documentation for AWS services.

**AWS Resources:**

16. **AWS Well-Architected Framework:**

    - [AWS Well-Architected Framework](https://aws.amazon.com/architecture/well-architected/): Best practices for designing well-architected systems on AWS.

17. **AWS Whitepapers:**

    - [AWS Whitepapers](https://aws.amazon.com/whitepapers/): In-depth technical documents on various AWS topics.

18. **AWS Training and Certification:**

    - [AWS Training and Certification](https://aws.amazon.com/training/): Learn AWS skills and get certified.



#Terraform #cheatsheet covering key concepts and common commands


### Terraform Basics: ###

1. **Installation**:

   - Download Terraform from the [official website](https://www.terraform.io/downloads.html).

   - Install Terraform on your system.

2. **Initialization**:

   - `terraform init`: Initializes a new or existing Terraform working directory, downloading any necessary providers and modules.

3. **Configuration**:

   - Create a `.tf` file to define infrastructure as code (IaC) using HashiCorp Configuration Language (HCL).

### Terraform CLI Commands:

4. **Plan**:

   - `terraform plan`: Generates an execution plan, displaying changes that will be made to infrastructure without applying them.

5. **Apply**:

   - `terraform apply`: Applies the changes defined in the configuration, creating or updating infrastructure.

6. **Destroy**:

   - `terraform destroy`: Destroys the resources defined in the configuration.

7. **Workspace**:

   - `terraform workspace new <name>`: Creates a new workspace.

   - `terraform workspace list`: Lists available workspaces.

   - `terraform workspace select <name>`: Switches to a different workspace.

   - `terraform workspace delete <name>`: Deletes a workspace.

8. **State Management**:

   - `terraform state list`: Lists resources in the Terraform state.

   - `terraform state show <resource>`: Displays details of a specific resource in the state.

   - `terraform state rm <resource>`: Removes a resource from the state.

9. **Variables**:

   - Define input variables in `.tf` files or use variable files.

   - `-var` or `-var-file` flags to specify variable values.

### Terraform Configuration:

10. **Providers**:

   - Define cloud or infrastructure providers (e.g., AWS, Azure, GCP) in the configuration.

11. **Resources**:

   - Define resources (e.g., VMs, networks) to create or manage.

   - Use resource blocks like `resource "aws_instance" "example" { ... }`.

12. **Modules**:

   - Organize and reuse configurations using modules.

   - Include modules using `module` blocks.

13. **Data Sources**:

   - Fetch information from providers without creating resources.

   - Use data blocks like `data "aws_ami" "example" { ... }`.

14. **Outputs**:

   - Define values to be shown when `terraform apply` is executed.

   - Use output blocks like `output "instance_ip" { ... }`.

15. **Variables**:

   - Declare input variables using variable blocks.

   - Use variables in resource and module configurations.

### Terraform State and Backends:

16. **State File**:

   - Terraform stores its state in a file named `terraform.tfstate` by default.

17. **Remote State**:

   - Use remote backends (e.g., AWS S3, Azure Storage) for state storage.

   - Configure remote backends in the configuration.

### Best Practices:

18. **Code Structure**:

   - Organize Terraform configurations into modular and reusable components.

   - Use folders and modules for better organization.

19. **Variables and Outputs**:

   - Use variables and outputs for flexibility and readability.

   - Define default values and descriptions for variables.

20. **Documentation**:

   - Add comments and documentation to your Terraform code.

21. **Versioning**:

   - Specify a required Terraform version in the configuration.

   - Use version constraints in `provider` blocks.

22. **Environment Variables**:

   - Use environment variables (e.g., `TF_VAR_name`) to set variable values.

   - Environment variables take precedence over default values.

23. **Sensitive Data**:

   - Avoid storing sensitive data (e.g., secrets) directly in Terraform code.

   - Use environment variables or external secret management tools.

This Terraform cheat sheet provides a solid foundation for managing infrastructure as code using Terraform. Be sure to refer to the official Terraform documentation for more in-depth information and best practices.

Thursday, September 7, 2023

#DOCKER #CHEATSHEET



-----------------------------------------

|                    DOCKER CHEAT SHEET                       |

------------------------------------------

**Docker Basics:**

1. **Docker Version:**

   - `docker --version`: Display Docker version info.

2. **Docker Information:**

   - `docker info`: Show system-wide information.

3. **Docker Containers:**

   - `docker run <image>`: Create and start a new container.

   - `docker ps`: List running containers.

   - `docker ps -a`: List all containers (including stopped ones).

   - `docker stop <container>`: Stop a running container.

   - `docker rm <container>`: Remove a stopped container.

4. **Docker Images:**

   - `docker images`: List available images.

   - `docker rmi <image>`: Remove an image.

5. **Docker Volumes:**

   - `docker volume create <volume-name>`: Create a volume.

   - `docker volume ls`: List volumes.

   - `docker volume rm <volume-name>`: Remove a volume.

**Building and Running Containers:**

6. **Dockerfile:**

   - Create a Dockerfile to define container configuration.

7. **Building Images:**

   - `docker build -t <image-name> .`: Build an image from a Dockerfile.

8. **Running Containers with Options:**

   - `docker run -d <image>`: Run in detached mode (background).

   - `docker run -it <image>`: Run interactively (with terminal).

   - `docker run -p <host-port>:<container-port> <image>`: Map ports.

   - `docker run --name <container-name> <image>`: Assign a name.

**Docker Networking:**

9. **Docker Network:**

   - `docker network create <network-name>`: Create a custom network.

   - `docker network ls`: List networks.

   - `docker network inspect <network-name>`: View network details.

**Managing Containers:**

10. **Container Logs:**

    - `docker logs <container>`: Display container logs.

    - `docker logs -f <container>`: Follow logs in real-time.

11. **Container Exec:**

    - `docker exec -it <container> <command>`: Execute a command in a running container.

12. **Copying Files:**

    - `docker cp <container>:<source-path> <destination-path>`: Copy files between host and container.

**Docker Compose:**

13. **Docker Compose Basics:**

    - Define and run multi-container applications.

14. **Docker Compose Commands:**

    - `docker-compose up`: Start services.

    - `docker-compose down`: Stop services and remove containers.

    - `docker-compose ps`: List containers in the project.

**Docker Hub and Registry:**

15. **Docker Hub:**

    - [Docker Hub](https://hub.docker.com/): Explore, share, and pull Docker images.

16. **Push and Pull Images:**

    - `docker push <image-name>`: Upload image to a registry.

    - `docker pull <image-name>`: Download image from a registry.

**Docker Cleanup:**

17. **Cleanup Unused Resources:**

    - `docker system prune`: Remove unused containers, networks, and volumes.

**Docker Resources:**

18. **Official Docker Documentation:**

    - [Docker Official Documentation](https://docs.docker.com/)

19. **Docker Community:**

    - [Docker Community Forums](https://forums.docker.com/)

    - [Docker Community Slack](https://community.docker.com/)


Tuesday, September 5, 2023

#PYTHON #CHEATSHEET

----------------------------

|    PYTHON CHEAT SHEET            |

----------------------------

1. Python Basics:

   - Comments: # Single-line comment

2. Variables and Data Types:

   - int, float, str, bool

   - x = 5             # Variable assignment

   - type(x)           # Check variable type

3. Input and Output:

   - input("Prompt")   # User input

   - print("Text")     # Output to console

4. Conditional Statements:

   - if, elif, else

   - Comparison operators: ==, !=, <, >, <=, >=

5. Loops:

   - for, while

   - range() function

   - break, continue

6. Lists and Tuples:

   - list = [1, 2, 3]

   - tuple = (1, 2, 3)

   - Accessing elements, slicing

7. Dictionaries:

   - dict = {"key": "value"}

   - Accessing values, keys()

8. Functions:

   - def function_name(parameters):

   - return statement

   - Scope: local vs. global

9. Libraries and Modules:

   - import module_name

   - Common libraries: math, random, datetime

10. File Handling:

    - open(), read(), write(), close()

    - with open() as file:

11. Exception Handling:

    - try, except, finally

    - Handling specific exceptions

12. Object-Oriented Programming (OOP):

    - Classes and objects

    - Inheritance, encapsulation, polymorphism

13. List Comprehensions:

    - [expression for item in iterable]

14. Lambda Functions:

    - lambda arguments: expression


15. Virtual Environments:

    - venv module for isolated environments

16. Modules and Packages:

    - Create and import custom modules

    - Organize code into packages

17. Python 3 vs. Python 2:

    - Differences and migration considerations

18. Helpful Libraries:

    - NumPy (numerical computing)

    - pandas (data analysis)

    - Matplotlib (data visualization)

    - requests (HTTP requests)

    - Flask (web development)

 19. Resources:

    - Official Python documentation: https://docs.python.org/3/

    - Python PEP8 style guide: https://www.python.org/dev/peps/pep-0008/

    - Online tutorials and forums for learning


Featured Posts

Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP

  Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...