-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrew.sh
executable file
·322 lines (198 loc) · 6.33 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
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
#!/bin/bash
# Ask for the administrator password upfront
sudo -v
if [ "$(uname -s)" == "Darwin" ]; then
# get the command line tools!
xcode-select --install
# you have to do this at some point
sudo xcodebuild -license accept
# install brew
if ! hash brew 2> /dev/null; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
elif [ "$(uname -s)" == "Linux" ]; then
if hash apt-get 2> /dev/null; then
sudo apt-get install build-essential -y
sudo apt-get install ruby -y
sudo apt-get install npm -y
sudo apt-get install nodejs -y
sudo ln -s /usr/bin/nodejs /usr/bin/node
fi
# install brew
if ! hash brew 2> /dev/null; then
if ! hash ruby 2> /dev/null; then
echo_failure "Ruby is not available. Can not install Brew."
return
fi
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/linuxbrew/go/install)"
fi
export PATH=~/.linuxbrew/bin:~/.linuxbrew/sbin:$PATH
fi
### updates
#Cask
brew tap caskroom/cask
brew install brew-cask
brew tap caskroom/versions
# useful
################# code
# regular bash-completion package is held back to an older release, so we get latest from versions.
# github.com/Homebrew/homebrew/blob/master/Library/Formula/bash-completion.rb#L3-L4
brew tap homebrew/versions
brew install bash-completion2
brew install homebrew/completions/brew-cask-completion
#install better versions of tools
brew install vim --override-system-vi
brew install macvim --env-std --override-system-vim
# Plugged
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
brew install homebrew/dupes/grep
brew install homebrew/dupes/screen
# tools
brew install gpg
brew install node
brew install git
brew install wget --with-iri
brew install tree
brew install maven
brew install ant
brew install python
brew install jq
brew install scala
brew install blueutil
# GNU core utilities (those that come with OS X are outdated)
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
brew install moreutils
# GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed
brew install findutils
# GNU `sed`, overwriting the built-in `sed`
brew install gnu-sed --default-names
################## h4x
brew install binutils
#cipher detection
brew install cifer
#zip cracker
#brew install fcrackzip
#logon crack
#brew install hydra
#pwd crack
#brew install john
# cfr-decompiler - java decompiler
brew install cfr-decompiler
# file system watch
# fswatch -o ~/path/to/watch | xargs -n1 ~/script/to/run/when/files/change.sh
brew install fswatch
#autojump - jump to directory (j) or child dir (jc)
brew install autojump
################### general
#read exif from files
brew install exiftool
#youtube downloader
brew install youtube-dl
#pipe viewer
brew install pv
#aldo - learn morse code
#brew install aldo
#ansiweather - ansiweather -l {location}
#brew install ansiweather
#conversor / latex
#brew install pandoc
#history
brew install hh
#network tool
brew install nmap
#terminal tool
brew install tmux # ctrl+b default
#dnsmasq
brew install dnsmasq
# port redirection
brew install homebrew/binary/ngrok2
# Keybase
brew install keybase
#Git-Hub
brew install hub
#htop - top substitor
brew install htop
# http parser - hxnormalize, hxselect
brew install html-xml-utils
#command line tool for processing HTML
brew install pup
#googler
brew install googler
# ncdu - better treesize
brew install ncdu
# iftop - where's bandwidth going
brew install iftop
# gist - gist -P (clipboard), gist -d "Random rbx bug" a.java
brew install gist
# control chrome from cmd // chrome-cli list tabs
brew install chrome-cli
# convert endlines - dos2unix
brew install dos2unix
# mac spoofing - free wifi forever on airports :) - sudo spoof-mac randomize en0
brew install spoof-mac
# http logging - sudo httpry
brew install httpry
#translate - $ trans "Oi, Mundo", $ trans -brief pt:en "Oi Mundo"
brew install translate-shell
# maven-color, maven-notifier and maven-profiler
brew tap jcgay/jcgay
brew install maven-deluxe
brew link --overwrite maven-deluxe
# silver searcher - ag
brew install the_silver_searcher
# company ios dependencies
#brew install swiftlint
#brew install carthage
# crashhub - java/jvm bash // http://www.crashub.org/1.3/reference.html
#brew install crash
# bsh (beanshell)
#wget http://www.beanshell.org/bsh-2.0b4.jar -O /usr/local/bin/bsh.jar
# Java REPL better than BSH :)
brew install javarepl
# Gif Sicle
brew install gifsicle
# Diff-so-fancy (diff a b | diff-so-fancy)
brew install diff-so-fancy
git config --global pager.diff "diff-so-fancy | less --tabs=4 -RFX" && \
git config --global pager.show "diff-so-fancy | less --tabs=4 -RFX"
# hack font
brew cask install caskroom/fonts/font-hack
# ffmpeg
brew install ffmpeg
# imagemagick
brew install imagemagick
# mtr - ping & traceroute. best.
brew install mtr
# allow mtr to run without sudo
mtrlocation=$(brew info mtr | grep Cellar | sed -e 's/ (.*//') # e.g. `/Users/paulirish/.homebrew/Cellar/mtr/0.86`
sudo chmod 4755 $mtrlocation/sbin/mtr
sudo chown root $mtrlocation/sbin/mtr
## Mac OS X Only stuff
if [ "$(uname -s)" == "Darwin" ]; then
# archey - system information
brew install archey
#window resizing
brew cask install spectacle
brew cask install vlc
# Install developer friendly quick look plugins; see https://github.com/sindresorhus/quick-look-plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package
# File Archiver Management
brew cask install keka
# gif screenshot
brew cask install licecap
# Core casks
#brew cask install --appdir="/Applications" alfred
#brew cask install --appdir="/Applications" iterm2
#brew cask install --appdir="/Applications" java
#brew cask install --appdir="/Applications" xquartz
#brew cask install --appdir="/Applications" atom
#brew cask install --appdir="/Applications" virtualbox
#brew cask install --appdir="/Applications" vagrant
#brew cask install --appdir="/Applications" launchcontrol
#brew cask install --appdir="/Applications" macdown
#brew cask install --appdir="/Applications" mactex
#prevent mac from sleeping
#brew install caffeine
brew install terminal-notifier
fi