This file contains 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; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
namespace Testing | |
{ | |
internal static class StopwatchExtensions | |
{ | |
public static long GetElapsedNanoseconds(this Stopwatch watch) |
This file contains 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; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Runtime.InteropServices; | |
namespace System | |
{ | |
public static class EnvironmentEx | |
{ | |
[DllImport("kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)] |
This file contains 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; | |
namespace Microsoft.Win32 | |
{ | |
/// <summary> | |
/// Provides static helper methods to work with NTSTATUS values. | |
/// </summary> | |
public static class NTStatusHelper | |
{ | |
/// <summary> |
This file contains 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
// use System.ComponentModel.Win32Exception instead | |
using System; | |
namespace Microsoft.Win32 | |
{ | |
/// <summary> | |
/// Contains all system error codes. | |
/// </summary> | |
public enum SystemError : uint |
This file contains 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; | |
namespace System.Security.Cryptography | |
{ | |
/// <summary> | |
/// Represents a static and thread safe cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). | |
/// </summary> | |
public static class SecureStaticRandom | |
{ | |
private const long MAX_EXCLUSIVE_UINT = 1 + (long)uint.MaxValue; |
This file contains 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
__Event | |
__ExtrinsicEvent | |
Win32_DeviceChangeEvent | |
Win32_SystemConfigurationChangeEvent | |
Win32_VolumeChangeEvent | |
MSFT_WMI_GenericNonCOMEvent | |
MSFT_NCProvEvent | |
MSFT_NCProvCancelQuery | |
MSFT_NCProvClientConnected | |
MSFT_NCProvNewQuery |
This file contains 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
@echo off | |
netsh interface ipv4 set dnsservers name="Ethernet" validate=no static 1.1.1.1 primary > nul | |
netsh interface ipv4 add dnsservers name="Ethernet" validate=no 1.0.0.1 index=2 > nul | |
netsh interface ipv6 set dnsservers name="Ethernet" validate=no static 2606:4700:4700::1111 primary > nul | |
netsh interface ipv6 add dnsservers name="Ethernet" validate=no 2606:4700:4700::1001 index=2 > nul | |
ipconfig /flushdns > nul |
This file contains 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
@echo off | |
start shell:RecycleBinFolder | |
exit |
This file contains 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
https://marketplace.visualstudio.com/items?itemName=josefpihrt.Roslynator2019 | |
https://marketplace.visualstudio.com/items?itemName=SteveCadwallader.CodeMaid | |
https://marketplace.visualstudio.com/items?itemName=TeamXavalon.XAMLStyler | |
https://marketplace.visualstudio.com/items?itemName=MichaelKissBG8.Supercharger | |
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileIcons | |
https://marketplace.visualstudio.com/items?itemName=EWoodruff.VisualStudioSpellCheckerVS2017andLater | |
https://marketplace.visualstudio.com/items?itemName=NikolayBalakin.Outputenhancer | |
https://marketplace.visualstudio.com/items?itemName=ironcev.sharpen |
This file contains 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; | |
using System.Buffers.Binary; | |
using System.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Csgo | |
{ | |
public static class FriendCode | |
{ |