This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assumes all files in current working directory are images | |
mkdir converted | |
magick mogrify -background "transparent" -bordercolor "#a4a4a4" -compose "Copy" -border 1 -path "converted" * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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("---"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var interval = setInterval(function() { | |
var anchor = document.querySelector(".diff-expander"); | |
anchor ? anchor.click() : clearInterval(interval); | |
}, 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[string]$old, | |
[string]$new | |
) | |
$domain = "configit.atlassian.net" | |
$infile = ".\entities.xml" | |
$outfile = ".\new-entities.xml" |