Snippets

Andrew Gordon-Brooks init-dev-env-demo

Updated by Andrew Gordon-Brooks

File snippet.sh Modified

  • Ignore whitespace
  • Hide word diff
 scp -o StrictHostKeyChecking=no $scp_endpoint:~/.gitconfig ~/.gitconfig
 scp -o StrictHostKeyChecking=no $scp_endpoint:~/.ssh/id_rsa ~/.ssh/id_rsa
 echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
+chmod 0600 ~/.ssh/config
 git clone git@bitbucket.org:bcpptl/dev-env-demo.git
 cd dev-env-demo
 sed 's/https:\/\/bitbucket.org\/bcpptl\/local-openshift.git/git@bitbucket.org:bcpptl\/local-openshift.git/' setup.sh > setup2.sh
Created by Andrew Gordon-Brooks

File snippet.sh Added

  • Ignore whitespace
  • Hide word diff
+#!/bin/sh
+read -e -p "enter scp endpoint (user@127.0.0.1): " scp_endpoint
+scp -o StrictHostKeyChecking=no $scp_endpoint:~/.gitconfig ~/.gitconfig
+scp -o StrictHostKeyChecking=no $scp_endpoint:~/.ssh/id_rsa ~/.ssh/id_rsa
+echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
+git clone git@bitbucket.org:bcpptl/dev-env-demo.git
+cd dev-env-demo
+sed 's/https:\/\/bitbucket.org\/bcpptl\/local-openshift.git/git@bitbucket.org:bcpptl\/local-openshift.git/' setup.sh > setup2.sh
+sh setup2.sh
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.