This file contains hidden or 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
| #! /usr/bin/env python | |
| ############################################################################### | |
| # Nagios plugin template | |
| # | |
| # Notes | |
| # - The RHEL boxes I work on are currently limited to Python 2.6.6, hence the | |
| # use of (deprecated) optparse. If I can ever get them all updated to | |
| # Python 2.7 (or better yet, 3.3), I'll switch to argparse | |
| # - This template runs in 2.6-3.3. Any changes made will need to be appropriate |
This file contains hidden or 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
| function Send-MailMessages { | |
| <# | |
| .SYNOPSIS | |
| Send a batch of emails very quickly. | |
| .DESCRIPTION | |
| This script is designed to assist in generating email messages for testing internal/external message flow for your messaging infrastructure. | |
| The ability to quickly send a batch of messages with an attachment on a schedule can help track flow issues, to confirm mail routing, or to test 'high-load' scenarios. | |
| .EXAMPLE |
This file contains hidden or 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
| # Syntax test script for PowerGUI | |
| # ------------------------------- | |
| # To modify syntax highlighting, use the Script Colors addin | |
| # from http://www.powergui.org/entry.jspa?externalID=3023 | |
| # Or edit PowerShellSyntax.xml in your PowerGUI install path | |
| cls | |
| <# Formatted types in example below | |
| $myarray : variable |
This file contains hidden or 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
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| SetTitleMatchMode, 2 ; Needle for title match can occur anywhere | |
| ;SetTimer, KillCT, 60000 ; Calls the KillCT function every 60 seconds- no longer required | |
| run "%A_ScriptDir%\bin\text-replace.ahk" ; Starts the text-replace script | |
| GroupAdd, ThisScript, %A_ScriptName% ; Add any window containing this script's name to the group ThisScript |