Modified from https://github.com/sindresorhus/github-markdown-css.
Edited to work inside VSCode Markdown preview.
To use GitHub style markdown preview in VSCode, add the following to your local or workspace preferences.
| [CmdletBinding()] | |
| param ( | |
| [string]$SeqVersion, | |
| [string]$SeqInstanceName, | |
| [string]$SeqPort | |
| ) | |
| $installBasePath = "C:\Install\" | |
| $seqDataPath = "C:\ProgramData\Seq" |
| function Remove-GitMergedBranches { | |
| Write-Output "Fetching latest" | |
| git fetch origin --prune | |
| $currentBranch = & git rev-parse --abbrev-ref HEAD | |
| if ($currentBranch -ne "master") { | |
| Write-Output "Changing branch to master" | |
| git checkout master | |
| } |
| <# | |
| .SYNOPSIS | |
| This Azure Automation runbook automates the scheduled shutdown and startup of virtual machines in an Azure subscription. | |
| .DESCRIPTION | |
| The runbook implements a solution for scheduled power management of Azure virtual machines in combination with tags | |
| on virtual machines or resource groups which define a shutdown schedule. Each time it runs, the runbook looks for all | |
| virtual machines or resource groups with a tag named "AutoShutdownSchedule" having a value defining the schedule, | |
| e.g. "10PM -> 6AM". It then checks the current time against each schedule entry, ensuring that VMs with tags or in tagged groups | |
| are shut down or started to conform to the defined schedule. |
| public static class NodaClock | |
| { | |
| private static readonly AsyncLocal<IClock> ClockThreadSafe; | |
| public static void ChangeClock(IClock clock) | |
| { | |
| ClockThreadSafe.Value = clock; | |
| } | |
| static ApiClock() |
Add PowerShell alias to your profile.
function Get-Git { & git $args }
New-Alias g Get-Git -Force -Option AllScope
This will alias g to git, however you forgo the tab expansion.
posh-git shell is replacing default TabExpansion function with own implementation.
| kbd | |
| { | |
| font-size: 15px; | |
| line-height: 1.4; | |
| display: inline-block; | |
| margin: 0 .1em; | |
| padding: .1em .6em; |
| span.emoji | |
| { | |
| display: -moz-inline-box; | |
| display: inline-block; | |
| width: 1em; | |
| height: 1em; | |
| vertical-align: baseline; | |
| text-indent: -9999px; |
| $.expr[':'].external = function(obj) { | |
| return !obj.href.match(/^mailto\:/) && (obj.hostname != location.hostname); | |
| }; | |
| $('a:external').attr({ | |
| target: "_blank", | |
| title: "Opens in a new window" | |
| }); |
| DECLARE @schema VARCHAR(128) | |
| SET @schema = 'dbo' --< change this | |
| /* Drop all Foreign Key constraints */ | |
| DECLARE @name VARCHAR(128) | |
| DECLARE @constraint VARCHAR(254) | |
| DECLARE @SQL VARCHAR(254) | |
| SELECT @name = (SELECT TOP 1 TABLE_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE CONSTRAINT_SCHEMA=@schema AND CONSTRAINT_CATALOG=DB_NAME() AND CONSTRAINT_TYPE = 'FOREIGN KEY' ORDER BY TABLE_NAME) |