Bash Commands

Other helpful things to add to your environment if you want.

OAuth Clone

Clones a container using our $DEVELOPER_TOKEN instead of loggging in and out. A lot of our scripts use this same method.

function oauth_clone {
  git clone https://$DEVELOPER_TOKEN:x-oauth-basic@github.com/$1.git $2;
}

WhatsOnPort

What's on port tells you what process is running on a particular port.

function whatsonport {
  lsof -n -i :$1 | grep LISTEN
}

Keys are working to Github

ssh -T git@github.com

You should see a "You've successfully authenticated, but GitHub does not provide shell access."

Last updated