Skip to content

Instantly share code, notes, and snippets.

@delabrcd
delabrcd / bootstrap-init.ps1
Last active May 7, 2026 16:14
Machine bootstrap init for Windows — installs prereqs, Bitwarden login, SSH key, clones machine-setup
#Requires -Version 5.1
<#
.SYNOPSIS
Self-contained machine bootstrap for Windows.
Installs missing prerequisites, walks through Bitwarden login,
loads the personal SSH key into the ssh-agent service, clones
the private machine-setup repo, and runs bootstrap.ps1.
Work-identity setup (work SSH key, work git identity) is handled
by the private bootstrap.ps1 — keeping it out of this public gist.
@delabrcd
delabrcd / bootstrap-init.sh
Last active May 7, 2026 17:36
Machine bootstrap init — retrieves SSH key from Bitwarden and runs machine-setup
#!/usr/bin/env bash
# Self-contained machine bootstrap for Linux (Ubuntu, Fedora, Arch).
# Installs any missing prerequisites, walks through Bitwarden login,
# loads SSH key into agent memory (never written to disk), then clones
# and runs the private machine-setup repo.
#
# One-liner:
# curl -fsSL https://gist.githubusercontent.com/delabrcd/a4f3b822d79a362b878209742b286b0a/raw/bootstrap-init.sh \
# -o /tmp/bs.sh && bash /tmp/bs.sh
@delabrcd
delabrcd / bootstrap-git.sh
Last active September 9, 2025 15:02
setup git on a fresh install to sign commits with ssh keys
#!/usr/bin/env bash
#
# bootstrap-git.sh
# Setup Git with user info and SSH commit signing
#
set -euo pipefail
# --- Prompt for name and email ---
read -rp "Enter your Git user name: " GIT_NAME