Skip to content

Instantly share code, notes, and snippets.

@wastemobile
Last active February 12, 2019 01:39
Show Gist options
  • Save wastemobile/eb5ca780a9ed1dec3931454ceab869e2 to your computer and use it in GitHub Desktop.
Save wastemobile/eb5ca780a9ed1dec3931454ceab869e2 to your computer and use it in GitHub Desktop.
Daily Update Script for Mac
#!/bin/bash
echo "Update Homebrew"
echo "brew update && brew upgrade --all"
brew update && brew upgrade
echo "brew cleanup"
brew cleanup -s
echo "Update NPM global"
echo "npm update -g && npm cache verify --force"
npm update -g && npm cache verify
echo "Update Ruby Gems"
echo "gem update && gem cleanup"
gem update && gem cleanup
echo "Vagrant status check"
echo "vagrant global-status --prune"
vagrant global-status --prune
echo "brew tap buo/cask-upgrade (once) and brew cu"
brew cu -afy
echo "Check Mac maintenance processes"
echo "la -al /var/log/*.out"
ls -al /var/log/*.out
echo "Verify background processes running"
echo "brew services list"
brew services list
echo "Check Ghost 2 running"
ghost status
echo "composer global update"
composer global update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment