Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
###############################################################################
# Customize the script by passing values to the named parameters below, e.g.
# ./bootstrap-mac-devops.sh --nodejs 12
nodejs=${nodejs:-16}
keygen=${keygen:-true}
java=${java:-11}
while [ $# -gt 0 ]; do
@nsticco
nsticco / windows-boost-python
Last active February 9, 2023 21:57
Install Boost and Python on Windows
# iex ((New-Object System.Net.WebClient).DownloadString('https://gist.githubusercontent.com/nsticco/fc0b10b6981618bfe0962e0696f14eba/raw'))
# Variables
$boost_version = "1.81.0"
$boost_underscores = "1_81_0"
$boost_install_dir = "D:\libraries"
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'))
@nsticco
nsticco / bootstrap-ubuntu-meta.sh
Last active September 6, 2022 23:30
Ubuntu bootstrap script that calls other scripts
# This script runs a series of other Ubuntu bootstrap gist scripts
# DevOps script
bash <(curl -sL https://gist.github.com/nsticco/c417ce3c00a4d88ff2661e3cc60f18d4/raw)
# Docker script
bash <(curl -sL https://gist.github.com/nsticco/10abb16a9a708788406c65e0b71cb170/raw)
@nsticco
nsticco / windows-terminal-settings.json
Last active January 19, 2023 19:04
windows-terminal-settings.json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command": "paste",
"keys": "ctrl+v"
},
{
#!/bin/bash
# This script will bootstrap Ubuntu with Docker
###############################################################################
# Customize the script by passing values to the named parameters below, e.g.
# ./bootstrap-ubuntu-docker.sh --user nate
use_current_user=${use_current_user:-true}
user=${user:-ubuntu}
wsl=${wsl:-false}
keygen=${keygen:-true}
##########################################################################################
# Setup VS Code
##########################################################################################
echo "Installing VS Code..."
sudo snap install --classic code
# Disabled in favor of VS Code settings sync
# echo "Replacing VS Code settings..."
# curl -L "https://gist.github.com/nsticco/1b32f3b0f630df637436e407a8ba626d/raw" -o ~/.config/Code/User/settings.json
@nsticco
nsticco / bootstrap-windows-productivity.ps1
Last active March 15, 2023 17:22
bootstrap-windows-productivity - includes Calibre and Libre Office
###############################################################################
# Install Windows Productivity Applications
###############################################################################
Write-Output "Installing productivity tools..."
choco install -y slack zoom googlechrome firefox discord
Write-Output "Installing security tools..."
choco install -y cryptomator nordvpn
Write-Output "Installing storage tools..."
@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)"
@nsticco
nsticco / bootstrap-windows-vscode.ps1
Last active December 21, 2023 20:43
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
# Write-Output "Replacing VS Code settings..."
@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..."