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
$c = [System.Management.Automation.CommandMetadata]::new((Get-Command -Name Select-Object)) | |
$c.Parameters.Remove('Property') | |
$p = [System.Management.Automation.ProxyCommand]::Create($c) -split "`n" | |
# -ExpandProperty | |
$p[12] = $p[12] -replace '(?<=Parameter\()', 'Position=0, ' | |
${function:global:$} = [scriptblock]::Create($p) |
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
#requires -Version 5 | |
<# Lasciate ogni speranza, voi ch'entrate #> | |
using namespace System.Diagnostics | |
using namespace System.DirectoryServices.AccountManagement | |
using namespace System.Management.Automation | |
using namespace System.Net | |
using namespace System.Security.Cryptography.X509Certificates | |
using namespace System.Security.Principal | |
using namespace System.Text |
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
using namespace System.Management.Automation | |
#requires -Version 5 | |
#requires -Module ActiveDirectory | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(Position = 0)] | |
[Credential()] |
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
# PSScriptAnalyzerSettings.psd1 | |
# v1.17.1 | |
@{ | |
# This key overrides `Enable` in the `Rules` key | |
# 'ExcludeRules' = @('PSAvoidUsingWriteHost') | |
# This was not including all rules so I manually defined them in the `Rules` key | |
# 'IncludeRules' = @('*') | |
# CustomRulePath did not allow processing any other rules without this key enabled |
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
{ /* vscode 1.27.1 */ | |
"explorer.confirmDelete": false, | |
"liveshare.account": "", | |
"liveshare.accountProvider": "github", | |
"liveshare.nameTagVisibility": "Always", | |
"liveshare.showInStatusBar": "whileCollaborating", | |
"git.autofetch": true, | |
"git.confirmSync": false, |
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
# 2>NUL & powershell -nop -nol -ep bypass "gc -ra '%~f0'|iex" & EXIT /B | |
# ^ boilerplate to execute script from batch context | |
# Update this variable to where you have GW2 installed and named. | |
# This defaults to `C:\Program Files\` | |
[System.IO.FileInfo] $GW2_PATH = "$Env:ProgramFiles\Guild Wars 2\Gw2-64.exe" | |
# This line can be removed if you don't want to pass any arguments. | |
# It does not get used if you already have a | |
# `%APPDATA%\Guild Wars 2\Settings.json` file. |
NewerOlder