Skip to content

Instantly share code, notes, and snippets.

@sathishphcl
sathishphcl / core-arch-training.md
Created December 31, 2021 01:33 — forked from pydevops/core-arch-training.md
Core cloud architecture training videos

The following videos, or playlists, can help ensure consistent knowledge amongst all core team members and help make customer support easier.

  • CS fundamentals - 12-min videos (9 hr)

    • Learn about computer origins, transistors, logic gates, and computer architecture

    • Learn about binary, bits, and bytes (bits, bytes, and octets key in networking)

    • Computer architecture, programming, languages, ML, robotics

@sathishphcl
sathishphcl / devops.md
Created December 31, 2021 01:36
gcp devops review
@sathishphcl
sathishphcl / gsutil-commands.md
Created December 31, 2021 01:52 — forked from mikesparr/gsutil-commands.md
Google Cloud Storage Commands

Security

Assign IAM roles to buckets:

gsutil iam ch user:(user_email):(role1,role2) gs://(BUCKET)

Remove IAM role from bucket:

gsutil iam ch -d user:(user_email):(role1,role2) gs://(BUCKET)

Remove all roles from bucket for given user:

gsutil iam ch -d user:(user_email) gs://(BUCKET)

@sathishphcl
sathishphcl / Export-NSG.ps1
Created December 31, 2021 02:00 — forked from dnewsholme/Export-NSG.ps1
Export-NSG.ps1
[CmdletBinding()]
PARAM()
<# CONSTANTS
$AzureDefaultRuleNames contains the names of the defaule rules in an Azure Network Security Group.
These names can be updated if Microsoft introduce new default rules in to Azure Network Security Groups.
#>
$AzureDefaultRuleNames = @("ALLOW VNET INBOUND", "ALLOW AZURE LOAD BALANCER INBOUND", "DENY ALL INBOUND", "ALLOW VNET OUTBOUND", "ALLOW INTERNET OUTBOUND", "DENY ALL OUTBOUND")
@sathishphcl
sathishphcl / Migrate-AzureVM.ps1
Created December 31, 2021 02:02 — forked from scott-kloud/Migrate-AzureVM.ps1
Migrates a Azure Virtual Machine to another subscription or data centre
<#
.SYNOPSIS
Migrates a Azure Virtual Machine to another subscription or data centre
.DESCRIPTION
Shutsdown the source VM
Exports the VM config to a temporary file
Loops through all Azure disks attached to the source VM
Schedules an async copy of the underlying VHD to the destination storage account
- optionally overwrites existing VHD in destination if it exists
<#
.SYNOPSIS
This script:
Creates a new resource group
Creates a VNet with two subnets in the RG
Allocates a static public IP
Creates a NSG and adds rules permitting TCP 3389, 80 and 443
Launches a WinSrv2012R2 instance
Configures RDG server via Remote Desktop Services PowerShell provider using a DSC configuration
The DSC configuration:
@sathishphcl
sathishphcl / 1-orgs-archetype.md
Created March 24, 2022 10:04 — forked from AAugustine/1-orgs-archetype.md
Orgs and Teams Best Practices

Organization archetypes

The intention of this document is to provide some guidance and suggestions to customers who are wondering how they should structure organizations and teams in their GitHub Enterprise environment. The idea isn't to give hard and fast rules on which approach is better than the other, but to give examples of when one approach might be preferable to another depending on the use case.

1. A single organization with direct organization membership for repository access (not teams)

          ________________
          |     Org      |
          |    ______    |
          |   |      |\  |

| | Repo | \ |

@sathishphcl
sathishphcl / Create and Manage Cloud Resources: Challenge Lab Toggle
Created March 24, 2022 10:08 — forked from hp89dn/Create and Manage Cloud Resources: Challenge Lab Toggle
Getting Started: Create and Manage Cloud Resources: Challenge Lab Toggle
gcloud config set compute/zone us-east1-b
gcloud container clusters create nucleus-jumphost-webserver1
gcloud container clusters get-credentials nucleus-jumphost-webserver1
kubectl create deployment hello-app --image=gcr.io/google-samples/hello-app:2.0
kubectl expose deployment hello-app --type=LoadBalancer --port 8080
kubectl get service
cat << EOF > startup.sh
#! /bin/bash
apt-get update