Skip to content

Instantly share code, notes, and snippets.

View nsticco's full-sized avatar

Nate Sticco nsticco

View GitHub Profile
##########################################################################################
# Setup WSL 2
##########################################################################################
# Warning: This script needs to be triggered with Boxstarter to continue running after restart!
# Install-BoxstarterPackage -PackageName https://gist.github.com/nsticco/399c03bb2e41e5a87398f7ce1079a23c/raw
Write-Output "Enabling Windows Subsystem for Linux..."
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Write-Output "Enabling Virtual Machine Platform features for WSL 2..."
@nsticco
nsticco / bootstrap-windows-home.ps1
Last active January 21, 2023 02:40
bootstrap-windows-home
##########################################################################################
# Run home office bootstrap scripts
##########################################################################################
# Run DevOps script
iex ((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/nsticco/07203fa6f7a66d08f9bd38bca3f8a3ea/raw'))
# Run productivity apps script
iex ((New-Object System.Net.WebClient).DownloadString('https://gist.github.com/nsticco/1e8e7f6cea206e0e9a8705a3362f3108/raw'))
@nsticco
nsticco / bootstrap-windows-devops.ps1
Last active November 29, 2023 00:48
bootstrap-windows-devops
###############################################################################
# Install Windows DevOps Tools
###############################################################################
Write-Output "Installing Chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Write-Output "Installing Python 3.10 with debug symbols..."
choco install -y python310 -debug
Write-Output "Installing Java 11 LTS..."
@nsticco
nsticco / bootstrap-centos-docker.sh
Last active March 16, 2022 22:17
This script will bootstrap CentOS 8 with Docker and Podman
#!/bin/bash
# This script will bootstrap Centos 8 with Docker and Podman
###############################################################################
# Customize the script by passing values to the named parameters below, e.g.:
# ./bootstrap-centos-docker.sh --user nate
use_current_user=${use_current_user:-true}
user=${user:-ec2-user}
wsl=${wsl:-true}
keygen=${keygen:-true}
@nsticco
nsticco / bootstrap-centos-devops.sh
Last active November 10, 2022 04:42
This script will bootstrap Centos 8 with DevOps related tools
#!/bin/bash
# This script will bootstrap Centos 8 with DevOps related tools
# It must be run as root due to sudo not being present by default
##################################################################################
# Specify software versions by passing values to the named parameters below, e.g.:
# ./bootstrap-centos-devops.sh --kubectl 1.18
python=${python:-3.8.10}
nodejs=${nodejs:-16}
java=${java:-11}
@nsticco
nsticco / bootstrap-ubuntu-devops.sh
Last active August 18, 2023 13:59
Shell script to install DevOps tools for Ubuntu
#!/bin/bash
# This script will bootstrap Ubuntu with DevOps related tools
###############################################################################
# Customize the script by passing values to the named parameters below, e.g.
# ./bootstrap-ubuntu-devops.sh --kubectl 1.20.2
nodejs=${nodejs:-16}
kubectl=${kubectl:-1.26.5}
terragrunt=${terragrunt:-0.50.0}
packer=${packer:-1.9.2}
@nsticco
nsticco / settings.json
Last active July 17, 2022 21:03
VS Code settings.json
{
"[cpp]": {
"editor.defaultFormatter": "ms-vscode.cpptools",
},
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"[yaml]": {