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 7.0 | |
Import-Module 'pansies' | |
function Hr { "`n----`n" } | |
<# | |
See related runes: | |
https://www.compart.com/en/unicode/block/U+2580 | |
#> | |
$up = "`u{2580}" <# upper: https://www.compart.com/en/unicode/U+2580 #> | |
$down = "`u{2584}" <# lower: <https://www.compart.com/en/unicode/U+2584> #> |
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
Import-Module ImportExcel -PassThru | |
Push-Location $PSScriptRoot | |
# Close-ExcelWindow | |
$PSDefaultParameterValues['Export-Excel:Verbose'] = $true | |
$users = @( | |
[pscustomobject]@{ | |
Name = 'Jen' | |
Region = 'Blue' | |
Len = '=LEN( [@[Name]] )' |
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
# Here's what not to do. I'm testing line continuation grammar | |
$daxStudioOutput = @( | |
'foo has | pipe', 'path \\?\c:\foo', 'other' -join "`t" | |
'PBIDesktopTrace', 'XEvent' -join "`t" | |
'tabularEditor', '96f8cba3-0ecc-4179-b720-e27ba7cef5a' -join "`t" | |
) | Join-String -sep "`n" | |
$renderArray = @{ | |
OutputPrefix = "[`n" | |
OutputSuffix = "`n]" | |
FormatString = "`n`t{0}," |
These are the logs from the command Developer: Toggle Keyboard Shortcuts Troubleshooting
.
see PSReadLine.WhatIsKey KeyBindings.cs
# Shelly: Disabled, Term: default
Ctrl+@: MenuComplete -
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.Collections.Generic | |
$script:Paths = [ordered]@{} | |
@' | |
try this EverythingSearchQuery: | |
dm:last45minutes path:"*sun*" ( !path:ww:"%appdata%\code" ( !file:"-old.ini" !file:"-prev.ini" ) !path:"c:\windows" !path:"%AppData%\Microsoft\Windows\Recent" ) | |
'@ | |
$Paths.TiberianSun = @{ | |
Root = gi 'H:\SteamLibrary\steamapps\common\Command & Conquer Tiberian Sun' |
This is for the dbatools
discord thread at: https://discord.com/channels/180528040881815552/800214699463409704/1217419649793130649
class RawIncident {
[int]$IncidentId
[string]$MailId
[string]$Status
[string]$Priority
[string]$ConfigName
[string]$SenderAddress
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
Write-FormatView -TypeName ([Text.Rune]) -Property @( | |
'Render', 'Hex', 'Dec', 'Utf16', 'Utf8', 'Numeric' , 'Cat' , 'Ctrl' , 'Enc8', 'Enc16', 'Enc16Be', 'Upper', 'Lower' | |
) -AliasProperty @{ | |
'Cat' = 'GetUnicodeCategory' | |
'Dec' = 'Value' | |
'Utf16' = 'Utf16SequenceLength' | |
'Utf8' = 'Utf8SequenceLength' | |
'Text' = 'Render' | |
'Lower' = 'ToLowerInvariant' | |
'Upper' = 'ToUpperInvariant' |
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
function New.CompletionResult { | |
[Alias('New.CR')] | |
param( | |
# original base text | |
[Alias('Item', 'Text')] | |
[Parameter(Mandatory)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateNotNullOrWhiteSpace()] | |
[string]$ListItemText, |
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.Collections | |
using namespace System.Collections.Generic | |
using namespace System.Management | |
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
function New.CompletionResult { | |
[Alias('New.CR')] | |
param( | |
# original base text |
NewerOlder