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
Write-Host "=== PC COMPONENTS ===" -ForegroundColor Cyan; Write-Host "`nMOTHERBOARD:" -ForegroundColor Yellow; Get-CimInstance Win32_BaseBoard | Select Manufacturer, Product | Format-List; Write-Host "CPU:" -ForegroundColor Yellow; Get-CimInstance Win32_Processor | Select Name, NumberOfCores, NumberOfLogicalProcessors | Format-List; Write-Host "GPU:" -ForegroundColor Yellow; Get-CimInstance Win32_VideoController | Select Name, AdapterRAM | Format-List; Write-Host "RAM:" -ForegroundColor Yellow; Get-CimInstance Win32_PhysicalMemory | Select Manufacturer, Capacity, Speed | Format-Table; Write-Host "`nSTORAGE:" -ForegroundColor Yellow; Get-CimInstance Win32_DiskDrive | Select Model, Size | Format-Table |
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
function party { | |
if ! command -v figlet; then | |
if ! command -v brew; then | |
echo Requires figlet or brew to be installed | |
return 1 | |
fi | |
brew install figlet | |
fi | |
if [ -z "$1" ]; then |