Skip to content

Instantly share code, notes, and snippets.

Christoph Neumüller discostu105

View GitHub Profile
View Program.cs
using BenchmarkDotNet.Attributes;
using System;
using System.Globalization;
using System.Linq;
using System.Runtime.CompilerServices;
namespace ConsoleApp4 {
//[ShortRunJob]
[MemoryDiagnoser]
public class Program {
@discostu105
discostu105 / Program.cs
Created Mar 6, 2019
long parsing benchmarks
View Program.cs
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.Globalization;
namespace ConsoleApp6
{
class Program
{
static void Main(string[] args)
@discostu105
discostu105 / NoInternetProxy.reg
Created Jan 21, 2019
Disable Proxy for Microsoft Symbol Servers
View NoInternetProxy.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Symbol Server]
"NoInternetProxy"=dword:00000001
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Symbol Server]
"NoInternetProxy"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Symbol Server]
"NoInternetProxy"=dword:00000001
View superdump hangfire deadlock
0:000> ~*e !clrstack
OS Thread Id: 0xda8 (0)
Child SP IP Call Site
000000ae6af7d9f0 00007ff84cdf6654 [GCFrame: 000000ae6af7d9f0]
000000ae6af7db38 00007ff84cdf6654 [HelperMethodFrame_1OBJ: 000000ae6af7db38] System.Threading.Monitor.ObjWait(Boolean, Int32, System.Object)
000000ae6af7dc60 00007ff7c39df7c3 System.Threading.ManualResetEventSlim.Wait(Int32, System.Threading.CancellationToken)
000000ae6af7dd00 00007ff7c39de74a System.Threading.Tasks.Task.SpinThenBlockingWait(Int32, System.Threading.CancellationToken) [E:\A\_work\62\s\src\mscorlib\src\System\Threading\Tasks\Task.cs @ 2978]
000000ae6af7dd70 00007ff7c39de2a5 System.Threading.Tasks.Task.InternalWaitCore(Int32, System.Threading.CancellationToken) [E:\A\_work\62\s\src\mscorlib\src\System\Threading\Tasks\Task.cs @ 2917]
000000ae6af7ddf0 00007ff7c39ddfa3 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) [E:\A\_work\62\s\src\mscorlib\src\System\Runtime\CompilerServices\Task
View gist:adb41868e60157edc7b8fa454bc2873d
0:000> ~*e !clrstack
OS Thread Id: 0x2900 (0)
Child SP IP Call Site
0000006334b7d980 00007ffad3f36654 [GCFrame: 0000006334b7d980]
0000006334b7dac8 00007ffad3f36654 [HelperMethodFrame_1OBJ: 0000006334b7dac8] System.Threading.Monitor.ObjWait(Boolean, Int32, System.Object)
0000006334b7dbf0 00007ffa51482bd3 System.Threading.ManualResetEventSlim.Wait(Int32, System.Threading.CancellationToken)
0000006334b7dc90 00007ffa5148140a System.Threading.Tasks.Task.SpinThenBlockingWait(Int32, System.Threading.CancellationToken) [E:\A\_work\164\s\src\mscorlib\src\System\Threading\Tasks\Task.cs @ 2978]
0000006334b7dd00 00007ffa51480e05 System.Threading.Tasks.Task.InternalWaitCore(Int32, System.Threading.CancellationToken) [E:\A\_work\164\s\src\mscorlib\src\System\Threading\Tasks\Task.cs @ 2917]
0000006334b7dd80 00007ffa51480a23 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) [E:\A\_work\164\s\src\mscorlib\src\System\Runtime\CompilerServices\
View tracing-datamodel-sketch.txt
type Trace {
repeated Span spans
}
type Span {
required string name
required int startTime
required int endTime
View gist:18e8cea5f23af72858d6a08027f617ea
using System;
public class Program
{
public static void Main(params object[] args)
{
Console.WriteLine("Hello Wau!");
throw new Exception("wuhuu");
Console.Write("asdf");
@discostu105
discostu105 / cropAndStraightenBatch.jsx
Last active Feb 19, 2019 — forked from cyberrob/cropAndStraightenBatch.jsx
An photoshop batch script for crop & straighten photo from Jeffrey Tranberry
View cropAndStraightenBatch.jsx
// cropAndStraightenBatch.jsx
// Copyright 2006-2008
// Written by Jeffrey Tranberry
// Photoshop for Geeks Version 2.0
/*
Description:
This script demonstates how to batch process
a folder of images using the crop and straighten command
*/
You can’t perform that action at this time.