Skip to content

Instantly share code, notes, and snippets.

View omidnw's full-sized avatar
🙃
Anime

Omid Reza Keshtkar omidnw

🙃
Anime
View GitHub Profile
@omidnw
omidnw / local-ip.ps1
Created January 4, 2026 11:30
Get Local IPv4 Address (PowerShell), A minimal PowerShell script that extracts and displays the primary local IPv4 address using ipconfig, with basic error handling and a clean console output.
Clear-Host
try {
$ip = (ipconfig |
Select-String "IPv4" |
Select-Object -First 1 |
ForEach-Object { (($_.Line -split ":")[1]).Trim() })
Write-Host "Local IP: $ip"
}
{
// workbench config
"workbench.iconTheme": "material-icon-theme",
// editor config
"editor.tabSize": 2,
"editor.tabCompletion": "on",
"editor.fontSize": 20,
"editor.fontLigatures": true,
"editor.fontFamily": "'FiraCode Nerd Font Mono', Consolas, 'Courier New', monospace",
"editor.suggestSelection": "first",