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
cmendible / failing-readinessprobe.yaml
Created April 28, 2023 07:24
Kubernetes Failing Readiness Probe
apiVersion: v1
kind: Pod
metadata:
name: failing-readinessprobe-pod
spec:
containers:
- name: busybox
image: busybox
command:
- sh
@cmendible
cmendible / Get-PasswordFromPmp.psm1
Created January 19, 2018 11:31
A PowerShell module to fetch passwords from Password Manager Pro (PMP).
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.
@cmendible
cmendible / vCardQRCode.csx
Created August 28, 2016 17:36
Create vCard QR Codes using Azure Functions
#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
cmendible / kubectl_ubuntu_wsl.sh
Created November 16, 2019 22:02
Install kubectl on ubuntu (WSL) and use kubectl config from Windows
#!/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
@cmendible
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
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)