This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Help Command | |
go help <command> | |
# Run go code | |
go run <go_program> | |
# Build code | |
go build <go_program> | |
# Build code and with dependency |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build a docker image with a tag | |
docker build -t <tag> | |
# Pull down asp.net sample app | |
docker pull mcr.microsoft.com/dotnet/core/samples:aspnetapp | |
# List all local docker images | |
docker image list | |
# Run Docker at background |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1: Specify the parent image for the new image | |
FROM ubuntu:18.04 | |
# Step 2: Update OS packages and install additional software | |
RUN apt -y update && apt install -y wget nginx software-properties-common apt-transport-https \ | |
&& wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ | |
&& dpkg -i packages-microsoft-prod.deb \ | |
&& add-apt-repository universe \ | |
&& apt -y update \ | |
&& apt install -y dotnet-sdk-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$myResourceGroup = Read-Host -prompt "Enter a resource group name: " | |
$myLocation = Read-Host -prompt "Enter a location (ie. WestUS): " | |
$myVM = Read-Host -prompt "Enter a VM name: " | |
$vmAdmin = Read-Host -prompt "Enter a VM admin user name: " | |
# The password must meet the length and complexity requirements. | |
$vmPassword = Read-Host -prompt "Enter the admin password: " | |
# create a resource group | |
New-AzResourceGroup -Name $myResourceGroup -Location $myLocation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation | |
sudo apt-get update | |
sudo apt-get install azure-functions-core-tools-3 | |
# create function app | |
func init LocalFunctionProj --dotnet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az group deployment create \ | |
--name ExampleDeployment \ | |
--mode Complete \ | |
--resource-group ExampleGroup \ | |
--template-file storage.json \ | |
--parameters storageAccountType=Standard_GRS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href='http://www.pdf995.com/samples/pdf.pdf' download>click</a> |