Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from omares/homebrew_bundle
Browse files Browse the repository at this point in the history
Use Homebrew Bundle
  • Loading branch information
omares committed Mar 30, 2018
2 parents 5006124 + 4682c2e commit 87b34fc
Show file tree
Hide file tree
Showing 17 changed files with 247 additions and 315 deletions.
24 changes: 24 additions & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brew-bundle.sh
@@ -0,0 +1,24 @@
#!/usr/bin/env bash

# Install command-line tools using Homebrew.

# Ask for the administrator password upfront.
sudo -v

# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

# Make sure we’re using the latest Homebrew.
brew update

brew bundle "$@"

# Remove outdated versions from the cellar.
brew cleanup
8 changes: 8 additions & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brewfiles/android
@@ -0,0 +1,8 @@
cask_args appdir: "/Applications"

brew "android-sdk"

cask "java"
cask "intellij-idea-ce"
cask "android-studio"

1 change: 1 addition & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brewfiles/aws
@@ -0,0 +1 @@
brew "apache-spark"
147 changes: 147 additions & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brewfiles/core
@@ -0,0 +1,147 @@
cask_args appdir: "/Applications"

tap "homebrew/versions"
tap "bramstein/webfonttools"

brew "coreutils"

# Install some other useful utilities like `sponge`.
brew "moreutils"

# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed.
brew "findutils"

# Install GNU `sed`, overwriting the built-in `sed`.
brew "gnu-sed", args: ["with-default-names"]

# Install Bash 4.
brew "bash"

brew "bash-completion2"

# Install `wget` with IRI support.
brew "wget", args: ["with-iri"]

# Install RingoJS and Narwhal.
# Note that the order in which these are installed is important;
# see http://git.io/brew-narwhal-ringo.
brew "ringojs"
brew "narwhal"

# Install Python
brew "python"
brew "python3"

# Install ruby-build and rbenv
brew "ruby-build"
brew "rbenv"

# Install more recent versions of some OS X tools.
brew "vim", args: ["override-system-vi"]
brew "homebrew/dupes/grep"
brew "homebrew/dupes/openssh"
brew "homebrew/dupes/screen"
brew "homebrew/php/php55", args: ["with-gmp"]

# Install font tools.

brew "sfnt2woff"
brew "sfnt2woff-zopfli"
brew "woff2"

# Install some CTF tools; see https://github.com/ctfs/write-ups.
brew "aircrack-ng"
brew "bfg"
brew "binutils"
brew "binwalk"
brew "cifer"
brew "dex2jar"
brew "dns2tcp"
brew "fcrackzip"
brew "foremost"
brew "hashpump"
brew "hydra"
brew "john"
brew "knock"
brew "netpbm"
brew "nmap"
brew "pngcheck"
brew "socat"
brew "sqlmap"
brew "tcpflow"
brew "tcpreplay"
brew "tcptrace"
brew "ucspi-tcp" # `tcpserver` etc.
brew "homebrew/x11/xpdf"
brew "xz"

# Install other useful binaries.
brew "ack"
brew "dark-mode"
#brew "exiv2"
brew "git"
brew "git-lfs"
brew "git-flow"
brew "git-extras"
brew "hub"
brew "imagemagick", args: ["with-webp"]
brew "lua"
brew "lynx"
brew "p7zip"
brew "pigz"
brew "pv"
brew "rename"
brew "rhino"
brew "speedtest_cli"
brew "ssh-copy-id"
brew "tree"
brew "webkit2png"
brew "zopfli"
brew "pkg-config libffi"
brew "pandoc"

# Lxml and Libxslt
brew "libxml2"
brew "libxslt"

# Install Heroku
brew "heroku-toolbelt"

# Core casks
cask "alfred"
cask "iterm2"
cask "java"
cask "xquartz"

# Development tool casks
cask "sublime-text"
cask "atom"
cask "virtualbox"
cask "vagrant"
cask "macdown"

# Misc casks
cask "google-chrome"
cask "firefox"
cask "skype"
cask "slack"
cask "dropbox"
cask "evernote"
cask "1password"
#cask "gimp"
#cask "inkscape

# Install Docker, which requires virtualbox
brew "docker"
brew "boot2docker"

# Install developer friendly quick look plugins; see https://github.com/sindresorhus/quick-look-plugins
cask "qlcolorcode"
cask "qlstephen"
cask "qlmarkdown"
cask "quicklook-json"
cask "qlimagesize"
cask "webpquicklook"
cask "suspicious-package"
cask "quicklookase"
cask "qlvideo"
11 changes: 11 additions & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brewfiles/datastores
@@ -0,0 +1,11 @@
cask_args appdir: "/Applications"

# Install data stores
brew "mysql"
brew "postgresql"
brew "mongo"
brew "redis"
brew "elasticsearch"

# Install mysql workbench
cask "mysqlworkbench"
3 changes: 3 additions & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brewfiles/rcm
@@ -0,0 +1,3 @@
tap "thoughtbot/formulae"

brew "rcm"
1 change: 1 addition & 0 deletions .dotfiles/tag-dev-setup/dev-setup/brewfiles/web
@@ -0,0 +1 @@
brew "node"
6 changes: 3 additions & 3 deletions .dots
Expand Up @@ -34,17 +34,17 @@ function runDots() {
./osxprep.sh
fi
if [ $ARG == "brew" ] || [ $ARG == "all" ]; then
# Run the brew.sh Script
# Run the core.sh Script
# For a full listing of installed formulae and apps, refer to
# the commented brew.sh source file directly and tweak it to
# the commented core.sh source file directly and tweak it to
# suit your needs.
echo ""
echo "------------------------------"
echo "Installing Homebrew along with some common formulae and apps."
echo "This might awhile to complete, as some formulae need to be installed from source."
echo "------------------------------"
echo ""
./brew.sh
./core.sh
fi

if [ $ARG == "osx" ] || [ $ARG == "all" ]; then
Expand Down
1 change: 0 additions & 1 deletion .rcrc
@@ -1,4 +1,3 @@
DOTFILES_DIRS=".dotfiles"
TAGS="dev-setup"
SYMLINK_DIRS="dev-setup"
UNDOTTED="bin"

0 comments on commit 87b34fc

Please sign in to comment.