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
| [includeIf "gitdir:C:/source/GitHub/"] | |
| path = .gitconfig-github |
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
| $KPScriptEXE = "C:\Program Files (x86)\KeePass Password Safe 2\KPScript.exe" | |
| $KeePassFile = "C:\Users\me\Documents\me.kdbx" | |
| $VeraCryptEXE = "C:\Program Files\VeraCrypt\VeraCrypt.exe" | |
| $VeraCryptFile = "C:\Users\me\Documents\me.hc" | |
| $VeraCryptEntryTitle = "VeraCrypt" | |
| $output = & $KPScriptEXE -c:GetEntryString $KeePassFile -Field:Password -ref-Title:$VeraCryptEntryTitle -guikeyprompt | |
| $pw = ($output -split '\n')[0] | |
| $pw = $pw -replace "`n","" -replace "`r","" | |
| & $VeraCryptEXE /q /v $VeraCryptFile /l u /p $pw |
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.VisualStudio.TestTools.UnitTesting; | |
| namespace $Namespace$ | |
| { | |
| [TestClass] | |
| public class $TestClassName$ | |
| { | |
| $END$ | |
| } | |
| } |
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
| scp -r \bin\Release\netcoreapp3.1\linux-arm\publish pi@raspberry:/tmp/RaspiFanController/ |
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 class CarFactory | |
| { | |
| public CarFactory() | |
| : this(ServiceLocator.Resolve<IEngine>(), | |
| ServiceLocator.Resolve<IChassis>()) | |
| { | |
| } | |
| private CarFactory(IEngine engine, IChassis chassis) | |
| { |
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; | |
| using System.Threading.Tasks; | |
| namespace TestWithDocker | |
| { | |
| internal class Program | |
| { | |
| private static async Task Main() | |
| { | |
| while (true) |
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
| FROM mcr.microsoft.com/windows/servercore:1903 | |
| COPY bin/Release/netcoreapp3.0/win-x64/* ./ | |
| ENTRYPOINT ["TestWithDocker.exe"] |
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 class CustomTranslator : ICustomTranslator | |
| { | |
| public CustomTranslator(IStringLocalizer<CustomTranslator> localizer) | |
| { | |
| Localizer = localizer; | |
| } | |
| public string GetTranslation(string text) | |
| { | |
| return Localizer[text]; |
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
| DECLARE @MyDatabase nvarchar(MAX); | |
| DECLARE @MyLogin nvarchar(MAX); | |
| DECLARE @MyPassword nvarchar(MAX); | |
| DECLARE @SQL nvarchar(MAX); | |
| SET @MyDatabase = 'TheDatabase'; | |
| SET @MyLogin = 'TheLoginAndUserName'; | |
| SET @MyPassword = 'TopSecret'; | |
| IF NOT EXISTS |