Skip to content

Instantly share code, notes, and snippets.

View aaronedev's full-sized avatar
📢
working on violet void theme

Aaron aaronedev

📢
working on violet void theme
View GitHub Profile
@aaronedev
aaronedev / .gitignore
Last active September 11, 2024 17:43
gitignore starter template
# Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
.cache/
# Python
*.py[cod]
@aaronedev
aaronedev / show-drives.ps1
Last active August 14, 2024 11:05
show local drives information
# Get the list of all physical disks
$physicalDisks = Get-PhysicalDisk
# Loop through each physical disk and display its media type, drive letter, and device name
foreach ($disk in $physicalDisks) {
Write-Output "Device ID: $($disk.DeviceID)"
Write-Output "Friendly Name: $($disk.FriendlyName)"
Write-Output "Media Type: $($disk.MediaType)"
# Get the associated partitions
@aaronedev
aaronedev / zip-all.ps1
Last active August 14, 2024 11:06
zip all files in the current directory powershell
Get-ChildItem "." | ForEach-Object { Compress-Archive -path $_.Name -destinationPath "$($_.Name).zip"}