public
imalexnord
read
ms.open
Adds Mac "Open ." command to Windows
Languages
Repository composition by tracked source files.
PowerShell
100%
Create file
Wiki Documentation
Clone
https://nobgit.com/user/imalexnord/ms.open.git
ssh://[email protected]:2222/user/imalexnord/ms.open.git
Trace
bin/MSOpen.ps1
Trace helps you understand code history line by line. See who changed each line, when it changed, and which commit introduced it.
MSOpen.ps1
on main
Author
Date
Commit
Line
Code
Alex Nord
11 days ago
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 1
[CmdletBinding()]
[CmdletBinding()]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 2
param(
param(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 3
[Parameter(Position = 0, Mandatory = $true)]
[Parameter(Position = 0, Mandatory = $true)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 4
[string]$Command,
[string]$Command,
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 5
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 6
[Parameter(Position = 1, ValueFromRemainingArguments = $true)]
[Parameter(Position = 1, ValueFromRemainingArguments = $true)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 7
[string[]]$Arguments
[string[]]$Arguments
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 8
)
)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 9
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 10
Set-StrictMode -Version Latest
Set-StrictMode -Version Latest
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 11
$ErrorActionPreference = 'Stop'
$ErrorActionPreference = 'Stop'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 12
$Arguments = @($Arguments)
$Arguments = @($Arguments)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 13
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 14
function Resolve-MSOpenPath {
function Resolve-MSOpenPath {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 15
param(
param(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 16
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 17
[string]$Path
[string]$Path
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 18
)
)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 19
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 20
$resolved = Resolve-Path -LiteralPath $Path -ErrorAction Stop
$resolved = Resolve-Path -LiteralPath $Path -ErrorAction Stop
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 21
return $resolved.Path
return $resolved.Path
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 22
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 23
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 24
function Invoke-Open {
function Invoke-Open {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 25
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 26
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 27
$target = if ($Args.Count -gt 0) {
$target = if ($Args.Count -gt 0) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 28
$Args[0]
$Args[0]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 29
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 30
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 31
(Get-Location).Path
(Get-Location).Path
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 32
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 33
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 34
if (Test-Path -LiteralPath $target) {
if (Test-Path -LiteralPath $target) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 35
$target = Resolve-MSOpenPath -Path $target
$target = Resolve-MSOpenPath -Path $target
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 36
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 37
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 38
Start-Process -FilePath $target
Start-Process -FilePath $target
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 39
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 40
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 41
function Invoke-Reveal {
function Invoke-Reveal {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 42
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 43
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 44
if ($Args.Count -lt 1) {
if ($Args.Count -lt 1) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 45
throw 'Usage: reveal <file-or-folder>'
throw 'Usage: reveal <file-or-folder>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 46
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 47
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 48
$target = Resolve-MSOpenPath -Path $Args[0]
$target = Resolve-MSOpenPath -Path $Args[0]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 49
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 50
if (Test-Path -LiteralPath $target -PathType Container) {
if (Test-Path -LiteralPath $target -PathType Container) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 51
Start-Process -FilePath 'explorer.exe' -ArgumentList "`"$target`""
Start-Process -FilePath 'explorer.exe' -ArgumentList "`"$target`""
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 52
return
return
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 53
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 54
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 55
Start-Process -FilePath 'explorer.exe' -ArgumentList "/select,`"$target`""
Start-Process -FilePath 'explorer.exe' -ArgumentList "/select,`"$target`""
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 56
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 57
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 58
function Invoke-CopyPath {
function Invoke-CopyPath {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 59
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 60
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 61
$target = if ($Args.Count -gt 0) {
$target = if ($Args.Count -gt 0) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 62
Resolve-MSOpenPath -Path $Args[0]
Resolve-MSOpenPath -Path $Args[0]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 63
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 64
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 65
(Get-Location).Path
(Get-Location).Path
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 66
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 67
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 68
Set-Clipboard -Value $target
Set-Clipboard -Value $target
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 69
Write-Output $target
Write-Output $target
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 70
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 71
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 72
function Invoke-Paths {
function Invoke-Paths {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 73
$entries = $env:Path -split ';' |
$entries = $env:Path -split ';' |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 74
ForEach-Object { $_.Trim() } |
ForEach-Object { $_.Trim() } |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 75
Where-Object { $_ }
Where-Object { $_ }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 76
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 77
$index = 1
$index = 1
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 78
foreach ($entry in $entries) {
foreach ($entry in $entries) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 79
[pscustomobject]@{
[pscustomobject]@{
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 80
Number = $index
Number = $index
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 81
Path = $entry
Path = $entry
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 82
Exists = Test-Path -LiteralPath $entry
Exists = Test-Path -LiteralPath $entry
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 83
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 84
$index++
$index++
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 85
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 86
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 87
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 88
function Invoke-Which {
function Invoke-Which {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 89
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 90
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 91
if ($Args.Count -lt 1) {
if ($Args.Count -lt 1) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 92
throw 'Usage: which <command>'
throw 'Usage: which <command>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 93
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 94
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 95
$commands = Get-Command -Name $Args[0] -All -ErrorAction Stop
$commands = Get-Command -Name $Args[0] -All -ErrorAction Stop
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 96
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 97
foreach ($item in $commands) {
foreach ($item in $commands) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 98
$location = $null
$location = $null
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 99
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 100
if ($item.PSObject.Properties.Name -contains 'Path' -and $item.Path) {
if ($item.PSObject.Properties.Name -contains 'Path' -and $item.Path) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 101
$location = $item.Path
$location = $item.Path
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 102
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 103
elseif ($item.Source) {
elseif ($item.Source) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 104
$location = $item.Source
$location = $item.Source
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 105
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 106
elseif ($item.Definition) {
elseif ($item.Definition) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 107
$location = $item.Definition
$location = $item.Definition
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 108
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 109
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 110
[pscustomobject]@{
[pscustomobject]@{
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 111
CommandType = $item.CommandType
CommandType = $item.CommandType
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 112
Name = $item.Name
Name = $item.Name
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 113
Location = $location
Location = $location
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 114
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 115
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 116
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 117
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 118
function Get-ListeningPorts {
function Get-ListeningPorts {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 119
$connections = Get-NetTCPConnection -State Listen -ErrorAction Stop |
$connections = Get-NetTCPConnection -State Listen -ErrorAction Stop |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 120
Sort-Object LocalPort, LocalAddress
Sort-Object LocalPort, LocalAddress
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 121
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 122
foreach ($connection in $connections) {
foreach ($connection in $connections) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 123
$processName = '<unknown>'
$processName = '<unknown>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 124
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 125
if ($connection.OwningProcess -eq 4) {
if ($connection.OwningProcess -eq 4) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 126
$processName = 'System'
$processName = 'System'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 127
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 128
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 129
try {
try {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 130
$processName = (Get-Process -Id $connection.OwningProcess -ErrorAction Stop).ProcessName
$processName = (Get-Process -Id $connection.OwningProcess -ErrorAction Stop).ProcessName
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 131
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 132
catch {
catch {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 133
$processName = '<unavailable>'
$processName = '<unavailable>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 134
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 135
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 136
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 137
[pscustomobject]@{
[pscustomobject]@{
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 138
Protocol = 'TCP'
Protocol = 'TCP'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 139
Address = $connection.LocalAddress
Address = $connection.LocalAddress
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 140
Port = $connection.LocalPort
Port = $connection.LocalPort
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 141
PID = $connection.OwningProcess
PID = $connection.OwningProcess
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 142
Process = $processName
Process = $processName
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 143
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 144
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 145
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 146
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 147
function Invoke-Ports {
function Invoke-Ports {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 148
Get-ListeningPorts | Format-Table -AutoSize
Get-ListeningPorts | Format-Table -AutoSize
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 149
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 150
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 151
function Invoke-KillPort {
function Invoke-KillPort {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 152
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 153
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 154
if ($Args.Count -lt 1) {
if ($Args.Count -lt 1) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 155
throw 'Usage: killport <port> [--force]'
throw 'Usage: killport <port> [--force]'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 156
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 157
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 158
$port = 0
$port = 0
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 159
if (-not [int]::TryParse($Args[0], [ref]$port) -or $port -lt 1 -or $port -gt 65535) {
if (-not [int]::TryParse($Args[0], [ref]$port) -or $port -lt 1 -or $port -gt 65535) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 160
throw "Invalid port: $($Args[0])"
throw "Invalid port: $($Args[0])"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 161
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 162
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 163
$force = $Args -contains '--force'
$force = $Args -contains '--force'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 164
$connections = Get-NetTCPConnection -State Listen -LocalPort $port -ErrorAction SilentlyContinue
$connections = Get-NetTCPConnection -State Listen -LocalPort $port -ErrorAction SilentlyContinue
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 165
$processIds = @($connections | Select-Object -ExpandProperty OwningProcess -Unique)
$processIds = @($connections | Select-Object -ExpandProperty OwningProcess -Unique)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 166
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 167
if ($processIds.Count -eq 0) {
if ($processIds.Count -eq 0) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 168
throw "Nothing is listening on port $port."
throw "Nothing is listening on port $port."
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 169
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 170
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 171
$targets = foreach ($processId in $processIds) {
$targets = foreach ($processId in $processIds) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 172
$name = '<unknown>'
$name = '<unknown>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 173
try {
try {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 174
$name = (Get-Process -Id $processId -ErrorAction Stop).ProcessName
$name = (Get-Process -Id $processId -ErrorAction Stop).ProcessName
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 175
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 176
catch {
catch {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 177
$name = '<unavailable>'
$name = '<unavailable>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 178
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 179
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 180
[pscustomobject]@{
[pscustomobject]@{
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 181
Port = $port
Port = $port
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 182
PID = $processId
PID = $processId
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 183
Process = $name
Process = $name
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 184
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 185
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 186
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 187
$targets | Format-Table -AutoSize
$targets | Format-Table -AutoSize
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 188
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 189
$protected = @($targets | Where-Object { $_.PID -in 0, 4 })
$protected = @($targets | Where-Object { $_.PID -in 0, 4 })
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 190
if ($protected.Count -gt 0) {
if ($protected.Count -gt 0) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 191
throw 'Refusing to terminate a protected Windows system process.'
throw 'Refusing to terminate a protected Windows system process.'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 192
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 193
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 194
if (-not $force) {
if (-not $force) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 195
$answer = Read-Host "Terminate the process owning port $port? [y/N]"
$answer = Read-Host "Terminate the process owning port $port? [y/N]"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 196
if ($answer -notmatch '^(y|yes)$') {
if ($answer -notmatch '^(y|yes)$') {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 197
Write-Host 'Cancelled.'
Write-Host 'Cancelled.'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 198
return
return
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 199
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 200
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 201
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 202
foreach ($target in $targets) {
foreach ($target in $targets) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 203
Stop-Process -Id $target.PID -Force -ErrorAction Stop
Stop-Process -Id $target.PID -Force -ErrorAction Stop
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 204
Write-Host "Stopped $($target.Process) (PID $($target.PID))."
Write-Host "Stopped $($target.Process) (PID $($target.PID))."
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 205
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 206
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 207
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 208
function Invoke-Sha256 {
function Invoke-Sha256 {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 209
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 210
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 211
if ($Args.Count -lt 1) {
if ($Args.Count -lt 1) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 212
throw 'Usage: sha256 <file>'
throw 'Usage: sha256 <file>'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 213
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 214
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 215
$target = Resolve-MSOpenPath -Path $Args[0]
$target = Resolve-MSOpenPath -Path $Args[0]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 216
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 217
if (-not (Test-Path -LiteralPath $target -PathType Leaf)) {
if (-not (Test-Path -LiteralPath $target -PathType Leaf)) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 218
throw "Not a file: $target"
throw "Not a file: $target"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 219
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 220
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 221
$hash = Get-FileHash -LiteralPath $target -Algorithm SHA256
$hash = Get-FileHash -LiteralPath $target -Algorithm SHA256
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 222
Write-Output "$($hash.Hash.ToLowerInvariant()) $target"
Write-Output "$($hash.Hash.ToLowerInvariant()) $target"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 223
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 224
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 225
function Invoke-Pbcopy {
function Invoke-Pbcopy {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 226
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 227
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 228
$text = if ($Args.Count -gt 0) {
$text = if ($Args.Count -gt 0) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 229
$Args -join ' '
$Args -join ' '
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 230
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 231
elseif ([Console]::IsInputRedirected) {
elseif ([Console]::IsInputRedirected) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 232
[Console]::In.ReadToEnd()
[Console]::In.ReadToEnd()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 233
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 234
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 235
''
''
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 236
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 237
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 238
Set-Clipboard -Value $text
Set-Clipboard -Value $text
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 239
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 240
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 241
function Invoke-Pbpaste {
function Invoke-Pbpaste {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 242
$value = Get-Clipboard -Raw
$value = Get-Clipboard -Raw
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 243
if ($null -ne $value) {
if ($null -ne $value) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 244
[Console]::Out.Write($value)
[Console]::Out.Write($value)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 245
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 246
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 247
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 248
function Get-MimeType {
function Get-MimeType {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 249
param([string]$Path)
param([string]$Path)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 250
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 251
switch ([IO.Path]::GetExtension($Path).ToLowerInvariant()) {
switch ([IO.Path]::GetExtension($Path).ToLowerInvariant()) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 252
'.html' { 'text/html; charset=utf-8' }
'.html' { 'text/html; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 253
'.htm' { 'text/html; charset=utf-8' }
'.htm' { 'text/html; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 254
'.css' { 'text/css; charset=utf-8' }
'.css' { 'text/css; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 255
'.js' { 'text/javascript; charset=utf-8' }
'.js' { 'text/javascript; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 256
'.json' { 'application/json; charset=utf-8' }
'.json' { 'application/json; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 257
'.xml' { 'application/xml; charset=utf-8' }
'.xml' { 'application/xml; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 258
'.txt' { 'text/plain; charset=utf-8' }
'.txt' { 'text/plain; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 259
'.md' { 'text/markdown; charset=utf-8' }
'.md' { 'text/markdown; charset=utf-8' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 260
'.svg' { 'image/svg+xml' }
'.svg' { 'image/svg+xml' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 261
'.png' { 'image/png' }
'.png' { 'image/png' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 262
'.jpg' { 'image/jpeg' }
'.jpg' { 'image/jpeg' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 263
'.jpeg' { 'image/jpeg' }
'.jpeg' { 'image/jpeg' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 264
'.gif' { 'image/gif' }
'.gif' { 'image/gif' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 265
'.webp' { 'image/webp' }
'.webp' { 'image/webp' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 266
'.ico' { 'image/x-icon' }
'.ico' { 'image/x-icon' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 267
'.pdf' { 'application/pdf' }
'.pdf' { 'application/pdf' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 268
'.wasm' { 'application/wasm' }
'.wasm' { 'application/wasm' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 269
'.zip' { 'application/zip' }
'.zip' { 'application/zip' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 270
default { 'application/octet-stream' }
default { 'application/octet-stream' }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 271
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 272
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 273
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 274
function Send-TextResponse {
function Send-TextResponse {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 275
param(
param(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 276
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 277
[System.Net.HttpListenerResponse]$Response,
[System.Net.HttpListenerResponse]$Response,
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 278
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 279
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 280
[int]$StatusCode,
[int]$StatusCode,
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 281
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 282
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 283
[string]$Text,
[string]$Text,
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 284
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 285
[string]$ContentType = 'text/plain; charset=utf-8'
[string]$ContentType = 'text/plain; charset=utf-8'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 286
)
)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 287
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 288
$bytes = [Text.Encoding]::UTF8.GetBytes($Text)
$bytes = [Text.Encoding]::UTF8.GetBytes($Text)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 289
$Response.StatusCode = $StatusCode
$Response.StatusCode = $StatusCode
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 290
$Response.ContentType = $ContentType
$Response.ContentType = $ContentType
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 291
$Response.ContentLength64 = $bytes.Length
$Response.ContentLength64 = $bytes.Length
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 292
$Response.OutputStream.Write($bytes, 0, $bytes.Length)
$Response.OutputStream.Write($bytes, 0, $bytes.Length)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 293
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 294
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 295
function Get-DirectoryListingHtml {
function Get-DirectoryListingHtml {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 296
param(
param(
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 297
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 298
[string]$Directory,
[string]$Directory,
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 299
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 300
[Parameter(Mandatory)]
[Parameter(Mandatory)]
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 301
[string]$RequestPath
[string]$RequestPath
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 302
)
)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 303
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 304
$encodedTitle = [Net.WebUtility]::HtmlEncode("Index of $RequestPath")
$encodedTitle = [Net.WebUtility]::HtmlEncode("Index of $RequestPath")
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 305
$builder = [Text.StringBuilder]::new()
$builder = [Text.StringBuilder]::new()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 306
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 307
[void]$builder.AppendLine('<!doctype html>')
[void]$builder.AppendLine('<!doctype html>')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 308
[void]$builder.AppendLine('<html lang="en"><head><meta charset="utf-8">')
[void]$builder.AppendLine('<html lang="en"><head><meta charset="utf-8">')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 309
[void]$builder.AppendLine("<title>$encodedTitle</title>")
[void]$builder.AppendLine("<title>$encodedTitle</title>")
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 310
[void]$builder.AppendLine('<style>body{font-family:system-ui,sans-serif;max-width:900px;margin:40px auto;padding:0 20px}li{margin:8px 0}a{text-decoration:none}a:hover{text-decoration:underline}</style>')
[void]$builder.AppendLine('<style>body{font-family:system-ui,sans-serif;max-width:900px;margin:40px auto;padding:0 20px}li{margin:8px 0}a{text-decoration:none}a:hover{text-decoration:underline}</style>')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 311
[void]$builder.AppendLine('</head><body>')
[void]$builder.AppendLine('</head><body>')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 312
[void]$builder.AppendLine("<h1>$encodedTitle</h1><ul>")
[void]$builder.AppendLine("<h1>$encodedTitle</h1><ul>")
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 313
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 314
if ($RequestPath -ne '/') {
if ($RequestPath -ne '/') {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 315
[void]$builder.AppendLine('<li><a href="../">../</a></li>')
[void]$builder.AppendLine('<li><a href="../">../</a></li>')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 316
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 317
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 318
foreach ($item in Get-ChildItem -LiteralPath $Directory | Sort-Object @{ Expression = { -not $_.PSIsContainer } }, Name) {
foreach ($item in Get-ChildItem -LiteralPath $Directory | Sort-Object @{ Expression = { -not $_.PSIsContainer } }, Name) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 319
$displayName = $item.Name + $(if ($item.PSIsContainer) { '/' } else { '' })
$displayName = $item.Name + $(if ($item.PSIsContainer) { '/' } else { '' })
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 320
$hrefName = [Uri]::EscapeDataString($item.Name) + $(if ($item.PSIsContainer) { '/' } else { '' })
$hrefName = [Uri]::EscapeDataString($item.Name) + $(if ($item.PSIsContainer) { '/' } else { '' })
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 321
$encodedName = [Net.WebUtility]::HtmlEncode($displayName)
$encodedName = [Net.WebUtility]::HtmlEncode($displayName)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 322
[void]$builder.AppendLine("<li><a href=`"$hrefName`">$encodedName</a></li>")
[void]$builder.AppendLine("<li><a href=`"$hrefName`">$encodedName</a></li>")
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 323
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 324
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 325
[void]$builder.AppendLine('</ul></body></html>')
[void]$builder.AppendLine('</ul></body></html>')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 326
return $builder.ToString()
return $builder.ToString()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 327
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 328
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 329
function Invoke-Serve {
function Invoke-Serve {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 330
param([string[]]$Args)
param([string[]]$Args)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 331
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 332
$port = 8000
$port = 8000
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 333
if ($Args.Count -gt 0) {
if ($Args.Count -gt 0) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 334
if (-not [int]::TryParse($Args[0], [ref]$port) -or $port -lt 1 -or $port -gt 65535) {
if (-not [int]::TryParse($Args[0], [ref]$port) -or $port -lt 1 -or $port -gt 65535) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 335
throw "Invalid port: $($Args[0])"
throw "Invalid port: $($Args[0])"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 336
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 337
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 338
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 339
$root = [IO.Path]::GetFullPath((Get-Location).Path)
$root = [IO.Path]::GetFullPath((Get-Location).Path)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 340
$rootWithSeparator = $root.TrimEnd('\') + '\'
$rootWithSeparator = $root.TrimEnd('\') + '\'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 341
$prefix = "http://127.0.0.1:$port/"
$prefix = "http://127.0.0.1:$port/"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 342
$listener = [System.Net.HttpListener]::new()
$listener = [System.Net.HttpListener]::new()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 343
$listener.Prefixes.Add($prefix)
$listener.Prefixes.Add($prefix)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 344
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 345
try {
try {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 346
$listener.Start()
$listener.Start()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 347
Write-Host "Serving $root"
Write-Host "Serving $root"
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 348
Write-Host $prefix
Write-Host $prefix
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 349
Write-Host 'Press Ctrl+C to stop.'
Write-Host 'Press Ctrl+C to stop.'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 350
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 351
while ($listener.IsListening) {
while ($listener.IsListening) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 352
$context = $listener.GetContext()
$context = $listener.GetContext()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 353
$response = $context.Response
$response = $context.Response
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 354
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 355
try {
try {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 356
$requestPath = [Uri]::UnescapeDataString($context.Request.Url.AbsolutePath)
$requestPath = [Uri]::UnescapeDataString($context.Request.Url.AbsolutePath)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 357
$relativePath = $requestPath.TrimStart('/').Replace('/', '\')
$relativePath = $requestPath.TrimStart('/').Replace('/', '\')
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 358
$candidate = [IO.Path]::GetFullPath((Join-Path $root $relativePath))
$candidate = [IO.Path]::GetFullPath((Join-Path $root $relativePath))
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 359
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 360
$insideRoot = $candidate.Equals($root, [StringComparison]::OrdinalIgnoreCase) -or
$insideRoot = $candidate.Equals($root, [StringComparison]::OrdinalIgnoreCase) -or
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 361
$candidate.StartsWith($rootWithSeparator, [StringComparison]::OrdinalIgnoreCase)
$candidate.StartsWith($rootWithSeparator, [StringComparison]::OrdinalIgnoreCase)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 362
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 363
if (-not $insideRoot) {
if (-not $insideRoot) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 364
Send-TextResponse -Response $response -StatusCode 403 -Text 'Forbidden'
Send-TextResponse -Response $response -StatusCode 403 -Text 'Forbidden'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 365
continue
continue
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 366
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 367
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 368
if (Test-Path -LiteralPath $candidate -PathType Container) {
if (Test-Path -LiteralPath $candidate -PathType Container) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 369
$indexFile = @('index.html', 'index.htm') |
$indexFile = @('index.html', 'index.htm') |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 370
ForEach-Object { Join-Path $candidate $_ } |
ForEach-Object { Join-Path $candidate $_ } |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 371
Where-Object { Test-Path -LiteralPath $_ -PathType Leaf } |
Where-Object { Test-Path -LiteralPath $_ -PathType Leaf } |
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 372
Select-Object -First 1
Select-Object -First 1
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 373
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 374
if ($indexFile) {
if ($indexFile) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 375
$candidate = $indexFile
$candidate = $indexFile
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 376
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 377
else {
else {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 378
$html = Get-DirectoryListingHtml -Directory $candidate -RequestPath $requestPath
$html = Get-DirectoryListingHtml -Directory $candidate -RequestPath $requestPath
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 379
Send-TextResponse -Response $response -StatusCode 200 -Text $html -ContentType 'text/html; charset=utf-8'
Send-TextResponse -Response $response -StatusCode 200 -Text $html -ContentType 'text/html; charset=utf-8'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 380
continue
continue
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 381
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 382
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 383
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 384
if (-not (Test-Path -LiteralPath $candidate -PathType Leaf)) {
if (-not (Test-Path -LiteralPath $candidate -PathType Leaf)) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 385
Send-TextResponse -Response $response -StatusCode 404 -Text 'Not found'
Send-TextResponse -Response $response -StatusCode 404 -Text 'Not found'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 386
continue
continue
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 387
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 388
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 389
$fileInfo = Get-Item -LiteralPath $candidate
$fileInfo = Get-Item -LiteralPath $candidate
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 390
$response.StatusCode = 200
$response.StatusCode = 200
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 391
$response.ContentType = Get-MimeType -Path $candidate
$response.ContentType = Get-MimeType -Path $candidate
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 392
$response.ContentLength64 = $fileInfo.Length
$response.ContentLength64 = $fileInfo.Length
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 393
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 394
$stream = [IO.File]::OpenRead($candidate)
$stream = [IO.File]::OpenRead($candidate)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 395
try {
try {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 396
$stream.CopyTo($response.OutputStream)
$stream.CopyTo($response.OutputStream)
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 397
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 398
finally {
finally {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 399
$stream.Dispose()
$stream.Dispose()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 400
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 401
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 402
catch {
catch {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 403
if ($response.OutputStream.CanWrite) {
if ($response.OutputStream.CanWrite) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 404
Send-TextResponse -Response $response -StatusCode 500 -Text 'Internal server error'
Send-TextResponse -Response $response -StatusCode 500 -Text 'Internal server error'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 405
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 406
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 407
finally {
finally {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 408
$response.OutputStream.Close()
$response.OutputStream.Close()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 409
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 410
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 411
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 412
finally {
finally {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 413
if ($listener.IsListening) {
if ($listener.IsListening) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 414
$listener.Stop()
$listener.Stop()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 415
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 416
$listener.Close()
$listener.Close()
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 417
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 418
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 419
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 420
function Show-Help {
function Show-Help {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 421
@'
@'
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 422
MS.Open commands
MS.Open commands
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 423
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 424
open [path] Open a folder, file, or URL
open [path] Open a folder, file, or URL
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 425
reveal <path> Show a file in Explorer
reveal <path> Show a file in Explorer
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 426
copypath [path] Copy a full path to the clipboard
copypath [path] Copy a full path to the clipboard
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 427
which <command> Explain which command will run
which <command> Explain which command will run
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 428
paths Print PATH entries one per row
paths Print PATH entries one per row
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 429
serve [port] Serve the current folder at 127.0.0.1
serve [port] Serve the current folder at 127.0.0.1
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 430
ports Show listening TCP ports
ports Show listening TCP ports
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 431
killport <port> Stop the process listening on a port
killport <port> Stop the process listening on a port
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 432
sha256 <file> Calculate a SHA-256 hash
sha256 <file> Calculate a SHA-256 hash
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 433
pbcopy [text] Copy arguments or piped input
pbcopy [text] Copy arguments or piped input
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 434
pbpaste Print clipboard text
pbpaste Print clipboard text
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 435
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 436
PowerShell functions installed separately:
PowerShell functions installed separately:
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 437
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 438
mkcd <folder> Create a directory and enter it
mkcd <folder> Create a directory and enter it
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 439
reload Reload the current PowerShell profile
reload Reload the current PowerShell profile
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 440
'@
'@
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 441
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 442
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 443
try {
try {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 444
switch ($Command.ToLowerInvariant()) {
switch ($Command.ToLowerInvariant()) {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 445
'open' { Invoke-Open -Args $Arguments }
'open' { Invoke-Open -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 446
'reveal' { Invoke-Reveal -Args $Arguments }
'reveal' { Invoke-Reveal -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 447
'copypath' { Invoke-CopyPath -Args $Arguments }
'copypath' { Invoke-CopyPath -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 448
'which' { Invoke-Which -Args $Arguments }
'which' { Invoke-Which -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 449
'paths' { Invoke-Paths }
'paths' { Invoke-Paths }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 450
'serve' { Invoke-Serve -Args $Arguments }
'serve' { Invoke-Serve -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 451
'ports' { Invoke-Ports }
'ports' { Invoke-Ports }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 452
'killport' { Invoke-KillPort -Args $Arguments }
'killport' { Invoke-KillPort -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 453
'sha256' { Invoke-Sha256 -Args $Arguments }
'sha256' { Invoke-Sha256 -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 454
'pbcopy' { Invoke-Pbcopy -Args $Arguments }
'pbcopy' { Invoke-Pbcopy -Args $Arguments }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 455
'pbpaste' { Invoke-Pbpaste }
'pbpaste' { Invoke-Pbpaste }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 456
'help' { Show-Help }
'help' { Show-Help }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 457
'--help' { Show-Help }
'--help' { Show-Help }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 458
'-h' { Show-Help }
'-h' { Show-Help }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 459
default { throw "Unknown command: $Command`n`n$(Show-Help)" }
default { throw "Unknown command: $Command`n`n$(Show-Help)" }
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 460
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 461
}
}
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 462
catch {
catch {
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 463
Write-Error $_.Exception.Message
Write-Error $_.Exception.Message
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 464
exit 1
exit 1
same change
a6e9016
Added more mac commmands
- Full commit hash
a6e9016ab8de81fdc3afb3d4d20e378cf4a6a92f- Author
- Alex Nord <[email protected]>
- Date
- 11 days ago
- Selected line
- 465
}
}