Last active
November 20, 2017 17:25
-
-
Save salamanders/f00ea5b30661ade1b74e84f16225cfd9 to your computer and use it in GitHub Desktop.
Laptop weekly cleaning - upgrade and update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if hash brew 2>/dev/null; then | |
echo "# UPDATING BREW" | |
sudo chown -R $(whoami):admin /usr/local | |
brew update | |
# brew install ffmpeg --with-faac --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-schroedinger --with-snappy --with-theora --with-tools --with-webp --with-x265 --without-libvo-aacenc --without-qtkit --without-xvid | |
# brew install git wget ffmpeg htop imagemagick jpegoptim optipng sqlite3 python python3 | |
# brew install boost-python --with-python3 | |
# brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5 --with-java --with-opengl --with-python3 | |
brew upgrade | |
brew cleanup -s --force | |
fi | |
if hash npm 2>/dev/null; then | |
echo "# UPDATING NPM" | |
npm install -g npm@latest | |
npm install -g firebase-tools | |
# polymer | |
npm install -g gulp bower | |
fi | |
if hash pip 2>/dev/null; then | |
echo "# UPDATING PIP" | |
pip install --upgrade pip setuptools | |
pip_array=("numpy" "scipy" "matplotlib" "ipython[all]" "patsy" "pandas" "sympy" "nose" "statsmodels" "quandl" "scikit-learn" "pillow") | |
for i in "${pip_array[@]}" | |
do | |
echo "## UPDATING PIP: $i" | |
pip install --upgrade --user $i | |
done | |
fi | |
if hash pip3 2>/dev/null; then | |
echo "# UPDATING PIP3" | |
pip3 install --upgrade pip setuptools | |
pip_array=("numpy" "scipy" "matplotlib" "ipython[all]" "patsy" "pandas" "sympy" "nose" "statsmodels" "quandl" "scikit-learn" "pillow") | |
for i in "${pip_array[@]}" | |
do | |
echo "## UPDATING PIP: $i" | |
pip3 install --upgrade --user $i | |
done | |
fi | |
if hash gcloud 2>/dev/null; then | |
echo "# UPDATING GCLOUD" | |
gcloud -q components update && gcloud components install beta | |
fi | |
# General OSX | |
sudo find ~/ -name .DS_Store -delete | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
defaults write -g NSWindowResizeTime -float 0.003 | |
sudo nvram SystemAudioVolume=%80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment