-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrew.sh
236 lines (203 loc) · 6.83 KB
/
brew.sh
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git
brew install --cask git-credential-manager
git clone https://github.com/arxhive/profile.git ~/profile
#fonts
cp ~/profile/nerd-fonts/* ~/Library/Fonts/
#terminal
brew install --cask iterm2
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ZSH_CUSTOM="~/.oh-my-zsh/custom"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/joshskidmore/zsh-fzf-history-search $SH_CUSTOM/plugins/zsh-fzf-history-search
git clone https://github.com/lukechilds/zsh-nvm $ZSH_CUSTOM/plugins/zsh-nvm
git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode
git clone https://github.com/kutsan/zsh-system-clipboard $ZSH_CUSTOM/plugins/zsh-system-clipboard
git clone https://github.com/Aloxaf/fzf-tab $ZSH_CUSTOM/plugins/fzf-tab
#devenv
brew install tmux
brew install tfenv
brew install cf2tf
brew install graphviz
brew install node
chmod go-w /opt/homebrew/Cellar
brew install jesseduffield/lazydocker/lazydocker
brew install prettier
brew install prettierd
brew install bat
brew install btop
brew install htop
brew install csvkit
# brew install grpcui
#gnu
brew install coreutils
brew install gawk
brew install base64
brew install findutils
#utils
brew install tree
brew install jq
brew install wget
brew install watch
brew install mitmproxy
brew install koekeishiya/formulae/skhd
skhd --start-service
#security
brew install trivy
brew install nmap
#os
# brew install --cask displaylink
#fuse
# brew install --cask macfuse
# brew install sshfs
# use macfuse on install sshfs on MacOs
# https://github.com/osxfuse/sshfs/releases
#vim
brew install nvim
brew install gnu-sed
brew install ripgrep
brew install lazygit
brew install ydiff
mkdir -p ~/.config
ln -s ~/profile/lazyvim ~/.config/lazyvim
ln -s ~/profile/dotfiles/.config/git ~/.config/git
#python
brew install pyenv
git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest
pyenv install-latest
brew install pyenv-virtualenv
#go
brew install golang
brew install golangci-lint
go install github.com/segmentio/golines@latest
# go install github.com/cweill/gotests@latest
go install gotest.tools/gotestsum@latestg
go install golang.org/x/tools/cmd/callgraph@latest
go install golang.org/x/tools/cmd/gorename@latest
go install golang.org/x/tools/cmd/gonew@latest
go install go.uber.org/mock/mockgen@latest
go install github.com/davidrjenni/reftools/cmd/fillswitch@latest
go install github.com/davidrjenni/reftools/cmd/fillstruct@latest
go install golang.org/x/vuln/cmd/govulncheck@latest
go install github.com/kyoh86/richgo@latest
go install github.com/abenz1267/gomvp@latest
go install github.com/twpayne/go-jsonstruct/v3/cmd/gojsonstruct@latest
go install golang.org/x/tools/cmd/guru@latest
# curl -sL https://raw.githubusercontent.com/kevincobain2000/gobrew/master/git.io.sh | sh
#C#
# https://learn.microsoft.com/en-us/dotnet/core/install/macos
brew install --cask dotnet-sdk
#nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install node
#sdkman
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
#apps
brew install --cask 1password
brew install --cask google-chrome
brew install --cask postman
brew install --cask slack
brew install --cask notion
brew install --cask spectacle
brew install --cask karabiner-elements
brew install --cask boop
brew install --cask sublime-text
brew install --cask zoom
brew install --cask postman
brew install --cask caffeine
brew install --cask orbstack
# brew install --cask docker
# brew install --cask visual-studio-code
brew install --cask spotify
brew install --cask calibre
brew install shortcat
brew install speedtest-cli
brew install alt-tab
brew install ical-buddy
brew install w3m
ln ~/profile/dotfiles/.w3m/config ~/.w3m/config
ln ~/profile/dotfiles/.w3m/keymap ~/.w3m/keymap
brew install mackup
echo "[storage]\nengine = file_system\npath = profile\ndirectory = mackup" >~/.mackup.cfg
mackup restore
bat cache --build
#unix
brew install plantuml
brew install --cask temurin
brew install telnet
brew install fd
brew install fzf
$(brew --prefix)/opt/fzf/install
#clouds
#brew install awscli
#brew install azure-cli
#database
#brew install postgresql
#brew services start postgresql
#brew install --cask datagrip
#jetbrain
#brew install --cask jetbrains-toolbox
#brew install --cask pycharm-ce
#brew install --cask intellij-idea-ce
#k8s
brew install kubectx
brew install kubecolor
brew install derailed/k9s/k9s
OUT="${XDG_CONFIG_HOME:-$HOME/Library/Application Support}/k9s/skins"
mkdir -p "$OUT"
curl -L https://github.com/catppuccin/k9s/archive/main.tar.gz | tar xz -C "$OUT" --strip-components=2 k9s-main/dist
ln -sf ~/profile/dotfiles/Library/Application\ Support/k9s/config.yaml ~/Library/Application\ Support/k9s/config.yaml
#spotify marketplace
curl -fsSL https://raw.githubusercontent.com/spicetify/cli/main/install.sh | sh
curl -fsSL https://raw.githubusercontent.com/spicetify/marketplace/main/resources/install.sh | sh
#spicetify backup apply
#after
mkdir -p ~/src
mkdir -p ~/bin
mkdir -p ~/lib
mkdir -p ~/ext
mkdir -p ~/tmp
mkdir -p ~/box
mkdir -p ~/uml
mkdir -p ~/logs
mkdir -p ~/spells
#https://github.com/mingrammer/diagrams
# cd ~/uml
# python -m venv venv
# source venv/bin/activate
# pip install diagrams
# deactivate
cd ~/profile
git config user.name "Artem Kolomeetc"
git config user.email "artesdi@gmail.com"
rm ~/Library/Preferences/com.lwouis.alt-tab-macos.plist
cp -rf ~/profile/dotfiles/ ~/
#custom macos apps
ln -s ~/profile/macos/apps/LazyFinder.app /Applications/LazyFinder.app
source ~/profile/macos/apps/clear_notifications_install # $HOME/bin/
#k8s krew
(
set -x
cd "$(mktemp -d)" &&
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
KREW="krew-${OS}_${ARCH}" &&
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
tar zxvf "${KREW}.tar.gz" &&
./"${KREW}" install krew
)
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
kubectl krew install node-shell
#safaribooks
#console.log(JSON.stringify(document.cookie.split(';').map(c => c.split('=')).map(i => [i[0].trim(), i[1].trim()]).reduce((r, i) => {r[i[0]] = i[1]; return r;}, {})))
git clone https://github.com/lorenzodifuccia/safaribooks.git $HOME/ext
touch $HOME/ext/safaribooks/cookies.json
cd $HOME/ext/safaribooks/
source venv/bin/activate
pip3 install -r requirements.txt
# vmware
#brew install --cask vmware-fusion
#brew install --cask multipass