Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 834 Bytes

File metadata and controls

54 lines (40 loc) · 834 Bytes

Bash Utils

Clone the repo into ~/bash-utils. Add the following to .bashrc or .zshrc file.

source ~/bash-utils/all

SSH Tunnels

Create tunnel

# localhost:13306 => localhost:3306 on remote.host

tunnel 13306:localhost:3306 ubuntu@remote.host

Active tunnels

tunnel ls

Kill all tunnels

tunnel kill

Git

Commit all changes

# git add . && git commit -m 'Commit message'

ci Commit message

Commit all changes and push them

# git add . && git commit -m 'Commit message' && git push

cip Commit message

Move remote existing tag 0.1.0 to HEAD and push it

git-move-tag 0.1.0

MySQL

Bash utility for pulling databases from remote hosts.

Inspired by https://github.com/loganstellway/mysqldump-remote.

mysqlpull --help