Repository navigation
Expand file tree
/
Copy pathboom.sh
More file actions
executable file
·164 lines (148 loc) · 2.59 KB
/
Copy pathboom.sh
File metadata and controls
executable file
·164 lines (148 loc) · 2.59 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#!/bin/sh
set -e
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
if [[ $(/usr/bin/fdesetup isactive) == "false" ]]; then
echo "please enable full disk encryption"
echo "http://support.apple.com/kb/ht4790"
exit 1
fi
echo "system update"
sudo softwareupdate -i -a
sudo softwareupdate --install-rosetta --agree-to-license
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# brew
brew doctor
brew update
brew upgrade
brew tap homebrew/core
brew tap homebrew/cask
brew tap homebrew/cask-drivers
brew tap homebrew/cask-versions
apps=(
resilio-sync
1password6
caffeine
coconutbattery
iterm2-beta
numi
skype
spotify
transmission
viscosity
vlc
opera
visual-studio-code
signal
moom
copyclip
yubico-authenticator
bartender
little-snitch
zoom
slack
fsnotes
google-chrome
logitech-camera-settings
microsoft-teams
protonmail-bridge
session-manager-plugin
adobe-creative-cloud
mic-drop
keyclu
)
echo "installing apps..."
brew install ${apps[@]} --cask
binaries=(
python@3.9
tree
git
git-crypt
nmap
curl
coreutils
findutils
diffutils
git-extras
binutils
gzip
tfenv
wget
watch
screen
gzip
grep
gnu-indent
gnu-sed
gnu-tar
gnu-which
gnutls
file-formula
less
openssh
unzip
gpg
jq
gnupg
ssh-copy-id
netcat
socat
udptunnel
mackup
zsh
golang
minikube
skaffold
awscli
azure-cli
ffmpeg
helm
kubernetes-cli
helm
mitmproxy
mtr
node
postgresql
terraform-docs
tree
pre-commit
fzf
terraform-docs
kube-ps1
kubectx
kompose
romkatv/powerlevel10k/powerlevel10k
google-cloud-sdk
k9s
stern
aws-vault
1password-cli
sops
adr-tools
)
echo "installing utils..."
brew install ${binaries[@]}
# Make zsh to default shell
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
sudo chsh -s /bin/zsh
# brew cleanup
brew cleanup
# Get stuff from resilio sync
read -p "Please run resilio sync. Done? (Yn) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
cp -r ~/Sync/Mackup/.mackup* ~/
mackup restore -f
fi
unset $REPLY
# Download and run macos settings
curl -s https://raw.githubusercontent.com/dominis/mold-casting/master/macos > /tmp/macos
sh /tmp/macos
curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-social/hosts > /tmp/hosts
sudo cp /tmp/hosts /etc/hosts