Skip to content

Instantly share code, notes, and snippets.

@drarsalan
drarsalan / nerd-font-installer.py
Created October 29, 2025 18:42
Nerd Font Installer. Python Script with GUI...
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Nerd Fonts GUI Installer (Windows) — installs ALL faces in one shot.
Changes from previous version:
- Ensures ALL .ttf/.otf files (including those in subfolders) are staged into a
flat temp folder, then performs a SINGLE PowerShell Fonts CopyHere call:
$fonts.CopyHere($srcNS.Items(), 16)
@drarsalan
drarsalan / SetupWorkstation.ps1
Last active November 1, 2025 00:13
PowerShell Script to setup a dotnet, python, dev ops workstation...
<#
install-dev-tools.ps1
- Installs a .NET + Python + DevOps workstation via Chocolatey
- Continues on errors (per-package)
- Logs & summarizes results
- Skips packages already installed
- Provides an easy one-liner to retry failures
#>
# ---------------------------
@drarsalan
drarsalan / $profile
Last active November 1, 2025 00:15
$profile file for powerhsell with PSReadLine and oh-my-posh...
Import-Module -Name Terminal-Icons
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
oh-my-posh init pwsh --config 'C:\Users\Arsalan Shahid\AppData\Local\Programs\oh-my-posh\themes\montys.omp.json' | Invoke-Expression
@drarsalan
drarsalan / CreatePostgresContainer.ps1
Last active October 31, 2025 14:25
Create PostGres Sever docker
docker volume create pc1_postgres_data
docker run --name pc1_postgres -e POSTGRES_PASSWORD=admin -d -p 5432:5432 -v pc1_postgres_data:/var/lib/postgresql/data postgres
postgres/admin
docker run --name pgadmin -p 8080:80 -e "PGADMIN_DEFAULT_EMAIL=your_email@example.com" -e "PGADMIN_DEFAULT_PASSWORD=your_secure_password" -d dpage/pgadmin4