Skip to content

Instantly share code, notes, and snippets.

View userVII's full-sized avatar
:octocat:
All the powershell

M W userVII

:octocat:
All the powershell
View GitHub Profile
@userVII
userVII / Powershell_Boilerplate.code-snippets
Last active March 20, 2019 20:23
VSCode Powershell Boilerplate Snippet json
{
"PSBoilerplate": {
"prefix": "PSBoilerplate",
"body": [
"Set-StrictMode -Version 2.0",
"Import-Module \"\" -Force",
"",
"<#",
"\t.SYNOPSIS",
"\t\t${1:Synopsis}",
@userVII
userVII / powershell.json
Last active March 20, 2019 20:26
VSCode Powershell snippet json. To use the signer snippet you will need to have a code signing certificate installed on the machine.
{
"PSSigner": {
"prefix": "PSSigner",
"body": [
"\\$filestosignpath = \"${1:FilePath}\"",
"",
"\\$certFriendlyName = \"${2:FriendlyName}\"",
"\\$cert = Get-ChildItem Cert:\\CurrentUser\\My\\\\${3:CertSigningThumbprint} -CodeSigningCert",
"\\$timeStampURL = \"http://timestamp.comodoca.com/authenticode\"",
"",