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 | |
Creates a packages.config file from installed choco packages | |
.PARAMETER SourceFriendlyName | |
The friendly name of an available choco source on the system. This will explicity set the source in the config file | |
such that installation on the new system will come from this source. | |
.PARAMETER OutputFile | |
The config file to save output too. Must end in '.config'. |
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
See youtube below for easy install instruction (just copy and paste oneliner in Powershell) and demo tour of Text-to-speech with Cortana: | |
https://www.youtube.com/watch?v=u3rIyxtpEFY |
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
# You Should be able to Copy and Paste this into a powershell terminal and it should just work. | |
# To end the loop you have to kill the powershell terminal. ctrl-c wont work :/ | |
# Http Server | |
$http = [System.Net.HttpListener]::new() | |
# Hostname and port to listen on | |
$http.Prefixes.Add("http://localhost:8080/") |
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
# PowerShell function to run JavaScript/JQuery and return results back to PS, with timeout | |
# some web page with jQuery in it | |
$url = "http://jquery.com/" | |
Function ResetTimer | |
{ | |
$script:startTime = [DateTime]::Now | |
} |