Skip to content

Instantly share code, notes, and snippets.

View williamhammond's full-sized avatar

William Hammond williamhammond

View GitHub Profile
@williamhammond
williamhammond / specs.ps1
Created June 1, 2025 21:57
Get PC Specs
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
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