This file contains hidden or 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
#!/bin/bash | |
# Function for printing colored section headings | |
print_colored_section_header() { | |
echo | |
echo -e "\e[1;34m#############################################\e[0m" | |
echo | |
echo -e "\e[1;34m $1\e[0m" | |
echo | |
echo -e "\e[1;34m#############################################\e[0m" |
This file contains hidden or 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
#!/bin/bash | |
# Function for executing commands with optional sudo | |
run_command() { | |
if [ -x "$(command -v sudo)" ]; then | |
sudo "$@" | |
else | |
"$@" | |
fi | |
} |
This file contains hidden or 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
<# : batch script | |
@echo off | |
cd /D "%~dp0" | |
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
setlocal | |
cd %~dp0 | |
powershell -executionpolicy remotesigned -Command "Invoke-Expression $([System.IO.File]::ReadAllText('%~f0'))" | |
endlocal | |
goto:eof | |
#> |
This file contains hidden or 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
$ProgressPreference = 'SilentlyContinue' | |
$host.ui.RawUI.WindowTitle = "Windows - Reparatur-Tool" | |
[Console]::WindowWidth=101; | |
[Console]::Windowheight=30; | |
[Console]::setBufferSize(101,30) #width,height | |
$Display = { | |
Write-Host " __ __.__ __________ | |
/ \ / \__| ____\______ \ ____ ______ | |
\ \/\/ / |/ \| _// __ \\____ \ |
This file contains hidden or 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
$ProgressPreference = 'SilentlyContinue' | |
$host.ui.RawUI.WindowTitle = "Windows Package Manager - Installer" | |
[Console]::WindowWidth=103; | |
[Console]::Windowheight=30; | |
[Console]::setBufferSize(103,30) #width,height | |
$End = { | |
Write-Host " ║ ║" -ForegroundColor Yellow | |
Write-Host " ╠═══════════════════════════════════════════════════════════════════════════════════════════════╣" -ForegroundColor Yellow | |
Write-Host " ║ " -ForegroundColor Yellow -NoNewline |
This file contains hidden or 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
$host.ui.RawUI.WindowTitle = "Unattended Software Deployment" | |
[Console]::WindowWidth=102; | |
[Console]::Windowheight=30; | |
[Console]::setBufferSize(102,30) #width,height | |
$Display = { | |
Write-Host " ____ ___ __ __ .___ .___ | |
| | \____ _____ _/ |__/ |_ ____ ____ __| _/____ __| _/ | |
| | / \\__ \\ __\ __\/ __ \ / \ / __ |/ __ \ / __ | | |
| | / | \/ __ \| | | | \ ___/| | \/ /_/ \ ___// /_/ | | |
|______/|___| (____ /__| |__| \___ >___| /\____ |\___ >____ | |