Skip to content

Instantly share code, notes, and snippets.

View atulkamble's full-sized avatar
☁️
AWS/Azure/DevOps/RHEL Training & Certifications

Atul Kamble atulkamble

☁️
AWS/Azure/DevOps/RHEL Training & Certifications
View GitHub Profile
@atulkamble
atulkamble / New_AzureVm
Last active August 11, 2021 06:05
use the New-AzVM cmdlet to create a new Azure virtual machine.
New-AzVm `
-ResourceGroupName "TestResourceGroup" `
-Name "test-wp1-eus-vm" `
-Location "East US" `
-VirtualNetworkName "test-wp1-eus-network" `
-SubnetName "default" `
-SecurityGroupName "test-wp1-eus-nsg" `
-PublicIpAddressName "test-wp1-eus-pubip" `
-OpenPorts 80,3389
@atulkamble
atulkamble / azure_vm
Last active August 11, 2021 06:04
create an Azure VM with the az vm create command.
az vm create \
--resource-group TestResourceGroup \
--name test-wp1-eus-vm \
--image win2016datacenter \
--admin-username jonc \
--admin-password aReallyGoodPasswordHere
@atulkamble
atulkamble / git_install.sh
Last active August 11, 2021 06:04
Install Git on Linux
sudo apt-get update
sudo apt-get install git-all
git version
@atulkamble
atulkamble / github_desktop_ubuntu.sh
Last active August 11, 2021 06:04
To install Github Desktop for Ubuntu 20.04 LTS
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb
sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-2.6.3-linux1.deb
@atulkamble
atulkamble / linkedin.sh
Last active August 11, 2021 06:04
LinkedIn webapp for Ubuntu Phone
sudo snap install linkedin-webapp
@atulkamble
atulkamble / install_powershell.sh
Last active August 11, 2021 06:03
Installing PowerShell on Linux | Ubuntu 20.04
# Update the list of packages
sudo apt-get update
# Install pre-requisite packages.
sudo apt-get install -y wget apt-transport-https software-properties-common
# Download the Microsoft repository GPG keys
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
# Register the Microsoft repository GPG keys
sudo dpkg -i packages-microsoft-prod.deb
# Update the list of products
sudo apt-get update
@atulkamble
atulkamble / telegram.sh
Created June 23, 2021 15:17
Telegram Desktop for LInux | Ubuntu
sudo snap install telegram-desktop
@atulkamble
atulkamble / ubuntu_terminal_lock
Last active August 11, 2021 06:03
You can delete the lock file in linux with the following command:
sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
sudo apt-get update
@atulkamble
atulkamble / terraform_install
Created August 10, 2021 13:42
Install & Verify Terraform in LInux
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update && sudo apt-get install terraform
terraform -help
terraform -help plan
@atulkamble
atulkamble / docker_install
Created August 10, 2021 14:08
Install Docker Engine on LInux
sudo apt install docker.io
docker --version