Skip to content

Instantly share code, notes, and snippets.

View flaxel's full-sized avatar
👨‍💻
Development, Communication & Learning

Falk Puschner flaxel

👨‍💻
Development, Communication & Learning
View GitHub Profile
@flaxel
flaxel / update_mac.sh
Created August 27, 2020 12:01
Update all homebrew formulae
#!/bin/sh
# fetch new versions of Homebrew + all formulae
brew update
# upgrade outdated formulae + casks
brew upgrade
# remove outdated downloads for all formulae + casks
brew cleanup
@flaxel
flaxel / update_git.sh
Last active November 21, 2022 17:25
Update all git repositories in one folder
#!/bin/sh
# check if console program is installed
check_installation(){
type $1 >/dev/null 2>&1 || { echo >&2 "$1 is required: $2 Aborting."; exit 1; }
}
# printing usage information
usage(){
echo "This program is used to update all git repositories in the given folder."