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
# | |
# setup-router.sh | |
# | |
# Configure a simple router based on Debian 12/Bookworm. | |
# | |
# Base image: | |
# https://cloud.debian.org/images/cloud/bookworm/20240901-1857/debian-12-genericcloud-amd64-20240901-1857.qcow2 | |
# | |
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://1.1.1.1/cdn-cgi/trace', # 13,86 | |
'https://myip.dnsomatic.com/', # 17,45 |
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
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 Fable.Plugins | |
#r "../../build/fable/bin/Fable.exe" | |
open Fable.AST | |
open Fable.AST.Fable | |
open Fable.FSharp2Fable | |
type RandomPlugin() = | |
interface IReplacePlugin with |