Skip to content

Instantly share code, notes, and snippets.

View mdymel's full-sized avatar

Michal Dymel mdymel

  • Nalpeiron Inc.
  • Szczecin, Poland
  • X @mdymel
View GitHub Profile
@mdymel
mdymel / ohmyposhv3-v2.json
Created August 26, 2022 14:41
Oh My Posh config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#61AFEF",
"properties": {
"style": "full"
@mdymel
mdymel / ErrorHandlerMiddleware.cs
Created June 29, 2016 13:48
Middleware for asp.net core allowing returning response with just the status code
public class ErrorHandlerMiddleware
{
public class HttpStatusCodeException : Exception
{
public HttpStatusCode StatusCode { get; set; }
public HttpStatusCodeException(HttpStatusCode statusCode)
{
StatusCode = statusCode;
}
@mdymel
mdymel / AutoHotkey.ahk
Created January 14, 2016 16:58
AutoHotkey script to disable ctrl+scroll to zoom in chrome
#IfWinActive ahk_class Chrome_WidgetWin_1
{
^WheelDown::return
^WheelUp::return
#MaxHotkeysPerInterval 1000
}
@mdymel
mdymel / nancyfx-upload.cs
Created November 16, 2015 16:51
Example NancyModule returning information about uploaded file
public class UploadModule : NancyModule
{
public class ApiModel
{
public string Name { get; set; }
public string ContentType { get; set; }
public long FileSize { get; set; }
public string FileKey { get; set; }
}
public UploadModule()