Skip to content

Instantly share code, notes, and snippets.

View crutkas's full-sized avatar

Clint Rutkas crutkas

View GitHub Profile
@crutkas
crutkas / readme.md
Last active February 2, 2024 06:55
WinGet Config
@crutkas
crutkas / WSL_SetupScript.ps1
Last active May 30, 2022 17:41
WSL_SetupScript.ps1
# Things to note
# Single script, will survive reboot
# Script needs to be run under admin (will auto correct if not)
# Script needs internet access to download files
# Script assumes WinGet is installed
#
# Why aren't we using wsl --install -d Ubuntu
# Well, we want to WSL.exe install a bunch of stuff
# Ubuntu2004 install --root can't be done above so it requires user interaction
# if you don't need to install items on linux without setting root, this script becomes much simplier
@crutkas
crutkas / Cinnamon_SetupScript.ps1
Last active April 29, 2021 03:27
Setup script for Cinnamon
# Things to note
# Script needs internet access to download files
# Script assumes WinGet is installed
# Script will remotely grab the json fragments and import for winget
# Script assumes winget's setting has this line in it: experimentalFeatures": { "import": true },
$mypath = $MyInvocation.MyCommand.Path
$isAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
# Restarting as Admin
@crutkas
crutkas / InstallWinGet.ps1
Last active November 20, 2023 04:13
InstallWinGet PowerShell
function InstallWinGet()
{
$hasPackageManager = Get-AppPackage -name "Microsoft.DesktopAppInstaller"
if(!$hasPackageManager)
{
$releases_url = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$releases = Invoke-RestMethod -uri "$($releases_url)"