- OSX:
.bash_profile
- Linux:
.bashrc
https://github.com/banga/powerline-shell
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub username@server
On OSX, the standard *nix commands (e.g., sed, awk, grep, ...) are based on the BSD variant. The GNU Core Utilities and the many individual commands are available via Homebrew. The following blogs are useful reads (but a bit outdated):
brew install findutils --with-default-names
brew install gnu-sed --with-default-names
brew install gnu-tar --with-default-names
brew install gnu-which --with-default-names
brew install gnutls --with-default-names
brew install grep --with-default-names
brew install coreutils
brew install binutils
brew install diffutils
brew install gzip
brew install watch
brew install tmux
brew install wget
brew install nmap
brew install gpg
brew install htop
e.g., all subdirectories containing git repos, except those in 'node_modules/*'
find . -type d -name '.git' | sed -r 's|/[^/]+$||' |sort |uniq |grep -v -F '/node_modules/'
ls -l | xargs -t -I % ls %'/.git'
ls -l | xargs -t -I % sh -c 'cd %; git pull'
(cd scratch/ && git pull)
sudo apt-get -o Dpkg::Options::="--force-overwrite" install --fix-broken -y