Skip to content

Instantly share code, notes, and snippets.

View cmendible's full-sized avatar
Cloud for all

Carlos Mendible cmendible

Cloud for all
View GitHub Profile
cmendible / vCardQRCode.csx
Created August 28, 2016 17:36
Create vCard QR Codes using Azure Functions
View vCardQRCode.csx
#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;
cmendible /
Created November 16, 2019 22:02
Install kubectl on ubuntu (WSL) and use kubectl config from Windows
# Receives your Windows username as only parameter.
curl -LO
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
cmendible / Roslyn.CodeGeneration.Program.cs
Created August 16, 2017 09:30
Create a class with dotnet core and roslyn with using statements outside the namespace
View Roslyn.CodeGeneration.Program.cs
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)
cmendible / Get-PasswordFromPmp.psm1
Created January 19, 2018 11:31
A PowerShell module to fetch passwords from Password Manager Pro (PMP).
View Get-PasswordFromPmp.psm1
function Get-PasswordFromPmp {
# Gets a password from PMP.
# Gets a password from PMP.
#.PARAMETER pmpServer
# The server name and port where PMP is hosted.
cmendible / failing-readinessprobe.yaml
Created April 28, 2023 07:24
Kubernetes Failing Readiness Probe
View failing-readinessprobe.yaml
apiVersion: v1
kind: Pod
name: failing-readinessprobe-pod
- name: busybox
image: busybox
- sh
cmendible /
Created February 17, 2023 12:16
Azure Function Extensions and Scale Monitors

Azure WebJobs SDK Extensions


.NET Isolated: Microsoft.Azure.Functions.Worker.Extensions

.NET Worker

Scale Monitors

cmendible /
Last active January 18, 2021 17:52

Keybase proof

I hereby claim:

  • I am cmendible on github.
  • I am cmendibl3 ( on keybase.
  • I have a public key ASAFDp7ZcZ0ARweRA9g8BFrM8DO8mTA8FBlGcC4iJM48cAo

To claim this, I am signing this object:

cmendible / VersionTelemetryInitializer.cs
Last active October 28, 2020 15:23
Application Insights Telemetry Initializer to send the application version and a custom "tags" property
View VersionTelemetryInitializer.cs
namespace Insights
using System.Configuration;
using System.Linq;
using System.Reflection;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility;
/// <summary>
/// Version TelemetryInitializer
cmendible / on_demand_azure_policy_scan.ps1
Created April 8, 2020 11:32
On-demand Azure Policy Scan with Azure CLI and Powershell
View on_demand_azure_policy_scan.ps1
# Based on @maikvandergaag work:
$account = (az account show -o json | ConvertFrom-Json)
$subscriptionId = $
$tenantId = $account.homeTenantId
$token = (az account get-access-token --tenant $tenantId -o json | ConvertFrom-Json).accessToken
$authHeader = @{
'Authorization'='Bearer ' + $token
cmendible / SetupPodIdentityKeyVaultIntegration.ps1
Created November 30, 2019 09:26
AKS: Setup Pod Identity Key Vault Integration
View SetupPodIdentityKeyVaultIntegration.ps1
[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $true)]