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
using System; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
namespace Roslyn.CodeGeneration | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
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
#!/bin/bash | |
# Receives your Windows username as only parameter. | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl | |
chmod +x ./kubectl | |
sudo mv ./kubectl /usr/local/bin/kubectl | |
windowsUser=$1 |
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
#r "System.Drawing" | |
#r "QRCoder.dll" | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using QRCoder; |
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
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. |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: failing-readinessprobe-pod | |
spec: | |
containers: | |
- name: busybox | |
image: busybox | |
command: | |
- sh |
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:
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
namespace Insights | |
{ | |
using System.Configuration; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.ApplicationInsights.Channel; | |
using Microsoft.ApplicationInsights.Extensibility; | |
/// <summary> | |
/// Version TelemetryInitializer |
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
# 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 | |
} |
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
param( | |
[string] | |
[Parameter(Mandatory = $true)] | |
$resourceGroupName, | |
[string] | |
[Parameter(Mandatory = $true)] | |
$identityName, | |
[string] | |
[Parameter(Mandatory = $true)] | |
$identitySelector, |
NewerOlder