A small Windows-native PowerShell "boss key" terminal facade.
It is built around a mode registry so future modes can be added without changing the launcher behavior. If no mode is specified, the launcher randomly selects from the available modes.
| Write-Host -BackgroundColor Yellow -ForegroundColor Blue "Test-FromInternet executed successfully." |
| # PSReadLine configuration | |
| # - Visual styling | |
| # - Bash/zsh-style editing chords | |
| # - History-based prediction tuning | |
| # Guard: do nothing if PSReadLine is unavailable (e.g., non-interactive hosts) | |
| if (-not (Get-Module -ListAvailable -Name PSReadLine)) { return } | |
| # Base options: prompt + colours |
| Start-Transcript -Path "$env:TEMP\docker-plugin-install.log" | |
| $pluginDir = "$env:USERPROFILE\.docker\cli-plugins" | |
| New-Item -ItemType Directory -Force -Path $pluginDir | |
| try { | |
| # Compose | |
| Invoke-WebRequest -Uri "https://github.com/docker/compose/releases/latest/download/docker-compose-windows-x86_64.exe" -OutFile "$pluginDir\docker-compose.exe" | |
| # Scout |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "secondary_prompt": { | |
| "template": "❯❯ ", | |
| "foreground": "#16c60c" | |
| }, | |
| "transient_prompt": { | |
| "template": "❯ ", | |
| "foreground": "#16c60c" | |
| }, |
| param( | |
| [string]$DomainsFile = "dns.txt", | |
| [int]$TimeoutMs = 10000, | |
| [switch]$SkipDomainKeyRecords | |
| ) | |
| # Configure SSL/TLS settings | |
| [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
| [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12 -bor [System.Net.SecurityProtocolType]::Tls13 |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "secondary_prompt": { | |
| "template": "❯❯ ", | |
| "foreground": "#16c60c" | |
| }, | |
| "transient_prompt": { | |
| "template": "❯ ", | |
| "foreground": "#16c60c" | |
| }, |
| package com.example.keycloak.aws; | |
| import com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import org.keycloak.models.KeycloakSession; | |
| import software.amazon.awssdk.regions.Region; | |
| import software.amazon.awssdk.services.secretsmanager.SecretsManagerClient; | |
| import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueRequest; | |
| import software.amazon.awssdk.services.secretsmanager.model.GetSecretValueResponse; |
| $totalVcpus = 0 | |
| # Get all ECS clusters | |
| $clusters = aws ecs list-clusters --query 'clusterArns[]' --output text | |
| foreach ($cluster in $clusters -split "`t") { | |
| if ([string]::IsNullOrWhiteSpace($cluster)) { continue } | |
| # Get all services in the cluster | |
| $services = aws ecs list-services --cluster $cluster --query 'serviceArns[]' --output text |
| <# | |
| .SYNOPSIS | |
| Performs comprehensive Windows system maintenance tasks. | |
| .DESCRIPTION | |
| Runs a series of maintenance operations including Windows Defender scans, system integrity checks, | |
| disk optimization, VHDX optimization, temporary file cleanup, and system error reporting. | |
| All operations are logged to a timestamped file on the Desktop. | |
| Captures performance metrics before and after maintenance. |