Skip to content

Instantly share code, notes, and snippets.

View mfaux's full-sized avatar

Michael Faux mfaux

View GitHub Profile
@mfaux
mfaux / add border to images
Created August 5, 2022 11:33
add border to images
# assumes all files in current working directory are images
mkdir converted
magick mogrify -background "transparent" -bordercolor "#a4a4a4" -compose "Copy" -border 1 -path "converted" *
@mfaux
mfaux / add-frontmatter.ps1
Created January 24, 2020 08:25
Prepends markdown files with frontmatter for docusaurus
Get-ChildItem -recurse -Filter *.md | `
Foreach-Object{
$content = Get-Content $_.FullName
$frontmatter = New-Object -TypeName "System.Text.StringBuilder"
[void]$frontmatter.AppendLine("---");
[void]$frontmatter.AppendLine( "id: $($_.basename.ToLower()) ");
[void]$frontmatter.AppendLine("---");
var interval = setInterval(function() {
var anchor = document.querySelector(".diff-expander");
anchor ? anchor.click() : clearInterval(interval);
}, 100);
param(
[string]$old,
[string]$new
)
$domain = "configit.atlassian.net"
$infile = ".\entities.xml"
$outfile = ".\new-entities.xml"