This file contains 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 stage | |
ARG GO_VERSION=1.12.6 | |
FROM golang:${GO_VERSION}-alpine AS build-stage | |
RUN apk add --no-cache ca-certificates git | |
WORKDIR /src | |
COPY ./go.mod ./go.sum ./ | |
RUN go mod download | |
COPY . . | |
RUN go build -o /goapp main.go |
This file contains 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
provider "azurerm" { | |
version = "~>1.25" | |
} | |
/* | |
ToDo: Replace kubeconfig auth. with Terraform data source & add helm provider | |
When this helm issue has been resolved https://github.com/terraform-providers/terraform-provider-helm/issues/148 | |
*/ | |
provider "kubernetes" { | |
version = "~>1.6" |
This file contains 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
{ | |
"python.pythonPath": "C:\\tools\\Anaconda3\\envs\\env\\python.exe", | |
"terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe", | |
"python.linting.flake8Enabled": true, | |
"python.linting.pylintEnabled": false, | |
"python.linting.enabled": true | |
} |
This file contains 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
{ | |
"python.pythonPath": "/anaconda3/envs/jupyter-env/bin/python", | |
"python.linting.flake8Enabled": true, | |
"python.linting.pylintEnabled": false, | |
"python.linting.enabled": true | |
} |
This file contains 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
// task.json | |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Debug Build", | |
"type": "shell", | |
"command": "clang", | |
"args": [ | |
"-g", |
This file contains 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceFolder}/a.exe", | |
"args": [], | |
"stopAtEntry": false, |
This file contains 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
package main | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/Azure/azure-sdk-for-go/services/operationalinsights/mgmt/2015-03-20/operationalinsights" |
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"resourceName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of the Managed Cluster resource." | |
} | |
}, |
This file contains 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
#!/bin/bash | |
apt update | |
apt install nginx -y | |
echo "[Instance Name]: `curl -H Metadata:true "http://169.254.169.254/metadata/instance/compute/name?api-version=2017-12-01&format=text"` [Date]: `date`" > /var/www/html/index.nginx-debian.html |
This file contains 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
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": {}, | |
"variables": {}, | |
"resources": [], | |
"outputs": {} | |
} |