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
[CmdletBinding(SupportsShouldProcess)] | |
Param() | |
# | |
# Settings | |
# | |
# Services to test | |
$urls = 'https://ifconfig.me/ip', | |
'https://1.1.1.1/cdn-cgi/trace', |
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
# | |
# Demo for issue: Kopia not running actions when snapshot source is a single file. | |
# | |
# Tested with | |
# Kopia 0.13.0 | |
# Windows Server 2022 | |
# | |
# Demo settings |
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
// | |
// Generic OrderedDictionary implementation updated for C# 11. | |
// | |
// Original code from @mattmc3: https://stackoverflow.com/a/9844528/33244 | |
// | |
// http://unlicense.org | |
// | |
using System.Collections; | |
using System.Collections.ObjectModel; |
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
function Get-FolderUsage([String]$Folder) { | |
[PSCustomObject]@{ | |
FullName=Join-Path -Path $Folder -ChildPath '*'; | |
SizeGb=[int]((Get-ChildItem -File $Folder | Measure-Object -Property Length -Sum).Sum / 1GB) | |
} | Write-Output | |
Get-ChildItem -Directory -Path $Folder | | |
ForEach-Object { | |
[PSCustomObject]@{ | |
FullName=$_.FullName; |
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 NUnit.Tests | |
open NUnit.Framework | |
[<TestFixture>] | |
module NUnitTests = | |
[<TestFixtureSetUp>] | |
let ``NUnit static member fixture setup``() = | |
printfn "NUnit static member fixture setup" |
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 VisualStudio.Tests | |
open Microsoft.VisualStudio.TestTools.UnitTesting | |
[<TestClass>] | |
module VisualStudioTests = | |
[<TestClass>] | |
type testrun() = |
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 Fable.Plugins | |
#r "../../build/fable/bin/Fable.exe" | |
open Fable.AST | |
open Fable.AST.Fable | |
open Fable.FSharp2Fable | |
type RandomPlugin() = | |
interface IReplacePlugin with |