Repository navigation
Expand file tree
/
Copy pathbrew_install_SEIR-1.command
More file actions
executable file
·98 lines (76 loc) · 3.18 KB
/
Copy pathbrew_install_SEIR-1.command
File metadata and controls
executable file
·98 lines (76 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/env bash
# This is part of a larger script for setting a Mac for cloud infrastructure work, Python development, and ML/AI work. Thanks to Theo WAF for setting the foundation.
# Source = https://gist.github.com/m1yag1/bb0ffef90bbc40f313844ec92427ac95
# when set, any errors will stop the script from running
# set -e
# Shared functions
pretty_print() {
printf "\n%b\n" "$1"
}
#
pretty_print "Ready to be jacked in, Neo? Here we go..."
# So it begins
# timestamp
pretty_print "Current time"
date
# environment details
pretty_print "Environment details:"
env
# folder creation
pretty_print "Creating folder structure for class..."
mkdir -p $HOME/documents/TheoWAF/Logs
mkdir -p $HOME/documents/TheoWAF/class7.5/GCP/{Terraform,Notes,Homework,Classes,Books,Files}
mkdir -p $HOME/documents/TheoWAF/class8
# Homebrew installation
pretty_print "Homebrew installation..."
if ! command -v brew &>/dev/null; then
pretty_print "Installing Homebrew, an OSX package manager, follow the instructions..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"'
eval "$(/opt/homebrew/bin/brew shellenv)"
if ! grep -qs "recommended by brew doctor" ~/.zshrc; then
pretty_print "Put Homebrew location earlier in PATH ..."
printf '\n# recommended by brew doctor\n' >> ~/.zshrc
printf 'export PATH="/usr/local/bin:$PATH"\n' >> ~/.zshrc
export PATH="/usr/local/bin:$PATH"
fi
else
pretty_print "You already have Homebrew installed...good job!"
fi
# Homebrew installs; quality of life
pretty_print "Installing core Homebrew utilities...one sec..."
brew install coreutils findutils bash openssl@3 ca-certificates htop tmux tree
# Homebrew installs; regular apps
pretty_print "Installing apps via Homebrew...hold on..."
brew install google-chrome
brew install --cask brave-browser
brew install --cask zoom
brew install --cask visual-studio-code
brew install --cask obsidian
# brew install wireguard
# brew install --cask discord
# brew install --cask telegram
# brew install --cask vlc
# Homebrew installs; cloud infrastructure
pretty_print "Installing programming & cloud tools via Homebrew...patience..."
Brew install git gh wget python3 terraform opentofu jq awscli azure-cli
Brew install --cask google-cloud-sdk
Brew install --cask anki
# brew install pytorch ollama libtensorflow go rust
# brew install terragrunt vsh
# brew install sensible docker docker-compose docker-completion
# Brew install kubernetes-cli kustomize minikube k6 make istioctl k9s helm kubectx prometheus grafana nmap trivy atmos
# Brew install --cask datadog-agent
# Brew install --cask nessus
# Brew install --cask anaconda
# brew install --cask sentinel
# Brew install --cask zap
# Brew install --cask little-snitch
# Homebrew list
pretty_print "Showing brew list..."
brew list
# Homebrew cleanup
pretty_print "Cleaning brew files..."
brew cleanup
pretty_print "All set!"