Skip to content

Instantly share code, notes, and snippets.

🖖
DO IT CLOUD

Carlos Mendible cmendible

🖖
DO IT CLOUD
Block or report user

Report or block cmendible

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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 ASBwnxwgDetacVf0YkvAEmq3V6_RiQWBcMqOKAqU3kYH4go

To claim this, I am signing this object:

@cmendible
cmendible / README.md
Last active Apr 27, 2019
Kubernetes deployment for the Global Azure Bootcamp 2019 Science Lab
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
@cmendible
cmendible / dotnetlayout.md
Created Nov 16, 2018 — forked from davidfowl/dotnetlayout.md
.NET project structure
View dotnetlayout.md
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
  tests/
@cmendible
cmendible / azure_cli_ansible_install.sh
Last active May 21, 2019
Script to Install Azure CLI and Ansible on Ubuntu
View azure_cli_ansible_install.sh
#!/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
@cmendible
cmendible / addcasa.ps1
Created Feb 3, 2018
Powershell Script to add Code Analysis and Style Cop to all your .NET Core Projects.
View addcasa.ps1
# 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
}
@cmendible
cmendible / Get-PasswordFromPmp.psm1
Created Jan 19, 2018
A PowerShell module to fetch passwords from Password Manager Pro (PMP).
View Get-PasswordFromPmp.psm1
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 / Roslyn.CodeGeneration.Program.cs
Created Aug 16, 2017
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
cmendible / vCardQRCode.csx
Created Aug 28, 2016
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
cmendible / VersionTelemetryInitializer.cs
Last active Nov 28, 2018
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
You can’t perform that action at this time.