$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
View addcasa.ps1
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
# Place the script in the solution folder | |
# Add the ca.ruleset to the solution folder | |
# Run the Powershell Script to add Code Analysis and StyleCop to all your .NET Core Projects. | |
$projects = (Get-ChildItem . -recurse) | Where-Object {$_.extension -eq ".csproj"} | |
foreach ($project in $projects) { | |
$content = Get-Content $project.FullName | |
if (!($content | Select-String -pattern "<CodeAnalysisRuleSet>ca.ruleset</CodeAnalysisRuleSet>")) { | |
$content = $content.Replace("</Project>", "`t<PropertyGroup>`r`n`t`t<CodeAnalysisRuleSet>ca.ruleset</CodeAnalysisRuleSet>`r`n`t</PropertyGroup>`r`n</Project>") | |
$content | Out-File $project.FullName -Encoding Default | |
} |
View dotnetlayout.md
View README.md
Kubernetes deployment for the Global Azure Bootcamp 2019 Science Lab
This deployment file will attempt to deploy 3 replicas of the container used in the Global Azure Bootcamp 2019 Science Lab.
Just run:
kubectl apply -f ./gab-2019-science-lab.yaml
View azure_cli_ansible_install.sh
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 | |
# Install Azure CLI | |
AZ_REPO=$(lsb_release -cs) | |
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | sudo tee /etc/apt/sources.list.d/azure-cli.list | |
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get update && sudo apt-get install -y azure-cli |
View debug.log
This file has been truncated, but you can view the full file.
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
2019/12/10 19:22:08 [INFO] Terraform version: 0.12.17 | |
2019/12/10 19:22:08 [INFO] Go runtime version: go1.12.13 | |
2019/12/10 19:22:08 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "destroy"} | |
2019/12/10 19:22:08 [DEBUG] Attempting to open CLI config file: C:\Users\terraformuser\AppData\Roaming\terraform.rc | |
2019/12/10 19:22:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/12/10 19:22:08 [INFO] CLI command args: []string{"destroy"} | |
2019/12/10 19:22:08 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2019/12/10 19:22:08 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory | |
2019/12/10 19:22:08 [DEBUG] New state was assigned lineage "eb32be79-5d30-b86d-2b34-21097b634648" | |
2019/12/10 19:22:08 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend) |
View SetupPodIdentityKeyVaultIntegration.ps1
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
param( | |
[string] | |
[Parameter(Mandatory = $true)] | |
$resourceGroupName, | |
[string] | |
[Parameter(Mandatory = $true)] | |
$identityName, | |
[string] | |
[Parameter(Mandatory = $true)] | |
$identitySelector, |
View on_demand_azure_policy_scan.ps1
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
# Based on @maikvandergaag work: https://msftplayground.com/2019/06/on-demand-azure-policy-scan/ | |
$account = (az account show -o json | ConvertFrom-Json) | |
$subscriptionId = $account.id | |
$tenantId = $account.homeTenantId | |
$token = (az account get-access-token --tenant $tenantId -o json | ConvertFrom-Json).accessToken | |
$authHeader = @{ | |
'Content-Type'='application/json' | |
'Authorization'='Bearer ' + $token | |
} |
View VersionTelemetryInitializer.cs
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
namespace Insights | |
{ | |
using System.Configuration; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.ApplicationInsights.Channel; | |
using Microsoft.ApplicationInsights.Extensibility; | |
/// <summary> | |
/// Version TelemetryInitializer |
View keybase.md
Keybase proof
I hereby claim:
- I am cmendible on github.
- I am cmendibl3 (https://keybase.io/cmendibl3) on keybase.
- I have a public key ASAFDp7ZcZ0ARweRA9g8BFrM8DO8mTA8FBlGcC4iJM48cAo
To claim this, I am signing this object:
View Get-PasswordFromPmp.psm1
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
function Get-PasswordFromPmp { | |
<# | |
#.SYNOPSIS | |
# Gets a password from PMP. | |
# | |
#.DESCRIPTION | |
# Gets a password from PMP. | |
# | |
#.PARAMETER pmpServer | |
# The server name and port where PMP is hosted. |
OlderNewer