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
$basePath = "C:\Data\bwin\core\echocore\echocore\bin\Debug\net7.0\" | |
# $deps = Get-ChildItem (Join-Path $basePath "*.deps.json") | Select-Object -First 1 | Get-Content -Raw | ConvertFrom-Json -Depth 99 | |
# $deps.runtimeTarget.name | |
$runtimeconfigFile = Get-ChildItem (Join-Path $basePath "*.runtimeconfig.json") | |
$runtimeconfigFile | |
$runtimeconfig = $runtimeconfigFile| Select-Object -First 1 | Get-Content -Raw | ConvertFrom-Json -Depth 99 |
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
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <disassembler@dasm.cz> | |
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences. | |
# Version: 2.20.2, 2018-09-14 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
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 Invoke-Elasticsearch { | |
[CmdletBinding()] | |
Param( | |
[Uri]$Uri, | |
[Microsoft.PowerShell.Commands.WebRequestMethod]$Method = 'Get', | |
$Body = $null, | |
[PSCredential]$Credential | |
) | |
$headers = @{} |
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 Find-Module { | |
<# | |
.Synopsis | |
A wrapper for Invoke-RestMethod to search the PowerShell Gallery | |
.Description | |
In order to support wildcards, we build pretty complicated URLs, | |
and then we filter the results by title | |
#> | |
[CmdletBinding()] | |
param ( |
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
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes |