git filter-branch --tree-filter "find . -type f -exec sed -i -e 's/originalpassword/newpassword/g' {} \;"
- Source:
| filter translateBoolToString { | |
| $result = "deaktiviert" | |
| if ($_) { | |
| $result = "aktiviert" | |
| } | |
| return $result | |
| } |
| function Invoke-LaTeXCommand { | |
| [CmdletBinding(SupportsShouldProcess = $true)] | |
| [Alias('latexcmd')] | |
| param ( | |
| # Interpreter to process the .tex file with. | |
| [Parameter(Position = 0, Mandatory = $true, ParameterSetName = 'Execute Command')] | |
| [ValidateSet('xelatex', 'pdflatex', 'latexmk')] | |
| [String] | |
| $Interpreter, |
| function Test-ShouldProcess { | |
| [CmdletBinding(SupportsShouldProcess, ConfirmImpact='Medium')] | |
| param() | |
| # Preparation | |
| if ($PSCmdlet.ShouldProcess("ShouldProcess?")) { | |
| # Critical code | |
| } |
git filter-branch --tree-filter "find . -type f -exec sed -i -e 's/originalpassword/newpassword/g' {} \;"
Pandoc has a flag, that allows to extract media, that is embedded in a docx Document.
pandoc --extract-media --to 'markdown_strict+pipe_tables' --atx-headers ./static input.docx -so output.md
file.docx/word/media/C:\ProgramData\chocolatey\lib.chocolateyInstall.ps1Some observations about chocolateyInstall.ps1:
C:\ProgramData\chocolatey\lib\<packageName>\tools| "background.useDefault": false, | |
| "background.customImages": [ | |
| "https://raw.githubusercontent.com/rwu823/vscode-bg-img/master/images/17/baby-black.png", | |
| "https://raw.githubusercontent.com/rwu823/vscode-bg-img/master/images/17/baby-white.png", | |
| "/your/patch/image" | |
| ], | |
| "background.style": { | |
| "background-position": "95% 95%", | |
| "background-size": "20%", | |
| "opacity": 0.8 |