Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iex "& {$(irm get.scoop.sh)} -ScoopDir ${Env:USERPROFILE}\Scoop"
scoop install git; scoop bucket add extras; scoop bucket add nerd-fonts
scoop install --global JetBrains-Mono Maple-Mono Maple-Mono-NF Meslo-NF-Mono Monaspace
#
winget install Docker.DockerDesktop
winget install JanDeDobbeleer.OhMyPosh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winget source reset --force | |
winget source update | |
winget install Microsoft.VisualStudioCode --silent --accept-package-agreements --accept-source-agreements | |
winget install Docker.DockerDesktop --silent --accept-package-agreements --accept-source-agreements | |
winget install Microsoft.VisualStudio.2022.Enterprise --silent --accept-package-agreements --accept-source-agreements | |
winget install GitExtensionsTeam.GitExtensions --silent --accept-package-agreements --accept-source-agreements | |
winget install Microsoft.PowerShell --silent --accept-package-agreements --accept-source-agreements | |
winget install Microsoft.AzureCLI --silent --accept-package-agreements --accept-source-agreements | |
winget install JanDeDobbeleer.OhMyPosh --silent --accept-package-agreements --accept-source-agreements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set High Performance profile | |
powercfg.exe /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c | |
# Disable monitor timeout | |
powercfg.exe /change monitor-timeout-ac 0 | |
powercfg.exe /change monitor-timeout-dc 0 | |
# Disable standby timeout | |
powercfg.exe /change standby-timeout-ac 0 | |
powercfg.exe /change standby-timeout-dc 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install WinGet | |
Write-Host "-=Installing WinGet=-" -ForegroundColor Black -BackgroundColor White | |
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller' | |
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") { | |
Add-AppxPackage -Path 'https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle' | |
Write-Host "WinGet is installed" -ForegroundColor Green | |
} | |
else { | |
Write-Host "WinGet is already installed" -ForegroundColor Green | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIT License | |
# Copyright (c) 2022 robbieh | |
# See https://mit-license.org/ for details about MIT License | |
# Prep WSL | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
### Make it mine | |
# Timeout / battery prefs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Script to Initialize my custom powershell setup. | |
.DESCRIPTION | |
Script uses scoop | |
.NOTES | |
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
Author: Mike Pruett | |
Date: October 18th, 2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!(window.jQuery)) { | |
var script = document.createElement("script"); | |
script.setAttribute("src", "https://code.jquery.com/jquery-2.2.1.min.js"); | |
script.setAttribute("type", "text/javascript"); | |
script.onload = logItems; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
} else { | |
logItems(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configure basic system settings | |
Update-ExecutionPolicy Unrestricted | |
Set-ExplorerOptions -showFileExtensions | |
Enable-RemoteDesktop | |
# Fix library locations | |
Move-LibraryDirectory "Personal" "$env:UserProfile\OneDrive\Documents" | |
Move-LibraryDirectory "My Music" "$env:UserProfile\OneDrive\Music" | |
Move-LibraryDirectory "My Pictures" "$env:UserProfile\OneDrive\Pictures" | |
Move-LibraryDirectory "My Video" "$env:UserProfile\OneDrive\Videos" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Backbone.js Todos</title> | |
<link rel="stylesheet" href="todos.css"/> | |
</head> | |
<body> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
NewerOlder