Skip to content

Instantly share code, notes, and snippets.

View vivainio's full-sized avatar

Ville Vainio vivainio

View GitHub Profile

Debugging c# dump with windbg

Applies to .NET 4.7 applications.

Right click on dmp, "open with" -> windbg.

Run command:

.cordll -ve -u -l
# in case of error: pull access denied for xxxx.dkr.ecr.eu-west-1.amazonaws.com/my-app, repository does not exist or may require 'docker login': denied: User: arn:aws:sts::xxxxxxxxx:xassumed-role/my-ci-cd-pipeline-codebuild-builder-role/AWSCodeBuild-xxxxxxx is not authorized to perform: ecr:BatchGetImage on resource: arn:aws:ecr:eu-west-1:xxxxxxxxxxxxx:repository/my-app
# see also https://docs.aws.amazon.com/codebuild/latest/userguide/sample-ecr.html
AWSTemplateFormatVersion: 2010-09-09
Resources:
EcrRepo:
Type: AWS::ECR::Repository
Properties:
RepositoryName: my-application-repo
# this policy is needed to allow pushing & pulling of this image from codebuild
rem "Startup" is the aspnet web app root, with Web.config, bin/ etc. /myaps in the website root
C:\Windows\System32\inetsrv\appcmd.exe set app MyWebSite/myapp -[path='/'].physicalPath:Src\MyProject\Backend\Startup
export type ResultOrErr<T> =
| {
err: undefined;
data: T;
}
| {
err: Error;
data: undefined;
};
C:\r\1\Src\Edge\Personal\frontend\node_modules\typescript\lib\tsc.js:10245
return !!(module.flags & 1024);
^
TypeError: Cannot read property 'flags' of undefined
at Object.isGlobalScopeAugmentation (C:\r\1\Src\Edge\Personal\frontend\node_modules\typescript\lib\tsc.js:10245:26)
at C:\r\1\Src\Edge\Personal\frontend\node_modules\typescript\lib\tsc.js:84773:96
at Object.some (C:\r\1\Src\Edge\Personal\frontend\node_modules\typescript\lib\tsc.js:587:25)
at containsGlobalScopeAugmentation (C:\r\1\Src\Edge\Personal\frontend\node_modules\typescript\lib\tsc.js:84773:23)
at isFileAffectingGlobalScope (C:\r\1\Src\Edge\Personal\frontend\node_modules\typescript\lib\tsc.js:84776:20)
class SomeGrpcServerInterceptor: Interceptor
{
private IWindsorContainer container;
public P2PGrpcServerInterceptor(IWindsorContainer container)
{
this.container = container;
}
// xxx override others as well?
public override async Task<TResponse> UnaryServerHandler<TRequest, TResponse>(TRequest request, ServerCallContext context,
// Original
Target M.Tools (fun _ ->
!! @"Tools\Tools.sln" |> rebuild)
// from fantomas - note that !!@ is not a legal operator
Target M.Tools (fun _ -> !!@"Tools\Tools.sln" |> rebuild)
export class SignalrService {
constructor(private zone: NgZone) {
}
messages$ = new Subject<any>();
connect() {
const conn = $.hubConnection("/myapp/notifications", {
useDefaultPath: false
});
Disable-VMIntegrationService -VMName DockerDesktopVM -Name "Time Synchronization"
Enable-VMIntegrationService -VMName DockerDesktopVM -Name "Time Synchronization"