A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
| //drop this file into your .vscode directory for local snippets | |
| { | |
| "JS Styles": { | |
| "scope": "markdown", | |
| "prefix": "style-js", | |
| "body": [ | |
| "# Javascript", | |
| "", | |
| "This project uses JavaScript with the following styles:", | |
| "", |
{your-dev-store-name}.myshopify.com and enable Admin API access scopes read_orders and write_orders.| FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 AS builder | |
| SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | |
| # add SSDT build tools | |
| RUN nuget install Microsoft.Data.Tools.Msbuild -Version 10.0.61804.210 | |
| # add SqlPackage tool | |
| ENV download_url="https://download.microsoft.com/download/6/E/4/6E406E38-0A01-4DD1-B85E-6CA7CF79C8F7/EN/x64/DacFramework.msi" | |
| RUN Invoke-WebRequest -Uri $env:download_url -OutFile DacFramework.msi ; \ | |
| Start-Process msiexec.exe -ArgumentList '/i', 'DacFramework.msi', '/quiet', '/norestart' -NoNewWindow -Wait; \ |
The following are examples of various features.
| Invoke-ExecuteNotebook -InputNotebook .\SQL-on-Docker-with-PowerShell.ipynb -Parameters @{sa_password = 'Test9999'; SQLNumber = 97} |
| #requires -module ScheduledTasks | |
| #update PowerShell help via a Scheduled Task | |
| $cred = Get-Credential "$env:USERDOMAIN\$env:USERNAME" | |
| # for Windows PowerShell | |
| # $action = New-ScheduledTaskAction -execute powershell.exe -argument '-noprofile -command "&{Update-Help -force}"' | |
| $actionparams = @{ | |
| execute = 'pwsh.exe' | |
| argument = '-nologo -noprofile -noninteractive -command "&{Update-Help -force}"' |
| <# | |
| .EXAMPLE .\Install-Com.ps1 -applicationName "test.application" ` | |
| -applicationIdentity "someuser" ` | |
| -componentBinPath "C:\where\is\your\dll\some.dll" | |
| This will install 1 COM+ component to an application | |
| If you have 1 application with 3 components | |
| - call this 3 times for each COM+ Component dll path | |
| #> |
| Get-Command # Retrieves a list of all the commands available to PowerShell | |
| # (native binaries in $env:PATH + cmdlets / functions from PowerShell modules) | |
| Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft* | |
| Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item" | |
| Get-Help # Get all help topics | |
| Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page) | |
| Get-Help -Name Get-Command # Get help for a specific PowerShell function | |
| Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command |