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
# Usage: Install-SeftSignedCertificate.ps1 -port 40443 | |
[CmdletBinding(DefaultParameterSetName="port")] | |
param( | |
# Port which will be covered by a certificate | |
[Parameter(Mandatory=$true, ParameterSetName="Port")] | |
[Int32]$port, | |
# How many years the certificate will be valid for | |
[Parameter(ParameterSetName="CertificateValidityYears")] | |
[Int32]$years = 5, | |
# A GUID for associating a netsh ssl record with your app |
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 ServiceStack.OrmLite.SqlServer; | |
public class UtcSqlServerOrmLiteDialectProvider : SqlServerOrmLiteDialectProvider | |
{ | |
public override string GetQuotedValue(object value, Type fieldType) | |
{ | |
if (fieldType == typeof(DateTime) && value != null) | |
{ | |
var dateValue = (DateTime)value; |
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
//ifilewiter.h | |
#ifndef IFILEWRITER_H | |
#define IFILEWRITER_H | |
#include <QString> | |
class IFileWriter | |
{ | |
public: | |
explicit IFileWriter(); |