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]$CSFilePath) | |
Add-Type -LiteralPath $CSFilePath -IgnoreWarnings | |
[Program]::Main(@()) |
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
function Rubrumauslese () { | |
$wordApp = [Runtime.Interopservices.Marshal]::GetActiveObject('Word.Application') | |
$doc = $wordApp.ActiveDocument | |
$documentText = $doc.Content.Text -replace '\r',[System.Environment]::Newline | |
$Az = [regex]::match($documentText, '\d{1,5}/\d{2}').Value | |
$Mandant, $Gegner = ((Select-String -InputObject $documentText -Pattern '.*\./\..*').matches.value -split './.').trim() | |
[System.Runtime.Interopservices.Marshal]::ReleaseComObject($wordApp) | Out-Null |
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
# Ensure an argument is passed | |
if ($args.Count -eq 0) { | |
Write-Host "Usage: OpenURLs.ps1 '<url1> <url2> ...'" | |
exit | |
} | |
# Concatenate all arguments to handle multiple strings | |
$inputString = $args -join ' ' | |
# Split the string into individual URLs (space-separated) |
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 ([Parameter(Mandatory=$true)][string]$string) | |
$Gegner = [regex]::match($string, '(?<=\./\.\s)(.*?)(?=\s-|$)').Value | |
Write-Output $Gegner |
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]$filePath | |
) | |
$filePath = Resolve-Path -Path $filePath | |
# Ensure the file path is provided | |
if (-not (Test-Path $filePath)) { | |
Write-Error "File does not exist: $filePath" | |
exit 1 |
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
<ExternalCamera> | |
<Provider> | |
<ignore> <!-- Internal video devices to be ignored by external camera HAL --> | |
<!-- <id>0</id> --> <!-- No leading/trailing spaces --> | |
</ignore> | |
</Provider> | |
<!-- See ExternalCameraUtils.cpp for default values of Device configurations below--> | |
<Device> | |
<!-- Max JPEG buffer size in bytes--> | |
<MaxJpegBufferSize bytes="3145728"/> <!-- 3MB (~= 1080p YUV420) --> |
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
javascript:document.body.style.backgroundColor = "white"; document.querySelectorAll('*').forEach(el => { if (window.getComputedStyle(el).color) { el.style.color = "black"; }}); |
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
#!/usr/bin/pwsh | |
param ( | |
[string]$Prompt | |
) | |
if (-not $Prompt) { | |
$Prompt = "" | |
while ($true) { | |
$line = Read-Host ">" |
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]$Prompt | |
) | |
if (-not $Prompt) { | |
$Prompt = "" | |
while ($true) { | |
$line = Read-Host ">" | |
if (-not $line) { break } | |
$Prompt += $line + "`n" | |
} |
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]$Prompt | |
) | |
if (-not $Prompt) { | |
$Prompt = "" | |
while ($true) { | |
$line = Read-Host ">" | |
if (-not $line) { break } | |
$Prompt += $line + "`n" |