Skip to content

Instantly share code, notes, and snippets.

@masmarius
masmarius / scoop-install.ps1
Created March 17, 2026 15:36
Scoop - instalacion base
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install sudo git dark 7zip innounp
@masmarius
masmarius / scoop-non-essentials.ps1
Last active December 14, 2024 12:32
scoop-non-essentials
# Install packages
$packages = @(
'uutils-coreutils'
'bat'
'clink'
'diffutils'
'fd'
'findutils'
'fzf'
@masmarius
masmarius / choco.ps1
Last active December 13, 2024 02:22
choco
# https://community.chocolatey.org/
# correr en modo admin
# primero ver si existe el archivo de profile de powershell (si no, crear uno en blanco antes de correr el sig. script) o correr: notepad $profile
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
@masmarius
masmarius / install-scoop-base-admin.ps1
Last active March 15, 2026 15:28
install-scoop-base-admin
# Test if Admin
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{ Write-Host "This script requires administrative privileges."; Exit }
# Check if scoop is installed
Function Test-ScoopInstalled {
$scoopPath = "%USERPROFILE%\Scoop"
return (Test-Path $scoopPath)
}
$initiallyInstalled = Test-ScoopInstalled
@masmarius
masmarius / install-scoop-essentials.ps1
Last active December 13, 2024 00:12
install-scoop-essentials
# Check if scoop is installed
Function Test-ScoopInstalled {
$scoopPath = "%USERPROFILE%\Scoop"
return (Test-Path $scoopPath)
}
$initiallyInstalled = Test-ScoopInstalled
if (-NOT $initiallyInstalled) {
# Install aria2c for multi-connection downloads
scoop install git
@masmarius
masmarius / install-scoop-base-user.ps1
Last active December 12, 2024 22:37
install-scoop-base-user
# Check if scoop is installed
Function Test-ScoopInstalled {
$scoopPath = "%USERPROFILE%\Scoop"
return (Test-Path $scoopPath)
}
$initiallyInstalled = Test-ScoopInstalled
# Install scoop if not installed
if (-NOT $initiallyInstalled) {
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
# install, winget needed (scoop?)
winget install --id Microsoft.Powershell --source winget
# upgrade
winget upgrade --id Microsoft.Powershell
DISM.exe /Online /Cleanup-image /Restorehealth
SFC /SCANNOW
@masmarius
masmarius / cromite-win #scoop #win
Created September 13, 2024 16:55
Cromite para windows
scoop bucket add crisipa/scoopbucket https://github.com/crisipa/scoopbucket
scoop install cromite
@masmarius
masmarius / emacs-windows
Last active September 13, 2024 16:53
Emacs windows #scoop #win11
scoop install ripgrep findutils coreutils grep extras/vcredist2022 emacs # windows essentials
scoop uninstall vcredist2022 # cleaning