Skip to content

Instantly share code, notes, and snippets.

View nsticco's full-sized avatar

Nate Sticco nsticco

  • Moon Ladder Studios
  • Portland
View GitHub Profile
@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]": {
@nsticco
nsticco / bootstrap-ubuntu-devops.sh
Last active April 15, 2026 06:30
Shell script to install DevOps tools for Ubuntu
#!/usr/bin/env bash
# bash <(curl -fsSL https://gist.githubusercontent.com/nsticco/c417ce3c00a4d88ff2661e3cc60f18d4/raw/bootstrap-ubuntu-devops.sh)
# Bootstrap Ubuntu 24.04+ with DevOps tools + popular AI coding agent CLIs.
# 2026-safe practices: no apt-key, uses /etc/apt/keyrings, non-interactive gpg, pkgs.k8s.io for kubectl,
# pipx for Ansible, dedicated keyrings, and idempotent-ish installs.
set -euo pipefail
# -----------------------------------------------------------------------------
# Defaults (override via env or --param value)
@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-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-windows-devops.ps1
Last active May 26, 2025 21:17
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 python312 -debug
Write-Output "Installing Java 11 LTS..."
@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'))
##########################################################################################
# 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-game.ps1
Last active November 29, 2023 00:58
bootstrap-windows-game
##########################################################################################
# Install Game 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 NVIDIA drivers..."
choco install -y geforce-experience cuda
Write-Output "Installing game tools and requirements..."
@nsticco
nsticco / bootstrap-windows-vscode.ps1
Last active June 22, 2025 20:56
bootstrap-windows-vscode
##########################################################################################
# Setup VS Code
##########################################################################################
Write-Output "Make sure Chocolatey is installed..."
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 "Install vscode..."
choco install -y vscode dos2unix
# Write-Output "Replacing VS Code settings..."
@nsticco
nsticco / bootstrap-windows-sounds.ps1
Last active March 16, 2022 22:07
bootstrap-windows-sounds
##########################################################################################
# Disable Windows 10 or 11 System Sounds
##########################################################################################
# https://stackoverflow.com/questions/56619933/how-to-set-sound-scheme-to-no-sound-by-powershell
Write-Host "`nSetting Sound Schemes to 'No Sound' .." -foregroundcolor Gray
$Path = "HKCU:\AppEvents\Schemes"
$Keyname = "(Default)"