From a2ac7eb33e45a5a05db46faf86dfba8bb06e5e03 Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Tue, 22 Sep 2020 14:06:30 -0400 Subject: [PATCH 01/12] dochub config --- .dots | 32 +++++------ brew.sh | 167 +++++++++++++++++++++++++++++--------------------------- 2 files changed, 103 insertions(+), 96 deletions(-) diff --git a/.dots b/.dots index 5b5970a94..44d02a404 100755 --- a/.dots +++ b/.dots @@ -10,14 +10,14 @@ function runDots() { # Run sections based on command line arguments for ARG in "$@" do - if [ $ARG == "bootstrap" ] || [ $ARG == "all" ]; then - echo "" - echo "------------------------------" - echo "Syncing the dev-setup repo to your local machine." - echo "------------------------------" - echo "" - cd ~ && curl -#L https://github.com/donnemartin/dev-setup/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,LICENSE} - fi + # if [ $ARG == "bootstrap" ] || [ $ARG == "all" ]; then + # echo "" + # echo "------------------------------" + # echo "Syncing the dev-setup repo to your local machine." + # echo "------------------------------" + # echo "" + # cd ~ && curl -#L https://github.com/donnemartin/dev-setup/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,LICENSE} + # fi if [ $ARG == "osxprep" ] || [ $ARG == "all" ]; then # Run the osxprep.sh Script echo "" @@ -87,14 +87,14 @@ function runDots() { echo "" ./web.sh fi - if [ $ARG == "android" ] || [ $ARG == "all" ]; then - # Run the android.sh Script - echo "------------------------------" - echo "Setting up Android development environment." - echo "------------------------------" - echo "" - ./android.sh - fi + # if [ $ARG == "android" ] || [ $ARG == "all" ]; then + # # Run the android.sh Script + # echo "------------------------------" + # echo "Setting up Android development environment." + # echo "------------------------------" + # echo "" + # ./android.sh + # fi done echo "------------------------------" diff --git a/brew.sh b/brew.sh index 2f8a7136f..b095462e7 100755 --- a/brew.sh +++ b/brew.sh @@ -48,61 +48,68 @@ brew install wget --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 install ringojs -brew install narwhal +# brew install ringojs +# brew install narwhal # Install Python -brew install python -brew install python3 +brew install pyenv +pyenv install 3.8.5 +pyenv global 3.8.5 +# brew install python +# brew install python3 # Install ruby-build and rbenv -brew install ruby-build -brew install rbenv -LINE='eval "$(rbenv init -)"' -grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra +brew install rvm +rvm install 2.7.1 +rvm use default 2.7.1 + +# brew install ruby-build +# brew install rbenv +# LINE='eval "$(rbenv init -)"' +# grep -q "$LINE" ~/.extra || echo "$LINE" >> ~/.extra # Install more recent versions of some OS X tools. -brew install vim --override-system-vi -brew install homebrew/dupes/grep -brew install homebrew/dupes/openssh -brew install homebrew/dupes/screen -brew install homebrew/php/php55 --with-gmp +# brew install vim --override-system-vi +# brew install homebrew/dupes/grep +# brew install homebrew/dupes/openssh +# brew install homebrew/dupes/screen +# brew install homebrew/php/php55 --with-gmp # Install font tools. -brew tap bramstein/webfonttools -brew install sfnt2woff -brew install sfnt2woff-zopfli -brew install woff2 +# brew tap bramstein/webfonttools +# brew install sfnt2woff +# brew install sfnt2woff-zopfli +# brew install woff2 # Install some CTF tools; see https://github.com/ctfs/write-ups. -brew install aircrack-ng -brew install bfg -brew install binutils -brew install binwalk -brew install cifer -brew install dex2jar -brew install dns2tcp -brew install fcrackzip -brew install foremost -brew install hashpump -brew install hydra -brew install john -brew install knock -brew install netpbm -brew install nmap -brew install pngcheck -brew install socat -brew install sqlmap -brew install tcpflow -brew install tcpreplay -brew install tcptrace -brew install ucspi-tcp # `tcpserver` etc. -brew install homebrew/x11/xpdf -brew install xz +# brew install aircrack-ng +# brew install bfg +# brew install binutils +# brew install binwalk +# brew install cifer +# brew install dex2jar +# brew install dns2tcp +# brew install fcrackzip +# brew install foremost +# brew install hashpump +# brew install hydra +# brew install john +# brew install knock +# brew install netpbm +# brew install nmap +# brew install pngcheck +# brew install socat +# brew install sqlmap +# brew install tcpflow +# brew install tcpreplay +# brew install tcptrace +# brew install ucspi-tcp # `tcpserver` etc. +# brew install homebrew/x11/xpdf +# brew install xz # Install other useful binaries. -brew install ack -brew install dark-mode +# brew install ack +# brew install dark-mode #brew install exiv2 brew install git brew install git-lfs @@ -110,51 +117,51 @@ brew install git-flow brew install git-extras brew install hub brew install imagemagick --with-webp -brew install lua -brew install lynx -brew install p7zip -brew install pigz -brew install pv -brew install rename -brew install rhino -brew install speedtest_cli -brew install ssh-copy-id -brew install tree -brew install webkit2png -brew install zopfli -brew install pkg-config libffi -brew install pandoc +# brew install lua +# brew install lynx +# brew install p7zip +# brew install pigz +# brew install pv +# brew install rename +# brew install rhino +# brew install speedtest_cli +# brew install ssh-copy-id +# brew install tree +# brew install webkit2png +# brew install zopfli +# brew install pkg-config libffi +# brew install pandoc # Lxml and Libxslt -brew install libxml2 -brew install libxslt -brew link libxml2 --force -brew link libxslt --force +# brew install libxml2 +# brew install libxslt +# brew link libxml2 --force +# brew link libxslt --force # Install Heroku -brew install heroku/brew/heroku -heroku update - -# 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 install heroku/brew/heroku +# heroku update +# +# # 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 # Development tool casks -brew cask install --appdir="/Applications" sublime-text +# brew cask install --appdir="/Applications" sublime-text brew cask install --appdir="/Applications" atom -brew cask install --appdir="/Applications" virtualbox -brew cask install --appdir="/Applications" vagrant -brew cask install --appdir="/Applications" macdown +# brew cask install --appdir="/Applications" virtualbox +# brew cask install --appdir="/Applications" vagrant +# brew cask install --appdir="/Applications" macdown # Misc casks brew cask install --appdir="/Applications" google-chrome -brew cask install --appdir="/Applications" firefox -brew cask install --appdir="/Applications" skype +# brew cask install --appdir="/Applications" firefox +# brew cask install --appdir="/Applications" skype brew cask install --appdir="/Applications" slack -brew cask install --appdir="/Applications" dropbox -brew cask install --appdir="/Applications" evernote +# brew cask install --appdir="/Applications" dropbox +# brew cask install --appdir="/Applications" evernote brew cask install --appdir="/Applications" 1password #brew cask install --appdir="/Applications" gimp #brew cask install --appdir="/Applications" inkscape @@ -163,11 +170,11 @@ brew cask install --appdir="/Applications" 1password #brew cask install --appdir="/Applications" mactex # Install Docker, which requires virtualbox -brew install docker -brew install boot2docker +# brew install docker +# brew install boot2docker # 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 betterzip qlimagesize webpquicklook suspicious-package quicklookase qlvideo +# brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzip qlimagesize webpquicklook suspicious-package quicklookase qlvideo # Remove outdated versions from the cellar. brew cleanup From dd5c07e3b50172a2fb8d314865e46e9da40ac1c1 Mon Sep 17 00:00:00 2001 From: Chase Giunta Date: Tue, 22 Sep 2020 13:47:41 -0500 Subject: [PATCH 02/12] update scripts --- .dots | 46 +++++++++---------- aws.sh | 124 +++++++++++++++++++++++++------------------------- brew.sh | 46 ++++++++++++++----- datastores.sh | 8 ++-- web.sh | 9 ++-- 5 files changed, 128 insertions(+), 105 deletions(-) diff --git a/.dots b/.dots index 44d02a404..a57abe3f1 100755 --- a/.dots +++ b/.dots @@ -40,29 +40,29 @@ function runDots() { echo "" ./brew.sh fi - if [ $ARG == "osx" ] || [ $ARG == "all" ]; then - # Run the osx.sh Script - # I strongly suggest you read through the commented osx.sh - # source file and tweak any settings based on your personal - # preferences. The script defaults are intended for you to - # customize. For example, if you are not running an SSD you - # might want to change some of the settings listed in the - # SSD section. - echo "" - echo "------------------------------" - echo "Setting sensible OSX defaults." - echo "------------------------------" - echo "" - ./osx.sh - fi - if [ $ARG == "pydata" ] || [ $ARG == "all" ]; then - # Run the pydata.sh Script - echo "------------------------------" - echo "Setting up Python data development environment." - echo "------------------------------" - echo "" - ./pydata.sh - fi + # if [ $ARG == "osx" ] || [ $ARG == "all" ]; then + # # Run the osx.sh Script + # # I strongly suggest you read through the commented osx.sh + # # source file and tweak any settings based on your personal + # # preferences. The script defaults are intended for you to + # # customize. For example, if you are not running an SSD you + # # might want to change some of the settings listed in the + # # SSD section. + # echo "" + # echo "------------------------------" + # echo "Setting sensible OSX defaults." + # echo "------------------------------" + # echo "" + # ./osx.sh + # fi + # if [ $ARG == "pydata" ] || [ $ARG == "all" ]; then + # # Run the pydata.sh Script + # echo "------------------------------" + # echo "Setting up Python data development environment." + # echo "------------------------------" + # echo "" + # ./pydata.sh + # fi if [ $ARG == "aws" ] || [ $ARG == "all" ]; then # Run the aws.sh Script echo "------------------------------" diff --git a/aws.sh b/aws.sh index e8b6fefa9..628655de5 100755 --- a/aws.sh +++ b/aws.sh @@ -11,51 +11,51 @@ echo "Setting up AWS." echo "This script requires pip and virtualenvwrapper to be installed." echo "See the pydata.sh script." -echo "------------------------------" -echo "Source virtualenvwrapper from ~/.extra" -source ~/.extra +# echo "------------------------------" +# echo "Source virtualenvwrapper from ~/.extra" +# source ~/.extra ############################################################################### # Python 2 Virtual Enviroment # ############################################################################### -echo "------------------------------" -echo "Updating py2-data virtual environment with AWS modules." +# echo "------------------------------" +# echo "Updating py2-data virtual environment with AWS modules." # Create a Python2 data environment # If this environment already exists from running pydata.sh, # it will not be overwritten -mkvirtualenv py2-data -workon py2-data - -pip install boto -pip install awscli -pip install mrjob -pip install s3cmd - -EXTRA_PATH=~/.extra -echo $EXTRA_PATH -echo "" >> $EXTRA_PATH -echo "" >> $EXTRA_PATH -echo "# Configure aws cli autocomplete, added by aws.sh" >> $EXTRA_PATH -echo "complete -C '~/.virtualenvs/py2-data/bin/aws_completer' aws" >> $EXTRA_PATH -source $EXTRA_PATH +# mkvirtualenv py2-data +# workon py2-data + +pipenv install boto +pipenv install awscli +pipenv install s3cmd +# pipenv install mrjob + +# EXTRA_PATH=~/.extra +# echo $EXTRA_PATH +# echo "" >> $EXTRA_PATH +# echo "" >> $EXTRA_PATH +# echo "# Configure aws cli autocomplete, added by aws.sh" >> $EXTRA_PATH +# echo "complete -C '~/.virtualenvs/py2-data/bin/aws_completer' aws" >> $EXTRA_PATH +# source $EXTRA_PATH ############################################################################### # Python 3 Virtual Enviroment # ############################################################################### -echo "------------------------------" -echo "Updating py3-data virtual environment with AWS modules." - -# Create a Python3 data environment -# If this environment already exists from running pydata.sh, -# it will not be overwritten -mkvirtualenv --python=/usr/local/bin/python3 py3-data -workon py3-data - -pip install boto -pip install awscli +# echo "------------------------------" +# echo "Updating py3-data virtual environment with AWS modules." +# +# # Create a Python3 data environment +# # If this environment already exists from running pydata.sh, +# # it will not be overwritten +# mkvirtualenv --python=/usr/local/bin/python3 py3-data +# workon py3-data +# +# pip install boto +# pip install awscli #pip install mrjob # Python 2 only #pip install s3cmd # Python 2 only @@ -74,40 +74,40 @@ pip install awscli # 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 +# 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 install apache-spark - -############################################################################### -# Install IPython Notebook Spark Integration -############################################################################### - -echo "------------------------------" -echo "Installing IPython Notebook Spark integration" - -# Add the pyspark IPython profile -cp -r init/profile_pyspark/ ~/.ipython/profile_pyspark - -BASH_PROFILE_PATH=~/.bash_profile -echo $BASH_PROFILE_PATH -echo "" >> $BASH_PROFILE_PATH -echo "" >> $BASH_PROFILE_PATH -echo "# IPython Notebook Spark integration, added by aws.sh" >> $BASH_PROFILE_PATH -# Run $ brew info apache-spark to determine the Spark install location -echo "export SPARK_HOME='/usr/local/Cellar/apache-spark/1.4.1'" >> $BASH_PROFILE_PATH -echo "# Appending pyspark-shell is needed for Spark 1.4+" >> $BASH_PROFILE_PATH -echo "export PYSPARK_SUBMIT_ARGS='--master local[2] pyspark-shell'" >> $BASH_PROFILE_PATH -echo "" >> $BASH_PROFILE_PATH -source $BASH_PROFILE_PATH +# brew update +# +# brew install apache-spark +# +# ############################################################################### +# # Install IPython Notebook Spark Integration +# ############################################################################### +# +# echo "------------------------------" +# echo "Installing IPython Notebook Spark integration" +# +# # Add the pyspark IPython profile +# cp -r init/profile_pyspark/ ~/.ipython/profile_pyspark +# +# BASH_PROFILE_PATH=~/.bash_profile +# echo $BASH_PROFILE_PATH +# echo "" >> $BASH_PROFILE_PATH +# echo "" >> $BASH_PROFILE_PATH +# echo "# IPython Notebook Spark integration, added by aws.sh" >> $BASH_PROFILE_PATH +# # Run $ brew info apache-spark to determine the Spark install location +# echo "export SPARK_HOME='/usr/local/Cellar/apache-spark/1.4.1'" >> $BASH_PROFILE_PATH +# echo "# Appending pyspark-shell is needed for Spark 1.4+" >> $BASH_PROFILE_PATH +# echo "export PYSPARK_SUBMIT_ARGS='--master local[2] pyspark-shell'" >> $BASH_PROFILE_PATH +# echo "" >> $BASH_PROFILE_PATH +# source $BASH_PROFILE_PATH echo "------------------------------" echo "TODO: Update .aws/ with your AWS credentials and region, or run aws --configure." -echo "TODO: Update .mrjob.conf with your credentials, keypair, keypair location, region, and bucket info." +# echo "TODO: Update .mrjob.conf with your credentials, keypair, keypair location, region, and bucket info." echo "TODO: Update .s3cfg with your credentials, location, and passphrase or run s3cmd --configure." -echo "Script completed." \ No newline at end of file +echo "Script completed." diff --git a/brew.sh b/brew.sh index b095462e7..1e386dcd0 100755 --- a/brew.sh +++ b/brew.sh @@ -23,27 +23,27 @@ brew upgrade --all # Install 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 -sudo ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum +# brew install coreutils +# sudo ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum # Install some other useful utilities like `sponge`. -brew install moreutils +# brew install moreutils # Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed. -brew install findutils +# brew install findutils # Install GNU `sed`, overwriting the built-in `sed`. -brew install gnu-sed +# brew install gnu-sed # Install Bash 4. -brew install bash -brew install bash-completion2 +# brew install bash +# brew install bash-completion2 # We installed the new shell, now we have to activate it -echo "Adding the newly installed shell to the list of allowed shells" +# echo "Adding the newly installed shell to the list of allowed shells" # Prompts for password -sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells' +# sudo bash -c 'echo /usr/local/bin/bash >> /etc/shells' # Change to the new shell, prompts for password -chsh -s /usr/local/bin/bash +# chsh -s /usr/local/bin/bash # Install `wget` with IRI support. -brew install wget --with-iri +# brew install wget --with-iri # Install RingoJS and Narwhal. # Note that the order in which these are installed is important; @@ -55,6 +55,7 @@ brew install wget --with-iri brew install pyenv pyenv install 3.8.5 pyenv global 3.8.5 +brew install pipenv # brew install python # brew install python3 @@ -63,6 +64,7 @@ brew install rvm rvm install 2.7.1 rvm use default 2.7.1 +# gem install bundler # brew install ruby-build # brew install rbenv # LINE='eval "$(rbenv init -)"' @@ -115,7 +117,8 @@ brew install git brew install git-lfs brew install git-flow brew install git-extras -brew install hub +# brew install hub +brew install yarn brew install imagemagick --with-webp # brew install lua # brew install lynx @@ -131,6 +134,21 @@ brew install imagemagick --with-webp # brew install zopfli # brew install pkg-config libffi # brew install pandoc +brew install bash +brew install brotli +brew install cloc +brew install docker +brew install docker-compose +brew install ghostscript +brew install gh +brew install mkcert +brew install mysql +brew install nvm +brew install wget +brew install stunnel +brew install clamav +brew install imagemagick + # Lxml and Libxslt # brew install libxml2 @@ -165,6 +183,10 @@ brew cask install --appdir="/Applications" slack brew cask install --appdir="/Applications" 1password #brew cask install --appdir="/Applications" gimp #brew cask install --appdir="/Applications" inkscape +brew cask install --appdir="/Applications" skitch +brew cask install --appdir="/Applications" sketch +brew cask install --appdir="/Applications" clamxav +brew cask install --appdir="/Applications" zoom #Remove comment to install LaTeX distribution MacTeX #brew cask install --appdir="/Applications" mactex diff --git a/datastores.sh b/datastores.sh index bc6fb882e..28dc576b7 100755 --- a/datastores.sh +++ b/datastores.sh @@ -20,10 +20,10 @@ brew update # Install data stores brew install mysql -brew install postgresql -brew install mongo +# brew install postgresql +# brew install mongo brew install redis -brew install elasticsearch +# brew install elasticsearch # Install mysql workbench # Install Cask @@ -31,4 +31,4 @@ brew install caskroom/cask/brew-cask brew cask install --appdir="/Applications" mysqlworkbench # Remove outdated versions from the cellar. -brew cleanup \ No newline at end of file +brew cleanup diff --git a/web.sh b/web.sh index dee44602c..184e5bb7c 100755 --- a/web.sh +++ b/web.sh @@ -23,9 +23,10 @@ brew install node # Remove outdated versions from the cellar. brew cleanup -npm install -g coffee-script -npm install -g grunt-cli -npm install -g jshint -npm install -g less +yarn global add coffee-script +yarn global add ember-cli +# yarn global add grunt-cli +# yarn global add jshint +# yarn global add less #gem install jekyll From 4cf1c5fbd551fed5e9b3c158925c3918d95147f1 Mon Sep 17 00:00:00 2001 From: Chase Giunta Date: Tue, 22 Sep 2020 15:54:33 -0500 Subject: [PATCH 03/12] .. --- aws.sh | 4 +++- brew.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/aws.sh b/aws.sh index 628655de5..41aee8e12 100755 --- a/aws.sh +++ b/aws.sh @@ -27,9 +27,11 @@ echo "See the pydata.sh script." # it will not be overwritten # mkvirtualenv py2-data # workon py2-data +curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "/tmp/AWSCLIV2.pkg" +sudo installer -pkg /tmp/AWSCLIV2.pkg -target / pipenv install boto -pipenv install awscli +# pipenv install awscli pipenv install s3cmd # pipenv install mrjob diff --git a/brew.sh b/brew.sh index 1e386dcd0..92f1e3bb1 100755 --- a/brew.sh +++ b/brew.sh @@ -64,6 +64,15 @@ brew install rvm rvm install 2.7.1 rvm use default 2.7.1 +brew install nvm + +# copy the following into .zshrc +export NVM_DIR="$HOME/.nvm" +[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm +[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion + +nvm install 13 + # gem install bundler # brew install ruby-build # brew install rbenv @@ -148,6 +157,7 @@ brew install wget brew install stunnel brew install clamav brew install imagemagick +brew install jq # Lxml and Libxslt @@ -178,6 +188,8 @@ brew cask install --appdir="/Applications" google-chrome # brew cask install --appdir="/Applications" firefox # brew cask install --appdir="/Applications" skype brew cask install --appdir="/Applications" slack +brew cask install --appdir="/Applications" aws-vpn-client + # brew cask install --appdir="/Applications" dropbox # brew cask install --appdir="/Applications" evernote brew cask install --appdir="/Applications" 1password From 69558bf6dffc9d65a5b9efb2eafbbc6ec9bfe848 Mon Sep 17 00:00:00 2001 From: Chase Giunta Date: Tue, 22 Sep 2020 16:14:54 -0500 Subject: [PATCH 04/12] Update brew.sh --- brew.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brew.sh b/brew.sh index 92f1e3bb1..aec32b2f4 100755 --- a/brew.sh +++ b/brew.sh @@ -60,7 +60,8 @@ brew install pipenv # brew install python3 # Install ruby-build and rbenv -brew install rvm +\curl -sSL https://get.rvm.io | bash -s stable +[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* rvm install 2.7.1 rvm use default 2.7.1 From cf9bde92ca3fffc091347fda9a0d1dd4c5fec473 Mon Sep 17 00:00:00 2001 From: Chase Giunta Date: Wed, 23 Sep 2020 12:20:52 -0500 Subject: [PATCH 05/12] Update brew.sh --- brew.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/brew.sh b/brew.sh index aec32b2f4..4ca1c65e9 100755 --- a/brew.sh +++ b/brew.sh @@ -211,5 +211,11 @@ brew cask install --appdir="/Applications" zoom # 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 betterzip qlimagesize webpquicklook suspicious-package quicklookase qlvideo + +brew tap homebrew/services +brew services start mysql +brew services start stunnel +brew services start redis + # Remove outdated versions from the cellar. brew cleanup From c70dd05fcfcc3b682bcfb2e8952ce646a1287e86 Mon Sep 17 00:00:00 2001 From: mamiller93 Date: Wed, 23 Sep 2020 16:49:31 -0400 Subject: [PATCH 06/12] Update brew.sh --- brew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brew.sh b/brew.sh index 4ca1c65e9..6e99f646b 100755 --- a/brew.sh +++ b/brew.sh @@ -159,7 +159,7 @@ brew install stunnel brew install clamav brew install imagemagick brew install jq - +brew install oh-my-zsh # Lxml and Libxslt # brew install libxml2 From f54f4f1364ecde210c220d498c026edaf0d8fbf6 Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Tue, 6 Oct 2020 22:16:24 -0400 Subject: [PATCH 07/12] Update brew.sh --- brew.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/brew.sh b/brew.sh index 6e99f646b..f8af6ee78 100755 --- a/brew.sh +++ b/brew.sh @@ -160,6 +160,7 @@ brew install clamav brew install imagemagick brew install jq brew install oh-my-zsh +brew install git-secret # Lxml and Libxslt # brew install libxml2 From 5ecebea131120d31e342407d8f9ec97ac5f2a3f5 Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Fri, 6 Nov 2020 07:27:12 -0500 Subject: [PATCH 08/12] adds zsh powerlevel setup --- .dots | 12 ++++++++++++ terminal.sh | 22 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 terminal.sh diff --git a/.dots b/.dots index a57abe3f1..de3461b8b 100755 --- a/.dots +++ b/.dots @@ -39,6 +39,18 @@ function runDots() { echo "------------------------------" echo "" ./brew.sh + fi + if [ $ARG == "terminal" ] || [ $ARG == "all" ]; then + # Run the brew.sh Script + # For a full listing of installed formulae and apps, refer to + # the commented brew.sh source file directly and tweak it to + # suit your needs. + echo "" + echo "------------------------------" + echo "Installing Terminal updates along with some common formulae and apps." + echo "------------------------------" + echo "" + ./terminal.sh fi # if [ $ARG == "osx" ] || [ $ARG == "all" ]; then # # Run the osx.sh Script diff --git a/terminal.sh b/terminal.sh new file mode 100755 index 000000000..fabfe1448 --- /dev/null +++ b/terminal.sh @@ -0,0 +1,22 @@ + + +cd ~/Library/Fonts && { + wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf'; + wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf'; + wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf'; + wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf'; +cd -; } + +cd ~ && { + brew install romkatv/powerlevel10k/powerlevel10k + mv -f .zshrc .zshrc-old-1 2> /dev/null || true + + p10k configure; + + echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc + echo '[[ -s ${HOME}/repos/dochub/.bash ]] && source ${HOME}/repos/dochub/.bash' >>! ~/.zshrc + echo '[[ -s ${HOME}/repos/iexplorer/.bash ]] && source ${HOME}/repos/iexplorer/.bash' >>! ~/.zshrc + echo '[[ -s ${HOME}/repos/macroplant-rails2/.bash ]] && source ${HOME}/repos/macroplant-rails2/.bash' >>! ~/.zshrc +cd -; } + +# grep -qxF 'include "/configs/projectname.conf"' ~/.zshrc || From ccea0fc234737dc6488af200938702273193dfaf Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Fri, 6 Nov 2020 07:46:07 -0500 Subject: [PATCH 09/12] Update terminal.sh --- terminal.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/terminal.sh b/terminal.sh index fabfe1448..8331ff843 100755 --- a/terminal.sh +++ b/terminal.sh @@ -17,6 +17,13 @@ cd ~ && { echo '[[ -s ${HOME}/repos/dochub/.bash ]] && source ${HOME}/repos/dochub/.bash' >>! ~/.zshrc echo '[[ -s ${HOME}/repos/iexplorer/.bash ]] && source ${HOME}/repos/iexplorer/.bash' >>! ~/.zshrc echo '[[ -s ${HOME}/repos/macroplant-rails2/.bash ]] && source ${HOME}/repos/macroplant-rails2/.bash' >>! ~/.zshrc -cd -; } -# grep -qxF 'include "/configs/projectname.conf"' ~/.zshrc || + # Load pyenv automatically by appending + echo 'eval "$(pyenv init -)"' >>! ~/.zshrc + + + # The next line updates PATH for the Google Cloud SDK. + echo "if [ -f '~/google-cloud-sdk/path.zsh.inc' ]; then . '~/google-cloud-sdk/path.zsh.inc'; fi" >>! ~/.zshrc + # The next line enables shell command completion for gcloud. + echo "if [ -f '~/google-cloud-sdk/completion.zsh.inc' ]; then . '~/google-cloud-sdk/completion.zsh.inc'; fi" >>! ~/.zshrc +cd -; } From 78ff9f43d68519416428a8de99ef720ee4cefbe4 Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Fri, 6 Nov 2020 11:32:05 -0500 Subject: [PATCH 10/12] add antigen for package management --- terminal.sh | 56 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/terminal.sh b/terminal.sh index 8331ff843..e5a1dfd4a 100755 --- a/terminal.sh +++ b/terminal.sh @@ -1,29 +1,49 @@ -cd ~/Library/Fonts && { - wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf'; - wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf'; - wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf'; - wget 'https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf'; -cd -; } - cd ~ && { + brew tap homebrew/cask-fonts + brew install antigen + + brew cask install font-meslo-nerd-font + brew cask install font-noto-nerd-font + + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + brew install romkatv/powerlevel10k/powerlevel10k mv -f .zshrc .zshrc-old-1 2> /dev/null || true p10k configure; - echo 'source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc - echo '[[ -s ${HOME}/repos/dochub/.bash ]] && source ${HOME}/repos/dochub/.bash' >>! ~/.zshrc - echo '[[ -s ${HOME}/repos/iexplorer/.bash ]] && source ${HOME}/repos/iexplorer/.bash' >>! ~/.zshrc - echo '[[ -s ${HOME}/repos/macroplant-rails2/.bash ]] && source ${HOME}/repos/macroplant-rails2/.bash' >>! ~/.zshrc - - # Load pyenv automatically by appending + echo " +source $HOME/antigen.zsh +export NVM_AUTO_USE=true +antigen bundle aws +antigen bundle brew +antigen bundle ember-cli +antigen bundle git +antigen bundle github +antigen bundle lukechilds/zsh-nvm +antigen bundle node +antigen bundle osx +antigen bundle rails +antigen bundle ruby +antigen bundle zsh-users/zsh-autosuggestions +antigen bundle zsh-users/zsh-completions +antigen bundle zsh-users/zsh-syntax-highlighting +antigen apply + +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme +[[ -s ${HOME}/repos/dochub/.bash ]] && source ${HOME}/repos/dochub/.bash +[[ -s ${HOME}/repos/iexplorer/.bash ]] && source ${HOME}/repos/iexplorer/.bash +[[ -s ${HOME}/repos/macroplant-rails2/.bash ]] && source ${HOME}/repos/macroplant-rails2/.bash + +if [ -f '~/google-cloud-sdk/path.zsh.inc' ]; then . '~/google-cloud-sdk/path.zsh.inc'; fi +if [ -f '~/google-cloud-sdk/completion.zsh.inc' ]; then . '~/google-cloud-sdk/completion.zsh.inc'; fi + +alias ls='ls -G' +alias ll='ls -lG' +" >>! ~/.zshrc echo 'eval "$(pyenv init -)"' >>! ~/.zshrc - - # The next line updates PATH for the Google Cloud SDK. - echo "if [ -f '~/google-cloud-sdk/path.zsh.inc' ]; then . '~/google-cloud-sdk/path.zsh.inc'; fi" >>! ~/.zshrc - # The next line enables shell command completion for gcloud. - echo "if [ -f '~/google-cloud-sdk/completion.zsh.inc' ]; then . '~/google-cloud-sdk/completion.zsh.inc'; fi" >>! ~/.zshrc cd -; } From d94bb481a6a87040f51b02d44a0e0be4b0954e50 Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Fri, 6 Nov 2020 13:10:33 -0500 Subject: [PATCH 11/12] Update terminal.sh --- terminal.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminal.sh b/terminal.sh index e5a1dfd4a..a372be0f8 100755 --- a/terminal.sh +++ b/terminal.sh @@ -43,6 +43,9 @@ if [ -f '~/google-cloud-sdk/completion.zsh.inc' ]; then . '~/google-cloud-sdk/co alias ls='ls -G' alias ll='ls -lG' + +nvm use --silent 2> /dev/null > /dev/null + " >>! ~/.zshrc echo 'eval "$(pyenv init -)"' >>! ~/.zshrc From b7effd02bfa8975fbd985c3a544953905e3569eb Mon Sep 17 00:00:00 2001 From: chrisdevor Date: Fri, 6 Nov 2020 14:08:35 -0500 Subject: [PATCH 12/12] Update terminal.sh --- terminal.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terminal.sh b/terminal.sh index a372be0f8..59d27b1bc 100755 --- a/terminal.sh +++ b/terminal.sh @@ -15,6 +15,8 @@ cd ~ && { p10k configure; echo " +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' + source $HOME/antigen.zsh export NVM_AUTO_USE=true antigen bundle aws @@ -30,10 +32,12 @@ antigen bundle ruby antigen bundle zsh-users/zsh-autosuggestions antigen bundle zsh-users/zsh-completions antigen bundle zsh-users/zsh-syntax-highlighting -antigen apply [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme + +antigen apply + [[ -s ${HOME}/repos/dochub/.bash ]] && source ${HOME}/repos/dochub/.bash [[ -s ${HOME}/repos/iexplorer/.bash ]] && source ${HOME}/repos/iexplorer/.bash [[ -s ${HOME}/repos/macroplant-rails2/.bash ]] && source ${HOME}/repos/macroplant-rails2/.bash