Skip to content

Instantly share code, notes, and snippets.

View discostu105's full-sized avatar

Christoph Neumüller discostu105

View GitHub Profile
@discostu105
discostu105 / cropAndStraightenBatch.jsx
Last active September 1, 2024 08:23 — forked from cyberrob-zz/cropAndStraightenBatch.jsx
An photoshop batch script for crop & straighten photo from Jeffrey Tranberry
// 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
*/
@discostu105
discostu105 / gist:18e8cea5f23af72858d6a08027f617ea
Last active September 21, 2017 14:51
Weird try.dot.net behavior
using System;
public class Program
{
public static void Main(params object[] args)
{
Console.WriteLine("Hello Wau!");
throw new Exception("wuhuu");
Console.Write("asdf");
type Trace {
repeated Span spans
}
type Span {
required string name
required int startTime
required int endTime
@discostu105
discostu105 / gist:adb41868e60157edc7b8fa454bc2873d
Created November 29, 2018 22:17
superdump deadlock stacks
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\
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
@discostu105
discostu105 / NoInternetProxy.reg
Created January 21, 2019 21:43
Disable Proxy for Microsoft Symbol Servers
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
@discostu105
discostu105 / Program.cs
Created March 6, 2019 12:00
long parsing benchmarks
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.Globalization;
namespace ConsoleApp6
{
class Program
{
static void Main(string[] args)
@discostu105
discostu105 / Program.cs
Created March 6, 2019 20:35
Parsing exercise
using BenchmarkDotNet.Attributes;
using System;
using System.Globalization;
using System.Linq;
using System.Runtime.CompilerServices;
namespace ConsoleApp4 {
//[ShortRunJob]
[MemoryDiagnoser]
public class Program {