brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
# DD with progress bar (pv package required) | |
pv -tpreb myimage.img | sudo dd of=/dev/diskX bs=1m | |
# SSH port forwarding/tunneling | |
ssh -f -L local_port:destination_server:destination_port user@intermediate_server -N | |
# MySQL - Size per DB query | |
SELECT table_schema "DB name", sum( data_length + index_length ) / 1024 / 1024 "DB size in MB" FROM information_schema.TABLES GROUP BY table_schema ; | |
# MySQL - Size per Table query |
import code; code.interact(local=dict(globals(), **locals())) |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"