Skip to content

Instantly share code, notes, and snippets.

View jcracknell's full-sized avatar

James Cracknell jcracknell

  • GNWT Department of Justice
  • Yellowknife, NT
View GitHub Profile
@Brokolis
Brokolis / Example.cs
Created February 24, 2023 10:29
Limiting the number of tests executed in parallel in xUnit
using Xunit;
using xUnitLimitedConcurrencyTestFramework;
/* Example usage */
// TODO: change the type name and assembly name to match your use case
[assembly: TestFramework("xUnitLimitedConcurrencyTestFramework.LimitedConcurrencyTestFramework", "xUnitLimitedConcurrencyTestFramework")]
// limit concurrent collections in the whole assembly to MaxParallelThreads
[assembly: LimitConcurrency]
@aduzsardi
aduzsardi / dhcp_119_dns.ps1
Created July 25, 2017 07:51
generate dhcp option 119 (DNS Search Suffix) powershell script
# ----------------------------------------------------------------------------------------------------------
# PURPOSE: Creates a byte array for use with DHCP Option 119
#
# VERSION DATE USER DETAILS
# 1 07/03/2016 Craig Tolley First version
# 1.1 08/03/2016 Craig Tolley Fixed issue where if the whole domain matched the pointer was incorrect
# 1.2 08/03/2017 Craig Tolley Fixed further issues where the whole domain was matched the pointers are incorrect
# Modified outputs and tidied some formatting
# Convert-StringToOpt119Hex option fixed to not return values for null/empty strings
#