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
# Replace-FileString.ps1 | |
# Written by Bill Stewart ([email protected]) | |
# Modified by Matthew Steeples ([email protected]) to enable using the | |
# -Recurse flag on Get-ChildItem and piping in | |
# | |
# Replaces strings in files using a regular expression. Supports | |
# multi-line searching and replacing. | |
#requires -version 2 |
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
[RequiresCapability("SQL")] | |
public class TestBaseClass | |
{ | |
[TestMethod] | |
public void RunTest1() | |
{ | |
} | |
} | |
[RequiresCapability("ATS")] |
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
Add-Type -AssemblyName System.Windows.Forms | |
while ($true) | |
{ | |
$Pos = [System.Windows.Forms.Cursor]::Position | |
$x = ($pos.X % 500) + 1 | |
$y = ($pos.Y % 500) + 1 | |
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
Start-Sleep -Seconds 10 | |
} |
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
((Invoke-WebRequest https://www.gov.uk/bank-holidays/england-and-wales.json).Content | ConvertFrom-Json).events.Where({ $_.date -eq [DateTime]::Today.ToString("yyyy-MM-dd")}).Count -gt 0 |
OlderNewer