Skip to content

Instantly share code, notes, and snippets.

$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
@sturmy
sturmy / reclaimWindows10.ps1
Created May 30, 2020 22:39 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# 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 ...
@sturmy
sturmy / gist:71dbb364039fa7db68b4fa8732891f93
Created June 1, 2018 21:29 — forked from jrotello/gist:8873462
Powershell helper to ease Elasticsearch interaction without curl
function Invoke-Elasticsearch {
[CmdletBinding()]
Param(
[Uri]$Uri,
[Microsoft.PowerShell.Commands.WebRequestMethod]$Method = 'Get',
$Body = $null,
[PSCredential]$Credential
)
$headers = @{}
@sturmy
sturmy / PowerShellGet.psm1
Created April 6, 2018 08:55 — forked from Jaykul/PowerShellGet.psm1
PowerShell Gallery Module - Light
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 (
@sturmy
sturmy / enable-file-sharing.cmd
Created March 19, 2018 19:43 — forked from grenade/enable-file-sharing.cmd
create a new vm on hyper-v
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes