Skip to content

Instantly share code, notes, and snippets.

@KZeronimo
KZeronimo / package-boostrap-osx.sh
Last active December 11, 2023 15:16
Brew based Boxstarter Script - Bootstrap - OS X
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
function finish {
rm -rf "$targetPath/PostBuildContent-master"
rm "$HOME/PostBuildContent.zip"
}
trap finish EXIT
@KZeronimo
KZeronimo / choco.log
Created March 15, 2023 13:36
Boxstarter Issue Choco Log
2023-03-15 09:28:47,917 8492 [DEBUG] - XmlConfiguration is now operational
2023-03-15 09:28:48,012 8492 [DEBUG] - Adding new type 'WebPiService' for type 'ISourceRunner' from assembly 'choco'
2023-03-15 09:28:48,034 8492 [DEBUG] - Adding new type 'WindowsFeatureService' for type 'ISourceRunner' from assembly 'choco'
2023-03-15 09:28:48,034 8492 [DEBUG] - Adding new type 'CygwinService' for type 'ISourceRunner' from assembly 'choco'
2023-03-15 09:28:48,034 8492 [DEBUG] - Adding new type 'PythonService' for type 'ISourceRunner' from assembly 'choco'
2023-03-15 09:28:48,034 8492 [DEBUG] - Adding new type 'RubyGemsService' for type 'ISourceRunner' from assembly 'choco'
2023-03-15 09:28:48,034 8492 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-03-15 09:28:48,309 8492 [DEBUG] - Registering new command 'templates' in assembly 'choco'
2023-03-15 09:28:48,324 8492 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-03-15 09:28:48,324 8492 [DEBUG] -
@KZeronimo
KZeronimo / package-bootstrap-choco.ps1
Last active March 20, 2023 01:09
Chocolatey based Boxstarter Script - Bootstrap Metal - Win 10,11
# Set TLS 1.2
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
# Import Choco Install-*
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force
# Set up choco cache location to work around Boxstarter Issue 241
$chocoCache = (Join-Path ([Environment]::GetEnvironmentVariable("LocalAppData")) "Temp\ChocoCache")
New-Item -Path $chocoCache -ItemType directory -Force
# Remove *.tmp from the choco cache directory so the ad-hoc package installs using Install-ChocolateyPackage behave idempotently - this is a hack
@KZeronimo
KZeronimo / install-package-raspi-full.ps1
Last active March 17, 2023 14:09
Install Package Raspi Full via Boxstarter
$(. Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); $?) -and $(Get-Boxstarter -Force | Out-Host; $?) -and $(Install-BoxstarterPackage -PackageName 'hhttps://gist.githubusercontent.com/KZeronimo/724a4fc6f01c2e4148dc79fe21e85ed0/raw/package-raspi-full.ps1' -DisableReboots | Out-Host; $?)
@KZeronimo
KZeronimo / install-package-full.ps1
Last active March 11, 2023 17:12
Install Package Full via Boxstarter
$(. Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); $?) -and $(Get-Boxstarter -Force | Out-Host; $?) -and $(Install-BoxstarterPackage -PackageName "https://gist.githubusercontent.com/KZeronimo/3dd360bece3341a322335469a0a813ea/raw/package-full.ps1" -DisableReboots | Out-Host; $?)
@KZeronimo
KZeronimo / install-package-bootstrap.ps1
Last active March 6, 2023 19:47
Install Package Bootstrap via Boxstarter
$(. Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://boxstarter.org/bootstrapper.ps1')); $?) -and $(Get-Boxstarter -Force | Out-Host; $?) -and $(Install-BoxstarterPackage -PackageName "https://gist.githubusercontent.com/KZeronimo/e083537a255355b6090ae71a61cd0820/raw/package-bootstrap.ps1" -DisableReboots | Out-Host; $?)
@KZeronimo
KZeronimo / package-raspi-full.ps1
Last active March 20, 2023 01:10
Winget based Boxstarter Script - Raspi Full - Windows 10/11
# Set TLS 1.2
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
# Import Choco Install-*
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force
# Set up choco cache location to work around Boxstarter Issue 241
$chocoCache = (Join-Path ([Environment]::GetEnvironmentVariable("LocalAppData")) "Temp\ChocoCache")
New-Item -Path $chocoCache -ItemType directory -Force
# Remove *.tmp from the choco cache directory so the ad-hoc package installs using Install-ChocolateyPackage behave idempotently - this is a hack
@KZeronimo
KZeronimo / package-bootstrap.ps1
Last active March 20, 2023 00:02
Winget based Boxstarter Script - Bootstrap - Win 10,11
# Set TLS 1.2
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
# Import Choco Install-*
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force
# Set up choco cache location to work around Boxstarter Issue 241
$chocoCache = (Join-Path ([Environment]::GetEnvironmentVariable("LocalAppData")) "Temp\ChocoCache")
New-Item -Path $chocoCache -ItemType directory -Force
# Remove *.tmp from the choco cache directory so the ad-hoc package installs using Install-ChocolateyPackage behave idempotently - this is a hack
@KZeronimo
KZeronimo / cleanvs.ps1
Created September 29, 2017 13:12
Clean Visual Studio Build Artifacts
gci -inc bin,obj,packages -rec | rm -rec -force
@KZeronimo
KZeronimo / package-full.ps1
Last active August 19, 2023 17:19
Winget based Boxstarter Script - Full - Windows 10/11
# Set TLS 1.2
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
# Import Choco Install-*
Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force
# Set up choco cache location to work around Boxstarter Issue 241
$chocoCache = (Join-Path ([Environment]::GetEnvironmentVariable("LocalAppData")) "Temp\ChocoCache")
New-Item -Path $chocoCache -ItemType directory -Force
# Remove *.tmp from the choco cache directory so the ad-hoc package installs using Install-ChocolateyPackage behave idempotently - this is a hack