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
namespace TrelloTest | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Globalization; | |
public class Program | |
{ | |
private const long ChallengeHash = 956446786872726; |
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
namespace UsbHid | |
{ | |
using System; | |
using System.Linq; | |
using System.Threading; | |
using HidLibrary; | |
public class Program | |
{ |
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
namespace ExploratoryUnitTests | |
{ | |
using Machine.Specifications; | |
public interface IFoo | |
{ | |
} | |
public interface IBar : IFoo | |
{ |
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
public abstract class MyBaseClass { } | |
public class DerivedClass : MyBaseClass { } | |
public class SubjectClass | |
{ | |
private readonly IGenericFoo foo; | |
public SubjectClass(IGenericFoo foo) | |
{ |
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
# Create new self signed cert with SAN | |
$cert = New-SelfSignedCertificate -CertStoreLocation cert:\LocalMachine\My -DnsName localhost | |
$thumbprint = $cert.Thumbprint | |
# Add self-signed cert to trusted roots | |
Export-Certificate -Cert $cert -FilePath .\root.crt | |
Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root -FilePath .\root.crt | |
Remove-Item .\root.crt | |
# Get current configurations |
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
Get-AzureRmADApplication |% { | |
$app = $_; | |
Get-AzureRmADAppCredential -ApplicationId $_.ApplicationId ` | |
| Where-Object { $_.Type -eq "AsymmetricX509Cert" -and (Get-Date $_.EndDate) -lt (Get-Date).AddDays(7) } |% { | |
Write-Host "Cert for application $($app.DisplayName) ($($app.ApplicationId)) expires on $($_.EndDate)" | |
} | |
} |
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
namespace Foo | |
{ | |
[TableName("sequences")] | |
public class SequenceTableEntity : TableEntity | |
{ | |
public static string CreatePartitionKey() => "DefaultPartitionKey"; | |
public static string CreateRowKey(string name) => name.ToLowerInvariant(); | |
public SequenceTableEntity() { } | |
public SequenceTableEntity(string name) : base(CreatePartitionKey(), CreateRowKey(name)) { } | |
public long Value { get; set; } |
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
html, | |
body { | |
height: 100%; | |
margin: 0; | |
} | |
#wrapper { | |
display: flex; | |
height: 100%; | |
} |