Skip to content

Instantly share code, notes, and snippets.

View vexx32's full-sized avatar
💜
Turn your faults into faultlore and share them with the world.

Rain Sallow (/u/ta11ow) vexx32

💜
Turn your faults into faultlore and share them with the world.
View GitHub Profile
@vexx32
vexx32 / Invoke-PSNotification.ps1
Last active November 9, 2018 14:08 — forked from TylerLeonhardt/Invoke-PSNotification.ps1
Show notifications on Linux using PowerShell! Thanks to notify-send(1)
function Invoke-PSNotification {
[CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(Position=0, Mandatory, ValueFromPipeline)]
[object[]]
$Body,
[string]
$Summary = 'PowerShell Notification',
@vexx32
vexx32 / PowershellLoopBehavior.md
Last active January 15, 2022 10:36 — forked from JustinGrote/PowershellLoopBehavior.md
Reference Table for Loop Behavior in Powershell
Loop Return Continue Break
Normal Expectation Exit Scope Next Item Exit Loop
.foreach{} Next Item Break Scopes / Next Item of Parent Loop Break Scopes / Exit Parent Loop
foreach ($y in $x) Exit Scope Next Item Exit Loop
for ($i;$i -lt 5;$i++) Exit Scope Next Item Exit Loop
Foreach-Object -InputObject @() Next Item Break Scopes / Next Item of Parent Loop Break Scopes / Exit Parent Loop
Switch Exit Scope Next Item Exit Switch
While