Skip to content

Instantly share code, notes, and snippets.

View maurodx's full-sized avatar

Mauro Destro maurodx

View GitHub Profile
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
@jhx0
jhx0 / power.ps1
Created August 28, 2023 15:07
Tuning power settings via powercfg on Windows
# 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
@bluntspoon
bluntspoon / DevMachineSetup_WinGet.ps1
Last active March 12, 2024 10:58
Basic Dev Machine Setup using WinGet
#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
}
@nandordudas
nandordudas / Advanced-setup.md
Last active July 5, 2024 17:14
Setup WSL 2 on Windows 11

TL;DR

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
@iogeek
iogeek / setupPC.ps1
Last active April 11, 2024 21:49
setup Windows dev PC
# 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
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active July 17, 2024 14:24
Packages to install via scoop, winget, choco, and other tools...
<#
.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
@matthiaskern
matthiaskern / feedly_export_saved_for_later.js
Last active June 30, 2017 02:27
Small script to fetch saved for later items from feedly as JSON. Based on https://gist.github.com/bradcrawford/7288411
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();
}
@sbussinger
sbussinger / boxstarter.desktop
Last active March 15, 2016 20:48
Boxstarter script for setting up Desktop development workstation
# 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"
@JasonMore
JasonMore / backbone.htm
Created April 2, 2012 17:58
Backbone.js TODO app implemented in knockout.js
<!DOCTYPE html>
<html lang="en">
<head>
<title>Backbone.js Todos</title>
<link rel="stylesheet" href="todos.css"/>
</head>
<body>

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: