Skip to content

Instantly share code, notes, and snippets.

View tomasr's full-sized avatar

Tomas Restrepo tomasr

View GitHub Profile
@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'.

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 / 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)
@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 / 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 / model.txt
Created August 22, 2017 02:42
EventGridModel
+---------------------------------+
| Azure Resource (topic type) |
| |
| |
| +---------------------+ +---------------+
| | Event Grid | filter | |
| | (subscription) |--------------->| WebHook |
@tomasr
tomasr / Theme.json
Created August 2, 2017 03:24
SampleViasforaTheme
{
"viasfora.razor.closing.element": {
"foreground": "#FF8C00",
"background": "#010000",
"style": "None"
},
"viasfora.keyword.visibility": {
"foreground": "#808080",
"background": "#010000",
"style": "Bold"
@tomasr
tomasr / Convert-ViasforaTheme.ps1
Created August 2, 2017 03:22
UpdateViasforaTheme
param([String]$VSSettingsFile, [String]$ThemeFile)
$entryMap = @{
'Viasfora Rainbow Brace 1' = 'viasfora.rainbow.1';
'Viasfora Rainbow Brace 2' = 'viasfora.rainbow.2';
'Viasfora Rainbow Brace 3' = 'viasfora.rainbow.3';
'Viasfora Rainbow Brace 4' = 'viasfora.rainbow.4';
'Viasfora Rainbow Brace 5' = 'viasfora.rainbow.5';
'Viasfora Rainbow Brace 6' = 'viasfora.rainbow.6';
'Viasfora Rainbow Brace 7' = 'viasfora.rainbow.7';
@tomasr
tomasr / theme.json
Created July 20, 2017 23:59
Viasfora theme
{
"Viasfora Flow Control Keyword": {
"foreground": "OrangeRed",
"style": "None"
},
"Viasfora Query Operator": {
"foreground": "MediumSeaGreen",
"style": "None"
},
"Viasfora String Escape Sequence": {
@tomasr
tomasr / errors.txt
Created March 8, 2017 13:46
VC++ 2017 Build Errors
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\utility(189): error C2220: warning treated as error - no 'object' file generated
3>ResourceManager.cpp(79): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<int,const wchar_t(&)[13],void,0>(_Other1 &&,_Other2) noexcept(false)' being compiled
3> with
3> [
3> _Kty=WORD,
3> _Ty=std::experimental::filesystem::v1::path,
3> _Other1=int,
3> _Other2=const wchar_t (&)[13]
3> ]
3>ResourceManager.cpp(28): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<int,const wchar_t(&)[13],void,0>(_Other1 &&,_Other2) noexcept(false)' being compiled