This list has been moved here: https://github.com/corbob/Reference/blob/master/PodCasts.md
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
$licenses = Import-Csv $PSScriptRoot\LicenseCounts.csv | |
[Array]::Reverse($licenses) | |
$licenses = $licenses[0] | select *available*,*delta* | |
if($licenses.'E3 Available' -ge 25) { | |
write-output "E3 greater than or equal to 25: $($licenses.'E3 Available')" | |
$E3AvailableStyle = 'good' | |
} elseif ($licenses.'E3 Available' -ge 10 -and $licenses.'E3 Available' -lt 25) { | |
$E3AvailableStyle = 'caution' | |
} 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
[CmdletBinding()] | |
param | |
( | |
[Parameter(Mandatory = $True, | |
ValueFromPipeline = $True, | |
ValueFromPipelineByPropertyName = $True)] | |
[string[]]$AssetTag | |
) | |
BEGIN { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 Check-Help { | |
[CmdletBinding()] | |
param ( | |
$Command | |
) | |
$CommandExists = $false | |
Try { | |
Get-Command $Command -ErrorAction Stop | |
$CommandExists = $true | |
} catch [System.Management.Automation.CommandNotFoundException] { |
VSCode + PSReadline - How To Start Using the Alpha PowerShell Extension for PSReadline Goodness Now
Courtesy of @scrthq from slack
Chatting on Twitter with @ctmcisco about this and figured it would be worth posting for everyone here, in case anyone else is curious!
- Go to the Branches tab on the vscode-powershell repo in GitHub: https://github.com/PowerShell/vscode-powershell/branches
- Find the
2.0.0
branch, then click the green check mark in the center of the page. - Click the blue Details link next to the AppVeyor line. This will take you to the most recent AppVeyor build of that branch.
- On the top-right of the page, just above the console output, click the Artifacts tab.
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 Add-MyPhone { | |
[CmdletBinding(SupportsShouldProcess, ConfirmImpact = 'Low')] | |
param ( | |
[Parameter(Mandatory = $true)] | |
[string] | |
$PhoneName, | |
[Parameter(Mandatory = $true)] | |
[ValidateSet('Cisco 6941', 'Cisco 7841', 'Cisco 7942')] | |
[string] | |
$Product, |
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 { | |
[CmdletBinding(SupportsShouldProcess)] | |
param() | |
$a = New-TemporaryFile | |
remove-item $a | |
} |
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 ci { | |
$lastCommand = Get-History -Count 1 | |
$newCommand = $lastCommand.CommandLine.Replace('clist','cinst').Replace('choco list','choco install') | |
Invoke-Expression $newCommand | |
} |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
opacity: 0.8, | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
OlderNewer