Skip to content

Instantly share code, notes, and snippets.

View Halkcyon's full-sized avatar
🦀

Maximilian Burszley Halkcyon

🦀
View GitHub Profile
@Halkcyon
Halkcyon / settings.json
Last active April 1, 2019 11:58
vscode setup
{
"update.enableWindowsBackgroundUpdates": true,
"update.mode": "default",
"update.showReleaseNotes": false,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"powershell.codeFolding.enable": true,
"powershell.codeFolding.showLastLine": false,
#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
@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)
using namespace System.Management.Automation
#requires -Version 5
#requires -Module ActiveDirectory
[CmdletBinding()]
param
(
[Parameter(Position = 0)]
[Credential()]
{ /* vscode 1.27.1 */
"explorer.confirmDelete": false,
"liveshare.account": "",
"liveshare.accountProvider": "github",
"liveshare.nameTagVisibility": "Always",
"liveshare.showInStatusBar": "whileCollaborating",
"git.autofetch": true,
"git.confirmSync": false,
# 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