I hereby claim:
- I am kilasuit on github.
- I am kilasuit (https://keybase.io/kilasuit) on keybase.
- I have a public key ASBstNdIFccVz5yNeqf8znJgYYaTsbS4hF3gHne9Pthv1go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| function Search-History { | |
| <# | |
| .Synopsis | |
| Will do this sometime later | |
| .Example | |
| Search-History | |
| #> |
| Invoke-WebRequest https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi -OutFile $env:TEMP\chrome.msi | |
| Start-Process -FilePath $env:TEMP\chrome.msi -ArgumentList "/quiet /norestart" -Wait | |
| Remove-Item $env:TEMP\chrome.msi |
| $data = .\Script1.ps1 | |
| .\Script2.ps1 -data $data |
| It "Is valid Powershell (Has no script errors)" { | |
| $contents = Get-Content -Path $module.FullName -ErrorAction Stop | |
| $errors = $null | |
| $null = [System.Management.Automation.PSParser]::Tokenize($contents, [ref]$errors) | |
| $errors.Count | Should Be 0 | |
| } |
| function gitcleanbranches { | |
| [CmdletBinding()] | |
| [alias('gitcb')] | |
| param( | |
| [switch] | |
| [alias('n')] | |
| $Notmerged, | |
| [switch] | |
| [alias('f')] |
| function gitforcecleanbranches { | |
| [CmdletBinding()] | |
| [alias('gitcbf')] | |
| param( | |
| [switch] | |
| $Notmerged | |
| ) | |
| if ($notmerged) { | |
| git for-each-ref --format '%(refname:short)' refs/heads | ForEach-Object { if ($_ -match 'master|main') { git branch $_ -D } } | |
| } |
| Set-PSReadLineOption -AddToHistoryHandler { | |
| param([string]$line) | |
| $sensitive = "password|asplaintext|token|key|secret" | |
| return ($line -notmatch $sensitive) | |
| } |
| "roleNameGuid": { | |
| "type": "string", | |
| "defaultValue": "[newGuid()]", | |
| "metadata": { | |
| "description": "A new GUID used to identify the role assignment" | |
| } |
| function Request-YesOrNo { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(Mandatory=$false, Position=1)] | |
| [string]$title="Confirm", | |
| [Parameter(Mandatory=$true, Position=2)] | |
| [string]$message="Are you sure?" |