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
#!/usr/bin/env bash | |
set -e # halt script on error | |
echo | |
echo "------------------------------------------------------------------------------------------------------------------------" | |
if [ "$TRAVIS_PULL_REQUEST" != "false" -a "$TRAVIS_BRANCH" == "comments" ]; then | |
echo | |
echo "Building site for pull request for $TRAVIS_BRANCH..." | |
bundle exec jekyll build --config _config.yml --source . --destination ./docs |
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 Get-Sysinternals { | |
[CmdLetBinding()] | |
param( | |
[string]$InstallLocation | |
) | |
if ($InstallLocation) { | |
Get-ChildItem -Path $InstallLocation | Select-Object -Property Name,Length,LastWriteTime,@{l='Updated';e={Get-Date $_.LastWriteTime -Format d}} | |
} else { |
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
$DockerImages = @{ | |
Path = 'function:global:Update-DockerImages' | |
Value = { | |
try { | |
Invoke-Expression -Command 'docker images --format "{{.Repository}}" | Where-Object {$_ -ne "<none>"} | Foreach-Object { docker pull $_ }' | |
} | |
catch { | |
Write-Error -ErrorRecord $_ | |
} | |
} |
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
KeyInterval: 1,12 | |
Message: PracticePowerShellDaily | |
KeyInterval DecodedMessage | |
----------- -------------- | |
1,1 PkTr2sz2*cF-raz7GuD4w6U#gctK3E@Bt1aYQPic%705ZvAeW6jePRfpmI)Hy^LoowCnbJdOSi9Mber#)ieU*f2Z6MSh7VuD5a(hsv8el1oWZO7lpKyJlDz$-jI@tT23Raikq=F&wB6c%Hly | |
1,2 PTrsz*c-rz7uDw6#gtKE@t1YQic70ZveWjeRfmIHyLowCbJOS9Mer)iU*2ZMS7VD5(hv8l1WZ7lKylD$-I@T2RakqF&B6%Hy | |
1,3 Pr22*-r7G4w#gK3BtYQc%5ZeWePpmHyoonbOSMb#)U*Z6h7D5hselWZlpJl$-@t3Rkq&wc%y | |
1,4 P2scFz74wgcE@aYc%Zv6jfpHyowJd9M#)*fMSuDhsl1O7yJ$-tTaiF&c% | |
1,5 Psz-ruD#gE@YQ70eWRfHywCOSerU*MSD5v8WZKy$-T2kqB6y |
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 Send-SiteMap { | |
[CmdLetBinding()] | |
param( | |
[Parameter(Mandatory,ValueFromPipeline)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateScript({$_ -match '\/.+?.xml$'})] | |
[uri]$Uri, | |
[switch]$ShowEncodedUrl | |
) |
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 Get-Uname { | |
[CmdLetBinding( | |
DefaultParameterSetName='KernelName' | |
)] | |
param( | |
[Parameter(ParameterSetName='All')] | |
[Alias('a')] | |
[switch]$All, | |
[Parameter(ParameterSetName='KernelName')] |
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 Get-RecycleBin { | |
[CmdletBinding()] | |
param( | |
[switch]$Usage | |
) | |
begin { | |
if ($PSEdition -eq 'Core' -And !$IsWindows) { | |
'This function only works on Windows.' | Write-Warning | |
return |
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 Get-GitLog { | |
[CmdLetBinding(DefaultParameterSetName='Default')] | |
param ( | |
[Parameter(ParameterSetName='Default',ValueFromPipeline,Mandatory)] | |
[Parameter(ParameterSetName='SourceTarget',ValueFromPipeline,Mandatory)] | |
[ValidateScript({Resolve-Path -Path $_ | Test-Path})] | |
[string]$GitFolder, | |
[Parameter(ParameterSetName='SourceTarget',Mandatory)] |
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 Get-WPSite { | |
[CmdLetBinding()] | |
param( | |
[Parameter(Mandatory)] | |
[uri]$Url | |
) | |
if ($Url.AbsoluteUri -notmatch 'wp-json') { | |
[uri]$Url = $Url.AbsoluteUri,'wp-json' -join '/' | |
} |
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 Test-MarkdownFileLinks{ | |
[CmdLetBinding()] | |
param( | |
[ValidateScript({Test-Path -Path $_})] | |
[string[]]$MarkdownFile, | |
[uri[]]$SkipUri, | |
[switch]$ShowProgress | |
) | |
begin { |
OlderNewer