- Establishing community and contributing guidelines
- Fixing most urgent bugs
- Lock recursion bug
- Memory leak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public readonly struct BufferOwner<T> : IDisposable | |
| { | |
| private readonly T[] _buffer; | |
| private readonly ArrayPool<T> _pool; | |
| public BufferOwner(int size, ArrayPool<T> pool) | |
| { | |
| _buffer = pool.Rent(size); | |
| _pool = pool; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var dev = new TeamViewerDevice() | |
| { | |
| ApiToken = "APIKEY", | |
| }; | |
| await dev.GetTeamViewerDevice(); | |
| Debugger.Break(); | |
| public class TeamViewerDevice | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Concurrent; | |
| namespace JKToolKit.Logging.File.Utils; | |
| public abstract class AsyncMutex : IDisposable | |
| { | |
| private static ConcurrentDictionary<string, AsyncMutex> _localMutexes = new ConcurrentDictionary<string, AsyncMutex>(); | |
| public abstract Task<IDisposable> WaitOneAsync(CancellationToken ct); |
I hereby claim:
- I am jkamsker on github.
- I am jkamsker (https://keybase.io/jkamsker) on keybase.
- I have a public key ASAE3Pbe3Sm3SiIeiXZ8MZ7pm5xLfsqEGXuY4CXIhFM_Tgo
To claim this, I am signing this object:
Proposal: Constructor redirect
Summary: Allow for constructor arguments to be seemingly mirrored by a generic factory method.
Sample: myfactory.Create("param1", "param2", "param3");
class CommandType
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $script:process = $null | |
| $script:path = "C:\Users\W31rd0\source\repos\work\Apro\Apro.AutoUpdater\ApGet\bin\Debug\net6.0\ApGet.exe" | |
| $script:logPath = "C:\Users\W31rd0\Downloads\tmp\gpt\log.log" | |
| $script:useCompletionServer = $false | |
| function Invoke-ApGet { | |
| # call external debugger | |
| return & $script:path $args | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Set the URL of the ZIP file and the target directory | |
| $zipUrl = "https://apropatchcdn.blob.core.windows.net/patch-staging/apget/latest/apget.zip" | |
| # https://apropatchcdn.blob.core.windows.net/patch-staging/apget/latest/apget.zip" | |
| # https://apropatchcdn.blob.core.windows.net/patch-staging/apget/latest/apget.zip | |
| # $targetDirectory = "$env:USERPROFILE\Tools\Apget" | |
| $targetDirectory = Split-Path ($profile.CurrentUserAllHosts) | |
| $targetDirectory = Join-Path $targetDirectory "Tools" | |
| $targetDirectory = Join-Path $targetDirectory "Apget" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Microsoft.Win32.SafeHandles; | |
| using System; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| // Refactored from https://emoacht.wordpress.com/2012/11/06/csharp-ssd/ | |
| public class DriveUtils | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Usage: | |
| var spinner = new SpectreConsoleSpinner() | |
| .WithRenderer(RenderableSpinner.SpinnerRenderer.Colored(Color.Rainbow)); | |
| // Checking logic | |
| table.UpdateCell(currentRow, 0, spinner); | |
| */ | |
| using System; |