Skip to content

ScottWilliamAnderson/scripts

Repository files navigation

Utility Scripts Collection 🛠️

Last Commit GitHub Issues GitHub Pull Requests GitHub Stars GitHub Forks Repository Size

PowerShell Bash Git License: MIT

A collection of useful scripts I've created, or make use of.

📂 Available Scripts

Development Tools

  • git-config (PowerShell) - Automated Git configuration with productivity-focused defaults
. .\git-config\git-config.ps1
setup-git

Network Utilities

  • ForceConnectWiFi (PowerShell) - WiFi connection manager with retry capabilities
.\ForceConnectWiFi\ForceConnectWiFi.ps1 -networkName "Your_Network_Name" -maxRetries 5 -retryIntervalSeconds 10

Shell Customisations

  • plenty-of-info (Oh My Posh Theme) - Unintrusive theme with plenty of system, environment information
oh-my-posh init pwsh --config 'path/to/plenty-of-info.omp.json' | Invoke-Expression
  • profile.ps1 (PowerShell) - Custom PowerShell profile script with environment handling, autoupdate mechanism, and additional features. See the README for the full list of features and how to install.
# Check for required environment variables
if (-not $env:USERPROFILE) {
    Write-Host "USERPROFILE environment variable is not set. Skipping profile import."
    return
}

# Define the path to the repository's profile script here
$repoPath = "$env:USERPROFILE\path\to\scripts\"

# Check if the repository profile script exists
if (Test-Path $repoPath) {
    $profilePath = "$repoPath\powershell-profile\profile.ps1"
    Write-Host "Importing profile from $profilePath"
    . $profilePath 
} else {
    Write-Host "Repository profile script not found at $repoPath"
}

Chocolatey

choco install packages.config

AutoHotkey Scripts

# Run the AHK script directly by double-clicking or:
start "VLC Speed Controls" ".\autohotkey\vlc-speed-controls.ahk"

🚀 Getting Started

  1. Clone this repository:
git clone https://github.com/ScottWilliamAnderson/scripts.git
  1. Navigate to desired script folder:
cd scripts/<script-folder>
  1. Check individual README files for detailed usage instructions

🛠️ Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Follow the contribution guidelines
  4. Submit a pull request

🔍 Requirements

  • Windows 10/11
  • PowerShell 5.1+
  • Git 2.0+
  • [Optional] Chocolatey package manager
  • [Optional] Oh My Posh
  • [Optional] GitHub CLI
  • [Optional] AutoHotkey

📝 License

MIT © Scott Anderson 2024

About

Handy PowerShell scripts for everyday automation and system management

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published