I agree with you, but prefer to decouple philosophy from tools. It's just semantics, but in the history of business organization there is a tendency to distill a philosophy down to a few bullet points and believe following those bullet points is all that is needed to be successful. One of the bullet points is usually, "Use XYZ tool." Just putting up a board with cards on it isn't likely going to make your business more successful. It's just a tool. You have to learn how to use it. Sorry if you took my weakness with words as an attack on your efforts to do just that.
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
PS C:\> Get-Web -Url http://www.youtube.com/watch?v=xPRC3EDR_GU -AsMicrodata -ItemType http://schema.org/VideoObject | Export-PSData .\PipeworksQuickstart.video.psd1 |
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
function Select-UniqueClientIP { | |
[CmdletBinding(SupportsPaging,DefaultParameterSetName="IPv4")] | |
[OutputType([System.String[]])] | |
param( | |
[Parameter(Position=0,Mandatory,ValueFromPipeline,ValueFromPipeLineByPropertyName)] | |
[ValidateNotNullOrEmpty()] | |
[Alias("FullName")] | |
[string[]] | |
$Path, | |
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
function Out-Speech($text) { | |
$speechy = New-Object –ComObject SAPI.SPVoice; | |
$text | |
$voices = $speechy.GetVoices(); | |
foreach ($voice in $voices) { | |
$voice.GetDescription(); | |
$speechy.Voice = $voice; | |
$speechy.Speak($text); | |
} | |
} |
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 | |
Return an array of IP Addresses | |
.DESCRIPTION | |
Return an array of System.Net.IPAddress objects from a string in the form 10.10.10.0/24. | |
.EXAMPLE | |
Return an array of usable IP addresses given a subnet. | |
PS C:\> $IPs = Get-NetworkHostList 192.168.7.0/24 | |
PS C:\> $IPs[0].IPAddressToString |
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
Import-Module PModule.psm1 | |
$Credential = Get-Credential | |
$ips = Get-NetworkHostList 10.81.60.0/24 | |
$list = $ips[(70..75)] | |
$c = 0 | |
Foreach ($computer in $list) | |
{ | |
[bool]$alive = $false | |
Write-Progress -Activity "Finding available hosts" -CurrentOperation "Testing" -Status $computer -PercentComplete (($c++/$list.count)*100) |
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
Add-Type -Path C:\Temp\CSharpVerbalExpressions-master\VerbalExpressions\bin\Release\VerbalExpressions.dll | |
[psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::add("verbex", "CSharpVerbalExpressions.VerbalExpressions") | |
[verbex]::new().StartOfLine().Then("http").Maybe("s").Then("://").Maybe("www.").AnythingBut(" ").EndOfLine().Test("https://www.google.com") | |
$proto = [verbex]::new().StartOfLine().Then("http").Maybe("s").Then("://") | |
$Uri = $proto.AnythingBut(" ").EndOfLine() | |
$uri | |
$uri.Test("http://google.com") |
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
Black White Tie RunTime | |
----- ----- --- ------- | |
2853633 3762820 3260741 6 minutes, 45 seconds, 347 milliseconds |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<Types> | |
<Type> | |
<Name>System.String</Name> | |
<Members> | |
<ScriptMethod> | |
<Name>MarkdownStrong</Name> | |
<Script> | |
[OutputType([System.String])] | |
param() |
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
$help = Get-Help Get-Location | |
$help.Name.MarkdownHeader() | |
"Synopsis".MarkdownHeader(2) | |
$help.Synopsis | |
"Description".MarkdownHeader(2) |