- Get the Plaster Module from Plaster Github
- Get the latest version of the VS Code Powershell Extension.
- Create a zip file of the contents of the NewModuleTemplate folder in the Examples.
- Set the TemplatePath variable in the ps1 file below to the path of the zip.
- Set a Destination directory in the ps1 below.
- Either place the code below in the Microsoft.VSCode_profile.ps1 profile or highlight and hit f8 to temporarily load it for testing.
- Start the Command Palette by pressing f1 or ctrl+shift+P
- type 'addi' and hit enter (Short for Show additional commands for powershell modules)
- Enter the information prompted.
function Invoke-Elasticsearch { | |
[CmdletBinding()] | |
Param( | |
[Uri]$Uri, | |
[Microsoft.PowerShell.Commands.WebRequestMethod]$Method = 'Get', | |
$Body = $null, | |
[PSCredential]$Credential | |
) | |
$headers = @{} |
[Console]::Beep(130, 100) | |
[Console]::Beep(262, 100) | |
[Console]::Beep(330, 100) | |
[Console]::Beep(392, 100) | |
[Console]::Beep(523, 100) | |
[Console]::Beep(660, 100) | |
[Console]::Beep(784, 300) | |
[Console]::Beep(660, 300) | |
[Console]::Beep(146, 100) | |
[Console]::Beep(262, 100) |
- Start by importing most recent version of module
- I try to fill in as much information as possible in my parameter attributes before creating my innitial markdown. Having all of these filled out helps when using PlatyPS in place of comment based help. PlatyPS still has a few issues with some attributes when using
Update-MarkdownHelp
try to fill in all attribute like the following.- [SupportsWildcards()]
- [PSDefaultValue(Help='whatever the default value is')]
- [OutputType([if there is an outputtype])]
- [CmdletBinding()]
- [Alias()]
- DefaultParameterSetName=""
- SupportsShouldProcess
function Get-WeatherEmoji | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[string[]]$Condition, | |
[Boolean]$DayTime | |
) |
# It might work in 4, but I'm not testing there. Lower you'll have to tweak code | |
#requires -Version 5.0 | |
param( | |
# Your Live ID for MSDN login | |
[Parameter(Mandatory)] | |
[PSCredential] | |
[System.Management.Automation.CredentialAttribute()] | |
$Credential, | |
# Pick a browser to use. Defaults to Firefox (which doesn't seem to require an external Driver file) |
Since I wrote this originally, Docker on Windows has become a first-class supported tool, with a Windows Installer and well-documented installation processes from docker and from Microsoft.
Today, I actually install docker using boxstarter scripts where I can Enable-WindowsOptionalFeature -Online -FeatureName containers -All
and then choco upgrade -y docker-desktop
as well as installing tooling for VS Code code --install-extension "ms-azuretools.vscode-docker"
.
I've left the rest of these notes here as a historical record, more than anything else. You should not expect the script below to work, but you certainly don
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2016-09-13 00:43:10" build="160904"> | |
<value name="StartType" type="hex" data="02"/> | |
<value name="CmdLine" type="string" data=""/> | |
<value name="StartTasksFile" type="string" data=""/> | |
<value name="StartTasksName" type="string" data="{Shells::PowerShell}"/> | |
<value name="StartFarFolders" type="hex" data="00"/> | |
<value name="StartFarEditors" type="hex" data="00"/> |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
An update by Paul Johnston ([email protected]), for a Serverless Architecture scenario. This assumes something akin to AWS Lambda + API Gateway + DynamoDB (c. 2016) Function as a Service (FaaS) solution as the basis for deployment rather than a cloud-based virtual server approach which the original paper was based upon. The FaaS solution implies each function is separately scalable and the database is inherently partitioned (assuming designed/built well).
If you agree/disagree, please fork and share with me on twitter @pauldjohnston.