This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# --- Config --- | |
GIT_NAME="Casey Frese" | |
GIT_EMAIL="caseyfrese@yahoo.com" | |
# --- Update system --- | |
echo "Updating system packages..." | |
sudo apt-get update -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Pi Nuke Menu v1 | |
# - Provides targeted cleanup options for a Pi that was bootstrapped with devhub/netdata/docker/fail2ban | |
# - Extremely careful: destructive actions require typing YES | |
# - Usage: sudo bash pi-nuke.sh | |
# ----------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Pi Post-Checks Script | |
# Verifies everything after bootstrap | |
echo "=== System Info ===" | |
uname -a | |
lsb_release -a | |
echo "=== User & SSH ===" | |
whoami |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Pi Bootstrap v1 — Future-proofed, secure, modular | |
# Usage (after flashing Raspberry Pi OS Lite and SSHing in): | |
# bash <(curl -fsSL RAW_URL) | |
# | |
# IMPORTANT: run as the user you want to bootstrap (or sudo). This script | |
# creates a "casey" user if it doesn't exist; you can change USERNAME below. | |
set -euo pipefail | |
IFS=$'\n\t' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# --- Config --- | |
GIT_NAME="Casey Frese" | |
GIT_EMAIL="caseyfrese@yahoo.com" | |
# --- Update macOS --- | |
echo "Updating macOS..." | |
softwareupdate -i -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ===================================== | |
# DevHub Loader v1.2 | |
# Safe setup for DevHub + helpers | |
# ===================================== | |
set -euo pipefail | |
DEVHUB_DIR="$HOME/DevHub" | |
HELPERS_DIR="$DEVHUB_DIR/Helpers" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================ | |
# DevHub Helper - shortcuts.sh | |
# Cheatsheet: Quick Keyboard Shortcuts | |
# ================================ | |
# -------- Terminal -------- | |
# Cancel current command | |
Ctrl + C | |
# Clear terminal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================ | |
# DevHub Helper - git.sh | |
# Cheatsheet: Git Basics | |
# ================================ | |
# Clone repository | |
git clone https://github.com/user/repo.git | |
# Check status | |
git status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================ | |
# DevHub Helper - system.sh | |
# Cheatsheet: System Monitoring | |
# ================================ | |
# Show system info | |
uname -a | |
# Show OS release | |
lsb_release -a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ================================ | |
# DevHub Helper - networking.sh | |
# Cheatsheet: Networking Basics | |
# ================================ | |
# Show IP address (newer systems) | |
ip addr show | |
# Show IP address (legacy) | |
ifconfig |
NewerOlder