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
/* | |
Student Planning goes down randomly and we have to recycle the app pool to fix it. | |
This script will try to login to Student Planning and make an AJAX request. It will | |
return text output (console.log() output) about whether it is working or not. | |
NOTE: this script relies on PhatomJS, which you can download here: | |
http://phantomjs.org/download.html | |
NOTE: change the values of the host, user, and pass variables. Optionally change the timeout variable. | |
*/ |
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
# with reference to http://theadminguy.com/2009/04/30/portscan-with-powershell/ | |
function fastping{ | |
[CmdletBinding()] | |
param( | |
[String]$computername = "127.0.0.1", | |
[int]$delay = 100 | |
) | |
$ping = new-object System.Net.NetworkInformation.Ping | |
# see http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipstatus%28v=vs.110%29.aspx |