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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
Disable-InternetExplorerESC | |
Disable-UAC | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -DisableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom | |
cinst 7zip.install | |
cinst dropbox | |
cinst fiddler4 |
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.Collections; | |
using System.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace EnsureThat |
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 NUnit.Framework; | |
namespace Bdd | |
{ | |
[TestFixture] | |
public abstract class Specification | |
{ | |
protected Exception CaughtException = new ThereWasNoExceptionButOneWasExpectedException(); |
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
function IsVisualStudioRunning { | |
Try { | |
$visualStudioInstances = (Get-Process devenv) | |
return ($visualStudioInstances.Length -gt 0) | |
} | |
Catch { | |
return $false | |
} | |
} |
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
namespace NServiceBusXmlSerializerBug | |
{ | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Xml.Linq; | |
using NServiceBus; | |
using NServiceBus.MessageMutator; | |
using NUnit.Framework; | |
// ReSharper disable InconsistentNaming |
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 static class DependencyEx | |
{ | |
public static Parameter OnConnectionString(string connectionStringName) | |
{ | |
return OnConnectionString("connectionString", connectionStringName); | |
} | |
public static Parameter OnConnectionString(string dependencyName, string connectionStringName) | |
{ | |
if (string.IsNullOrWhiteSpace(connectionStringName)) |
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
Puts on glasses: | |
(•_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) | |
Takes off glasses ("mother of god..."): | |
(⌐■_■) | |
( •_•)>⌐■-■ |
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
# Run this from an elevated PowerShell prompt. | |
# Kill Docker Desktop | |
Get-Process | Where-Object {$_.ProcessName -match 'Docker Desktop'} | Stop-Process -Force | |
# Restart the Hyper-V Virtual Machine Management Service | |
Stop-Service 'vmms' | |
Start-Service 'vmms' | |
# Start Docker Desktop |