Skip to content

Instantly share code, notes, and snippets.

@fresh2dev
fresh2dev / config.toml
Created June 26, 2023 16:29
projectable config
# General settings
project_roots = [".git"]
# Keys
up = "k"
down = "j"
quit = "q"
help = "?"
all_up = "g"
all_down = "G"
Import-Module AnyBox
# Define the computer name prompt; the field must not be empty and the computer must be online.
$p = @(New-Prompt -Group 0 -Name 'pcName' -Message 'Computer Name:' -MessagePosition 'Left' -DefaultValue 'Localhost' `
-ValidateNotEmpty -ValidateScript { Test-Connection $_ -Count 1 -Quiet -ea 0})
# Define the process filter prompt
$p += @(New-Prompt -Group 0 -Name 'pFilter' -Message ' Process Name:' -MessagePosition 'Left' -DefaultValue '*' `
-ValidateNotEmpty)
@fresh2dev
fresh2dev / AnyBox_ProcessKiller.ps1
Last active March 13, 2018 21:09
AnyBox Demo - Process Killer
Import-Module AnyBox
[string]$default_input = 'localhost'
[hashtable]$answer = $null
[bool]$continue = $true
[hashtable]$common = @{WindowStyle = 'ToolWindow'; Title = 'Process Killer'; CancelButton = 'Cancel'}
while ($continue) {