Skip to content

Instantly share code, notes, and snippets.


Leonardo Chaia leonardochaia

  • Argentina
Block or report user

Report or block leonardochaia

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 xmrig-grafana-dashboard.json
"__inputs": [
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
leonardochaia / AsyncAwaitDeadlockTests.cs
Created May 16, 2018
C# MVC Controller with deadlock scenarios using Async/Await
View AsyncAwaitDeadlockTests.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace Test {
public class IndexController : Controller {
public async Task<string> AsyncString()
View javascrtipservices-issue.log
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://foo.localhost:5000/
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET http://foo.localhost:5000/
info: Microsoft.AspNetCore.NodeServices[0]
Microsoft.AspNetCore.NodeServices:Information: http://foo.localhost:5000/api/SampleData/WeatherForecasts
fail: Microsoft.AspNetCore.NodeServices[0]
HttpErrorResponse {
headers: HttpHeaders { normalizedNames: Map {}, lazyUpdate: null, headers: Map {} },
status: 0,
leonardochaia / IServiceCollectionCookieExtensions.cs
Created Mar 7, 2018
.Net Core Per Request Cookie Configuration
View IServiceCollectionCookieExtensions.cs
using System;
using AstonishingLab.MultiTenancy;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Options;
namespace Microsoft.Extensions.DependencyInjection
public static class IServiceCollectionCookieExtensions
View NHibernateSessionMiddleware.cs
using AstonishingLab.Core.NHibernate;
using Microsoft.Owin;
using NHibernate;
using NHibernate.Context;
using Owin;
using System;
using System.Threading.Tasks;
namespace AstonishingLab.Core.Owin
You can’t perform that action at this time.