Skip to content

Instantly share code, notes, and snippets.

View jcansdale's full-sized avatar

Jamie Cansdale jcansdale

View GitHub Profile
@jcansdale
jcansdale / vs2015_hang.txt
Created May 8, 2018 09:48
Call stack of Main thread after VS 2015 hung
> ntdll.dll!_NtCreateFile@44() Unknown Symbols loaded.
KernelBase.dll!CreateFileInternal() Unknown Symbols loaded.
KernelBase.dll!_CreateFileW@28() Unknown Symbols loaded.
sqmapi.dll!CSqmHttpUploadManager::ReadSqmHeaderAndProtocolSection(struct SQM_UPLOAD_FILE *,unsigned char * *,unsigned long *) Unknown Symbols loaded.
sqmapi.dll!CSqmHttpUploadManager::InitializeSqmFile(struct SQM_UPLOAD_FILE *,unsigned short const *,unsigned short const *,unsigned short const *,unsigned long,void (*)(void *,struct _SQM_UPLOADEX_CALLBACK_INPUT *,struct _SQM_UPLOADEX_CALLBACK_OUTPUT *),void *,int *) Unknown Symbols loaded.
sqmapi.dll!CSqmHttpUploadManager::AddFilesToUploadQueue(unsigned short const *,unsigned short const *,unsigned short const *,unsigned long,void (*)(void *,struct _SQM_UPLOADEX_CALLBACK_INPUT *,struct _SQM_UPLOADEX_CALLBACK_OUTPUT *),void *,unsigned long *) Unknown Symbols loaded.
sqmapi.dll!_SqmStartUploadEx@24() Unknown Symbols loaded.
sqmapi.dll!_SqmStartUpload@20() Unknown Symbols loade
@jcansdale
jcansdale / TfsMenu.vsct.xml
Created March 26, 2018 10:43
Team Explorer commands and command bar layout
<?xml version="1.0" encoding="utf-8"?>
<CommandTable language="en-GB" xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable">
<Commands>
<Groups>
<Group guid="guidTfsPackageCmdSet" id="igrpTfsDTE" priority="0x0100">
<Parent guid="guidTfsPackageCmdSet" id="imnuTfsDTE" />
</Group>
<Group guid="guidTfsPackageCmdSet" id="igrpShortcutMenus" priority="0x0100">
<Parent guid="guidTfsPackageCmdSet" id="imnuShortcutMenus" />
</Group>
@jcansdale
jcansdale / save-the-chain.json
Created October 26, 2017 11:20
Save the Chain TX
This file has been truncated, but you can view the full file.
{
"hash": "168342912c5854b9ae2992e3d25b29bb3dc2cc71f9c1f458239aca21f6b54d3a",
"ver": 1,
"vin_sz": 1,
"vout_sz": 99943,
"lock_time": 0,
"size": 1000000,
"in": [
{
"prev_out": {
public GitHubCredentialProvider(ISharedCache sharedCache)
{
Guard.ArgumentNotNull(sharedCache, nameof(sharedCache));
secureCache = sharedCache.Secure;
RootGrid (Grid)
MainWindowTitleBar (MainWindowTitleBar)
SystemMenu (SystemMenu)
VectorIcon (Path)
WindowTitleBarButtons (StackPanel)
MinimizeButton (WindowTitleBarButton)
Border (Border)
MinimizeButtonPath (Path)
MaximizeRestoreButton (WindowTitleBarButton)
Border (Border)
------ Test started: Assembly: WpfApp2.exe ------
Microsoft.VisualStudio.PlatformUI.MainWindow: MainSite, Children = 1, VisibleChildren = 1, DockedWidth = 200, DockedHeight = 200
Microsoft.VisualStudio.PlatformUI.Shell.Controls.WindowContentPresenter
Microsoft.VisualStudio.PlatformUI.MainWindowTitleBar
Microsoft.VisualStudio.PlatformUI.Shell.Controls.SystemMenu
Microsoft.VisualStudio.PlatformUI.Shell.Controls.WindowTitleBarButton
Microsoft.VisualStudio.PlatformUI.Shell.Controls.WindowTitleBarButton
Microsoft.VisualStudio.PlatformUI.Shell.Controls.WindowTitleBarButton
Microsoft.VisualStudio.PlatformUI.FrameControlContainer Items.Count:3
@jcansdale
jcansdale / gist:ccbd48644efbcbd6b3fb7242dc759dea
Created August 1, 2017 10:06
ITeamExplorerSection exports from Visual Studio 2015
Microsoft.VisualStudio.TeamFoundation.VersionControl.PendingChanges.ChangesToExcludeSectionVS (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\3y3blfwb.uew\Microsoft.VisualStudio.TeamFoundation.VersionControl.dll)
ParentPageId: FD273AA7-0538-474B-954F-2327F91CEF5E
ExportTypeIdentity: Microsoft.TeamFoundation.Controls.ITeamExplorerSection
Id: 7B018EAE-3E33-4F04-B5CA-DA8358396581
PlacementParentPageId: 22841D4D-257A-4421-ADF5-44F5ED556EA3
PlacementPriority: System.Int32[]
Priority: 50
ContractType: Microsoft.TeamFoundation.Controls.ITeamExplorerSection
ContractName:
Microsoft.VisualStudio.TeamFoundation.VersionControl.PendingChanges.ChangesToIncludeSectionVS (C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\3y3blfwb.uew\Microsoft.VisualStudio.TeamFoundation.VersionControl.dll)
@jcansdale
jcansdale / GitHub.InlineReviews.txt
Created April 24, 2017 14:40
What MEF classes consume GitHub.InlineReviews?
>github mef-FindSatisfyingExports GitHub.InlineReviews
Microsoft.VisualStudio.TMLanguage.AssetFinder
.Taggers = GitHub.InlineReviews.Tags.ReviewTaggerProvider
Microsoft.VisualStudio.Language.Intellisense.Implementation.PeekBroker
.UnOrderedPeekableItemSourceProviderExports = GitHub.InlineReviews.Peek.ReviewPeekableItemSourceProvider
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregatorFactoryService
.BufferTaggerProviders = GitHub.InlineReviews.Tags.ReviewTaggerProvider
Microsoft.VisualStudio.Text.Editor.Implementation.GlyphMarginProvider
.GlyphMouseProcessorProviders = GitHub.InlineReviews.Tags.ReviewGlyphFactoryProvider
@jcansdale
jcansdale / challenge.md
Last active January 24, 2020 19:56
Unit testing challenge

I'm looking for the cleanest way to make the test below pass.

The rules are:

  1. It must be a unit test (so don't touch the file system).
  2. The public signature for CodeUnderTest must not be changed. can be extended not reduced
  3. You're allowed to use DI/your favorite mocking framework.
  4. You can only add code where you see /**/.
@jcansdale
jcansdale / NuGet.config
Created September 15, 2016 15:10
How to setup a `LocalPackages` folder for NuGet
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="LocalPackages" value="./LocalPackages" />
</packageSources>
<activePackageSource>
<!-- this tells that all of them are active -->
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>