This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Gets the CDP information from a computer. | |
.DESCRIPTION | |
Attempts to get the CDP information from a computer. It automatically downloads tcpdump.exe if it's not already on a computer. | |
.PARAMETER DeviceNumber | |
Alias: dn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For those times you just can't remember the name of the command that you only use occasionally | |
# These are snippets, not a script! | |
# live bandwidth usage expressed graphically with ascii | |
nload | |
speedometer -r eth0 -t eth0 | |
# general system monitoring | |
glances | |
# variants of top | |
atop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Send Keypresses | |
$wshell = new-object -com wscript.shell | |
$wshell.SendKeys("{CAPSLOCK}") | |
# Graphical input | |
$data = [Microsoft.VisualBasic.Interaction]::InputBox('hi user give me your data', 'inputboxtitle') | |
# Graphical output | |
[Microsoft.VisualBasic.Interaction]::MsgBox("tada", "OKOnly,SystemModal,Information", "msgboxtitle") |