Skip to content

Instantly share code, notes, and snippets.

@gowon
gowon / _unigetui_readme.md
Created August 24, 2026 05:20
UniGetUI bulk installation

UniGetUI is a Windows-first, intuitive GUI for the most common CLI package managers on Windows 10 and 11. Cross-platform builds are also available for macOS and Linux, with support for package managers including WinGet, Scoop, Chocolatey, Homebrew, APT, DNF, Pacman, Flatpak, Snap, pip, npm, Bun, .NET Tool, PowerShell Gallery, and more.

winget install --exact --id Devolutions.UniGetUI --source winget
unigetui bundle install "windows.bundle.json" --interactive false --elevated true

References:

@gowon
gowon / readme.md
Created October 3, 2025 07:00
Chocolatey - Upgrade All Shortcut

Instructions

  1. Use the following as the file path:

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "choco upgrade all -y; pause"

  2. Enable Run as Administrator

@gowon
gowon / vs2022extensions.vsconfig
Last active April 19, 2024 19:02
.vsconfig to installed preferred VS 2022 extensions
{
"version": "1.0",
"components": [],
"extensions": [
"https://marketplace.visualstudio.com/items?itemName=ErikEJ.EFCorePowerTools",
"https://marketplace.visualstudio.com/items?itemName=FireGiant.FireGiantHeatWaveDev17",
"https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage2022",
"https://marketplace.visualstudio.com/items?itemName=MadsKristensen.AddNewFile64",
"https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CommandTaskRunner64",
"https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileIcons",
@gowon
gowon / index.html
Created November 5, 2021 04:47
SVG Scalable Text - IE
<link href='https://fonts.googleapis.com/css?family=Quicksand:300,400,700|Raleway:400,100,200,300,500,600,700,800,900|Playfair+Display+SC:400italic,700italic,400,700,900' rel='stylesheet' type='text/css'>
<div class="wrapper">
<div class="svg-wrapper"><svg><text class="upper sans">You have to</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans bold">say no</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans">to a lot of</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper serif">good things</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans">in order to be able to</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans bold">say yes</text></svg></div>
<div class="svg-wrapper"><svg><text class="upper sans">to a lot of</text></svg></div>
@gowon
gowon / prepare-commit-msg
Last active March 26, 2024 13:15
Prepend git commit message with issue ticket number(s), derived from branch name, using Powershell
#!/bin/sh
echo
exec pwsh -NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ".\.git\hooks\prepare-commit-msg.ps1 '$1'"
exit
@gowon
gowon / convert-audio.ps1
Last active June 28, 2020 19:32
Bulk Audio Conversion using ffmpeg
Get-ChildItem *.flac | ForEach-Object { Invoke-Expression -Command "ffmpeg -i `"$($_.FullName)`" -codec:a libmp3lame -qscale:a 0 `"$($_.Name.Substring(0,$_.Name.Length - $_.Extension.Length)).mp3`"" }
@gowon
gowon / readme.md
Last active January 9, 2019 16:59
US Zip Code Regex Validation

Strict

^(\d{5})(?:\-?(\d{4}))?$

StrictFive

^(\d{5})(?:\-\d{0,3}|\-?(\d{4}))?$
@gowon
gowon / Microsoft.PowerShell_profile.ps1
Last active February 20, 2025 08:08
Custom PowerShell Profile
# ref: https://github.com/PowerShell/PSReadLine
# ref: https://github.com/devblackops/Terminal-Icons
Import-Module -Name PSReadLine,Terminal-Icons
# Add Predictive IntelliSense using prompt history in a list view
# ref: https://www.hanselman.com/blog/adding-predictive-intellisense-to-my-windows-terminal-powershell-prompt-with-psreadline
# ref: https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense/
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows
@gowon
gowon / get-wifi-password.ps1
Last active May 18, 2019 05:15
Windows 10 get network password
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ SSID=$name;SECURITY_KEY=$pass }} | Format-Table -AutoSize
@gowon
gowon / getBlockLists.sh
Created August 12, 2018 15:42 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'