Skip to content

Instantly share code, notes, and snippets.

@craigmccauley
craigmccauley / ConvertFrom-MarkdownTemplate.ps1
Last active July 17, 2023 16:13
Mermaid diagrams in ADO workaround
# This script file regenerates all the generated markdown files.
# This is needed because Azure DevOps (ADO) does not support mermaid charts
# in the preview pane. Once ADO supports this functionality, remove
# this script, delete the generated files, move and rename the template
# files, and update the links that are going to the generated files.
# Requires a directory structure like so
# |- docs
# |- scripts
# |- ConvertFrom-MarkdownTemplate.ps1
# |- templates
@kmorcinek
kmorcinek / .gitignore
Last active June 13, 2024 22:44
.gitignore for C# projects
# The following command works for downloading when using Git for Windows:
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
#
# Download this file using PowerShell v3 under Windows with the following comand:
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
#
# or wget:
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
# User-specific files