-
Notifications
You must be signed in to change notification settings - Fork 1
/
brew_install_stuff.sh
executable file
·527 lines (458 loc) · 15.5 KB
/
brew_install_stuff.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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
#!/usr/bin/env bash
#
# run this file with:
# `cd ~/code/andxyz-dotfiles && ./brew_install_stuff.sh`
set -x
set -e
### first off, update all brew installed crap we already have before going forward
## house cleaning round 1
brew update
brew cleanup -s
# brew cask tricks
# mv /opt/homebrew-cask/Caskroom /usr/local/Caskroom
# find ~/Applications -lname '/opt/*' -exec sh -c 'ln -sf "$(readlink "$0" | gsed s:^/opt/homebrew\-cask/:/usr/local/:g)" "$0"' {} \;
# read up https://github.com/caskroom/homebrew-cask/issues/9685
brew prune
brew outdated
# tips for dependency checking
# brew deps --installed --tree | less -i ab
# brew deps homebrew/apache/ab
# brew uses --installed apr
### enable binary downloads see https://github.com/phinze/homebrew-cask/ for more
brew tap 'homebrew/aliases'
# brew tap 'homebrew/apache'
brew tap 'homebrew/bundle'
brew tap 'homebrew/dev-tools'
brew tap 'homebrew/php'
brew tap 'homebrew/nginx'
brew tap 'homebrew/science'
brew tap 'homebrew/services'
brew tap 'universal-ctags/universal-ctags'
brew tap 'samdmarshall/formulae'
brew tap 'josh/tap'
brew untap 'homebrew/binary' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'homebrew/completions' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'homebrew/dupes' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'homebrew/fuse' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'homebrew/python' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'homebrew/tex' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'homebrew/versions' || true # was deprecated. This tap is now empty as all its formulae were migrated.
brew untap 'josegonzalez/php' || true # was deprecated. for 'homebrew/php'
brew untap 'homebrew/dev-tools' || true # was deprecated
brew untap 'homebrew/x11' || true # was deprecated
brew untap 'homebrew-apache' || true # was deprecated
## house cleaning round 2
brew update
# brew upgrade 'brew-cask' || true
brew cleanup
# brew cask cleanup
## LET US COMPILE STUFF
### shared libs and build stuff
brew install 'vbindiff'
brew install 'binutils'
brew install 'automake'
brew install 'autoconf'
brew install 'cmake'
brew install 'pkg-config'
brew install 'icu4c'
## link it up my dearest
brew install 'openssl'
brew link openssl --force || true
brew install 'openssh' --with-brewed-openssl
brew link openssh --force || true
brew install 'gettext'
brew link gettext --force || true
brew install 'openssl'
brew link openssl --force || true
brew install 'libyaml'
brew link libyaml --force || true
brew install 'libffi'
brew link libffi --force || true
brew install 'readline'
brew link readline --force || true
brew install 'gcc'
# for ruby 193
# brew install 'gcc@6'
brew link gcc --force || true
## ios
# brew install 'carthage'
# brew upgrade 'openssh'
# brew upgrade 'openssl'
# brew upgrade 'libyaml'
# brew upgrade 'libffi'
# brew upgrade 'readline'
# brew upgrade 'gettext'
# brew link openssh --force || true
# brew link openssl --force || true
# brew link libffi --force || true
# brew link libyaml --force || true
# brew link readline --force || true
# brew link gettext --force || true
# brew upgrade 'cmake'
# brew upgrade 'pkg-config'
# brew upgrade 'icu4c'
# brew upgrade 'carthage'
### shell
brew install 'zsh'
### version control systems
# brew options git
brew install 'curl'
brew install 'git'
#brew upgrade 'git' --with-pcre --with-brewed-curl --with-brewed-openssl
brew install 'hub'
brew install 'gh'
# brew install --cask 'kaleidoscope'
## I've been doing it manually you have to click things to install the commandline tools anyway
### db services
# brew install '[email protected]'
# brew services stop '[email protected]'
# brew link --force '[email protected]'
# which source_mysql55_build_env
brew install '[email protected]'
brew services stop '[email protected]'
brew link --force '[email protected]'
# which source_mysql57_build_env
# brew install '[email protected]'
# brew services stop '[email protected]'
# brew link --force '[email protected]'
# which source_postgres95_build_env
brew install 'postgresql@11'
brew services stop 'postgresql@11'
brew link --force 'postgresql@11'
which source_postgres11_build_env
brew install 'memcached'
brew services stop 'memcached'
brew install 'redis'
brew services stop 'redis'
### other vcs
brew install 'hg'
brew install 'svn'
### gnu userland utils
# brew untap 'homebrew/dupes' #old brew command
brew install 'ack'
brew install 'binutils'
brew install 'coreutils'
brew install 'diffutils'
brew install 'findutils'
brew install 'gawk'
brew install 'gnu-indent'
brew install 'gnu-sed'
brew install 'gnu-tar'
brew install 'gnutls'
brew install 'grep'
brew install 'gzip'
brew install 'less'
brew install 'moreutils'
# brew install 'parallel'
## ps tools
brew install 'proctools'
brew install 'psgrep'
brew install 'pstree'
### zip tools
brew install 'pbzip2'
brew install 'p7zip'
brew install 'unrar'
brew install 'htop' # brew upgrade 'htop'
sudo chown root:wheel `which htop`
sudo chmod u+s `which htop`
### 3rd-party-toolkits
brew install 'ical-buddy'
brew install 'heroku'
### languages
### see https://github.com/andxyz/.dotfiles/tree/master/languages
# brew install 'rust'
# brew link 'rust' --force --overwrite || true
### language checkers
brew install 'cppcheck'
brew install 'clang-format'
# use npm install -g jshint
## LETS INSTALL SOME BINARIES
#
brew cleanup -s
# brew upgrade 'brew-cask' || true
brew cask cleanup
### text editor
### brew install --cask 'sublime-text'
### brew install --cask 'sublimetext2'
### brew install --cask 'sublimetext3''
brew install --HEAD 'universal-ctags/universal-ctags/universal-ctags'
brew install 'tmux' --with-utf8proc
brew install 'reattach-to-user-namespace'
brew install 'vim' --with-lua --with-luajit
brew install --force-bottle 'macvim'
# brew install --cask 'clipmenu'
brew install --cask 'clipy'
brew install 'fzf'
brew install 'fpp'
### remoting tools
brew install 'rsync'
### http tools
brew install 'httpie'
# brew install 'apache/apache/ab'
brew install 'wrk' # https://github.com/wg/wrk
brew install 'seige' # https://github.com/JoeDog/siege
brew install 'jq'
## search tools
brew install 'ack'
brew install 'ag'
brew install 'aykamko/tag-ag/tag-ag'
brew install 'ripgrep'
### tools
brew install 'terraform'
brew tap 'shopify/shopify'
brew install 'shopify/shopify/toxiproxy'
### web servers
## nginx
#brew options nginx-full
#brew info nginx-full
#brew install nginx-full --with-upload-module
### vms
brew install --cask 'virtualbox'
brew install --cask 'virtualbox-extension-pack'
brew install --cask 'vagrant'
### archiving tools
brew install --cask 'keka'
brew install --cask 'the-unarchiver'
### text editing
brew install --cask 'texshop'
## spreadsheet and document apps
brew install tika # apache-tika content analysis toolkit http://tika.apache.org/
### dev
# brew install --cask 'android-studio'
brew install --cask 'iterm2'
brew install --cask 'android-file-transfer'
brew install --cask 'charles'
brew install --cask 'dash' # dash4
brew install --cask 'viscosity'
# brew install --cask 'gitx'
### splunking
# brew install 'samdmarshall/formulae/aosd'
brew install 'samdmarshall/formulae/afterglow' # https://github.com/samdmarshall/homebrew-formulae/blob/master/afterglow.rb
brew install --cask '0xed'
brew install --cask 'hex-fiend'
brew install --cask 'hopper-disassembler'
brew install --cask 'synalyze-it-pro'
### 3rd-party-plugins
brew install --cask 'silverlight'
### video chat
brew install --cask 'skype'
brew install --cask 'mumble'
brew install --cask 'google-hangouts'
### text chat
# brew install --cask 'hipchat'
brew install --cask 'slack'
# brew install --cask 'propane'
### playback
brew install --cask 'MPlayerX'
brew install --cask 'mpv'
brew install --cask 'Vox'
### productivity?
brew install --cask 'dropbox'
brew install --cask '1password'
brew install --cask 'alfred'
#
brew install --cask 'caffeine'
brew install --cask 'disk-inventory-x'
brew install --cask 'fantastical'
brew install --cask 'geektool'
brew install --cask 'imagealpha'
brew install --cask 'imageoptim'
brew install --cask 'transmit'
### maths
brew install --cask 'speedcrunch'
## debug
# brew tap 'homebrew/x11/'
# cd /usr/local/Library/Taps/homebrew/homebrew-x11/
# git remote set-url origin [email protected]:Homebrew/homebrew-x11/.git
brew install 'homebrew/dev-tools/brew-pry'
brew install 'gdb' 'gdbm'
brew install 'macgdbp'
brew install 'homebrew/x11/ddd'
brew install 'ios-webkit-debug-proxy'
brew install 'iperf'
## filesystems
brew install --cask 'osxfuse'
brew install 'homebrew/fuse/s3fs'
brew install 'homebrew/fuse/ntfs-3g'
### music
# https://github.com/thebitguru/play-button-itunes-patch
brew install 'homebrew/binary/libspotify'
brew install --cask 'plug'
brew install --cask 'rdio'
brew install --cask 'soundcleod'
brew install --cask 'spotify'
### freelance
brew install --cask 'harvest'
### video manipulation
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r \
--with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx \
--with-opencore-amr --with-openjpeg --with-opus \
--with-rtmpdump --with-speex --with-theora --with-tools \
--with-libvorbis --with-theora
brew install --cask 'youtube-dl'
# brew install --cask 'subler'
# brew install --cask 'miro-video-converter'
### theinternet
brew install --cask 'transmission'
brew install --cask 'lastfm'
### image manipulation
brew install --cask 'xee'
### text manipulation
brew install --cask 'calibre'
## Keyboard map
brew install --cask 'karabiner'
brew install --cask 'seil'
brew install --cask 'ukelele'
### OSX hacks
brew install --cask 'rcdefaultapp'
# brew install --cask 'RightZoom'
### battery stuff
brew install --cask 'slimbatterymonitor'
# brew install --cask 'coconutbattery'
# color pickers
brew install colorpicker-developer --force
brew install colorpicker-propicker --force
brew install colorpicker-hex --force
# brew install icolors --force
### OSX quicklook plugins
# see https://github.com/sindresorhus/quick-look-plugins
cd ~/Library/QuickLook/ && sudo ls # enter password so installs are clean
brew install 'betterzip' --force #installs app and ql extension for zips
# brew install 'ipaql' --force # errored, doesnt exist? ipaql
brew install 'provisionql' --force
brew install 'qlcolorcode' --force
# see workaround https://gist.github.com/Kiran-B/a26f482194ffdf01045621f33fe257c0?permalink_comment_id=3448689#gistcomment-3448689
cd ~/Library/ColorPickers && codesign --force --deep --sign - ./DeveloperColorPicker.colorPicker && cd -
brew install 'qlimagesize' --force
brew install 'qlmarkdown' --force
brew install 'qlprettypatch' --force
brew install 'qlstephen' --force
brew install 'qlvideo' --force
brew install 'quicklook-json' --force
# brew install 'quicklookapk' --force
brew install 'quicknfo' --force
brew install 'suspicious-package' --force
brew install 'webpquicklook' --force
cd ~/Library/QuickLook/ && qlmanage -r && cd -
# brew install --cask provisioning
### manual quicklook plugins
# https://github.com/jaketmp/ePub-quicklook
# https://code.google.com/p/cert-quicklook/downloads/list
#
## refresh quicklook plugins
# `cd ~/Library/QuickLook/ && qlmanage -r`
## https://github.com/sindresorhus/quick-look-plugins
## see https://gist.github.com/andxyz/9393431 see _extensions-quicklooks
# preview WebP images: https://github.com/dchest/webp-quicklook
# preview plain text files without an extension: http://whomwah.github.io/qlstephen/
# preview NFO files: https://github.com/planbnet/QuickNFO
# preview code: https://code.google.com/p/qlcolorcode/
# now run `defaults write com.apple.finder QLEnableTextSelection -bool true && killall Finder`
### link up the folder, so alfred can see the apps
# brew cask alfred link # no longer needed see https://github.com/caskroom/homebrew-cask/issues/8052#issuecomment-69560606
## brew aliases
# brew alias status='!git status'
# brew alias bump='upgrade'
### some brew cleanup
brew cleanup -s && brew prune
brew doctor
### I should get around talking about installing things on your machine
### current list of crap on my dev machine
# ~/code/andxyz-dotfiles[master]
# $ brew leaves | sort | paste - - - -
#
# ack adr-tools ansible [email protected]
# apm-bash-completion aptly-completion autoenv awscli
# aykamko/tag-ag/tag-ag bash bash-completion bash-git-prompt
# binutils bundler-completion bzip2 cargo-completion
# carthage clang-format consul coreutils
# cowsay cppcheck ddd dirmngr
# elm faad2 fasd ffmpeg
# findutils flac flow fpp
# fzf gawk gcc gdb
# gem-completion geoip gflags ghc
# gifsicle git gnu-getopt gnu-indent
# gnu-sed gnu-tar gnu-which gnupg
# [email protected] gpg-agent gradle grep
# grunt-completion gzip haskell-stack heroku
# highlight homebrew/apache/ab homebrew/php/composer homebrew/php/php56
# htop httpie hub hunspell
# ical-buddy icdiff iftop imagemagick
# imagesnap iperf jansson jenv
# jq jsonpp leiningen less
# libao libav libcue libssh2
# libusb-compat libvo-aacenc m-cli macvim
# mad man2html mas maven-completion
# mercurial mitmproxy mongoose mono
# moreutils mp4v2 multitail mycli
# [email protected] [email protected] ncurses nethogs
# netpbm nginx nmap nsq
# ntfs-3g openssh ossp-uuid p7zip
# packer pandoc pbzip2 perl
# pgcli phantomjs pick pidcat
# pip-completion postgresql proctools psgrep
# pstree pv pyenv-virtualenv python3
# qcachegrind r rails-completion rake-completion
# reattach-to-user-namespace rebar@3 recoverjpeg ripgrep
# rsync s3cmd s3fs sdl
# shopify/shopify/toxiproxy speedtest-cli tcpflow terraform
# tig tldr tmux transmission
# trash tree uncrustify universal-ctags/universal-ctags/universal-ctags
# unrar v8 vagrant-completion valgrind
# vbindiff vim vips watchman
# wget wifi-password xctool yarn
# youtube-dl zlib zsh zsh-completions
# zsh-syntax-highlighting
# $ brew cask list | sort | paste - - - -
# alfred android-file-transfer appcleaner atom
# betterzipql blackscreen-screensaver calibre coconutbattery
# colorpicker-developer colorpicker-hex colorpicker-propicker controlplane
# diffmerge disk-inventory-x dropbox geektool
# gitx go2shell google-hangouts harvest
# icolors jadengeller-helium java julia
# keka lastfm limechat liteicon
# lunchy macdown macgdbp mplayerx
# mumble name-mangler netnewswire osxfuse
# process-monitor provisionql qlcolorcode qlimagesize
# qlmarkdown qlprettypatch qlstephen qlvideo
# quicklook-csv quicklook-json quicklookapk quicknfo
# rcdefaultapp rightzoom sequel-pro silverlight
# skype slimbatterymonitor soundcleod speedcrunch
# subler suspicious-package texshop the-unarchiver
# trailer transmission ukelele vagrant
# virtualbox visual-studio-code webpquicklook xee
# xquartz yakyak
# $ mas list
# 430255202 Mactracker (7.6.6)
# 692867256 Simplenote (1.1.8)
# 526546615 Diptic (2.0.4)
# 409183694 Keynote (6.6.2)
# 417602904 CloudApp (4.2.5)
# 461369673 VOX (2.8.7)
# 808154494 Mail Notifr (1.3.5)
# 485812721 TweetDeck (3.9.889)
# 1082170746 Aware (1.0.3)
# 871200983 Gifwit (1.0.5)
# 409203825 Numbers (3.6.2)
# 497799835 Xcode (8.2.1)
# 847496013 Deckset (1.8.1)
# 409201541 Pages (5.6.2)
# 1199498204 Heartbeat (3.0.2)
# 777874532 Cinemagraph Pro (2.2)
# 928871589 Noizio (1.5)
# 549083868 Display Menu (2.2.2)
# 603637384 Name Mangler 3 (3.4)
# 704400176 gps4cam (7.8.2)
# 552792489 StatusClock (1.2) # see also https://github.com/netik/UTCMenuClock
# 1000397973 Wallcat (1.3.0)
# 492498910 Kitabu (1.1)
# 1081413713 GIF Brewery 3 (3.5)
# 445189367 PopClip (1.5.6)
## random mac trash
# $ mas list
# 408981434 iMovie (10.1.11)
# 409183694 Keynote (9.0.1)
# 409201541 Pages (8.0)
# 682658836 GarageBand (10.3.2)
# 409203825 Numbers (6.0)
exit 0