Skip to content

Instantly share code, notes, and snippets.

View tomasr's full-sized avatar

Tomas Restrepo tomasr

View GitHub Profile
@tomasr
tomasr / error.txt
Created September 12, 2017 13:11
ACS Error
Command:
az group create --name k8s1 --location eastus
az acs create --orchestrator-type kubernetes --resource-group k8s1 --name kubi --generate-ssh-keys
Output:
waiting for AAD role to propagate.done
Deployment failed. {
"error": {
"code": "NoRegisteredProviderFound",
@tomasr
tomasr / AppInsightsRouteOperationNameAttribute.cs
Created April 25, 2018 22:28
AppInsightsRouteOperationNameAttribute
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace WebApplication4
{
public class AppInsightsRouteOperationNameAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)

Keybase proof

I hereby claim:

  • I am tomasr on github.
  • I am tomasr (https://keybase.io/tomasr) on keybase.
  • I have a public key ASBm-jfGXnxY-OBBD_Meum6u-FCqi-n9B6lDAxhMx9u6hwo

To claim this, I am signing this object:

@tomasr
tomasr / Get-HotfixDetails.ps1
Created October 24, 2017 16:28
Sample script to json-scrape support site for KB titles
$source = Import-CSV ".\hotfixesAll.csv"
$knownHotfixes = @{}
function Get-HotfixUrl($hotfixId) {
$id = $hotfixId
if ($hotfixId.StartsWith('KB')) {
$id = $hotfixId.Substring(2)
}
return "https://support.microsoft.com/app/content/api/content/help/en-us/$id"
@tomasr
tomasr / errors.txt
Created August 7, 2022 22:11
VS2022 Error
Could not load type 'Microsoft.VisualStudio.Text.Editor.Commanding.IEditorCommandKeyBindingService' from assembly 'Microsoft.VisualStudio.Text.UI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Could not load type 'Microsoft.VisualStudio.Text.Editor.Commanding.IEditorCommandKeyBindingService' from assembly 'Microsoft.VisualStudio.Text.UI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Could not load type 'Microsoft.VisualStudio.Text.IOvertypeManagerInternal' from assembly 'Microsoft.VisualStudio.Text.UI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Could not load type 'Microsoft.VisualStudio.Text.IOvertypeManagerFactory' from assembly 'Microsoft.VisualStudio.Text.UI, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Could not load type 'Microsoft.VisualStudio.Text.ITextDocument2' from assembly 'Microsoft.VisualStudio.Text.Data, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
@tomasr
tomasr / VM+P2S_VPN.json
Created February 1, 2016 19:50
VM + P2S VPN ARM Template Example
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"minLength": 1,
"metadata": {
"description": "Username for the Virtual Machine."
}