Skip to content

Instantly share code, notes, and snippets.

View Halkcyon's full-sized avatar
🦀

Maximilian Burszley Halkcyon

🦀
View GitHub Profile
@Halkcyon
Halkcyon / Select-ProxyFunction.ps1
Created November 26, 2018 16:22
Proxy function/alias for Select-Object
$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)
#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
using namespace System.Management.Automation
#requires -Version 5
#requires -Module ActiveDirectory
[CmdletBinding()]
param
(
[Parameter(Position = 0)]
[Credential()]
# 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
{ /* vscode 1.27.1 */
"explorer.confirmDelete": false,
"liveshare.account": "",
"liveshare.accountProvider": "github",
"liveshare.nameTagVisibility": "Always",
"liveshare.showInStatusBar": "whileCollaborating",
"git.autofetch": true,
"git.confirmSync": false,
@Halkcyon
Halkcyon / GW2.cmd
Last active March 1, 2022 17:30 — forked from OneFaced/UpdateArcDps.cmd
Automatically update ArcDps and BuildTemplates from deltaconnected for Guild Wars 2
# 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.