Last active
October 3, 2015 15:48
-
-
Save shiroyuki/2480522 to your computer and use it in GitHub Desktop.
Set up script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export BASE_PATH="/var/www" | |
mkdir -p $BASE_PATH/bin | |
curl -o $BASE_PATH/.bash_profile https://gist.github.com/shiroyuki/2819364/raw/28eb2d6f6ee39845fa054cab56f8b998993a1138/.bashrc | |
# Customize VIM | |
curl -o $BASE_PATH/.vimrc https://gist.github.com/shiroyuki/2819393/raw/c9ae2db1b9959f6c60312aa716a2de107a7b3840/.vimrc | |
mkdir -p $BASE_PATH/.vim/ftdetect | |
mkdir -p $BASE_PATH/.vim/syntax | |
curl -o $BASE_PATH/.vim/syntax/django.vim https://gist.github.com/shiroyuki/3877353/raw/517952975d0eb36afb957ef11d12ca755ae96658/django.vim | |
curl -o $BASE_PATH/.vim/ftdetect/twig.vim https://gist.github.com/shiroyuki/3877353/raw/517952975d0eb36afb957ef11d12ca755ae96658/django.vim | |
# Install public keys | |
echo 'Add the authorized key.' | |
mkdir $BASE_PATH/.ssh 2> /dev/null || echo 'SSH folder already existed.' | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQNEm2alx8mdpoYXmkuIUoqHtNgJeYs2ZWkcNgMKDzZKTpCcQPVaIVo7hBcsE3vCqBlkmypiApzJgadQ8rCKwELDwYH7KYPo53N/afRpUfAiQOwDHKUlHmR4FCZ82sfgWK3m992FpqOnqfeNiweVIciHgj9QMsmnFvBDc/d6hkbh7cVAhxJNfQoa0B55vRTYOk6wS7GNhn/Y2beI5ufw2dgOQeVgnkdWwy+OGr3nCpPgP56EsRi//9rR9HpX57JKiPsAGCjDSEk7Nqez1Iv3rI5mZUoxGu1pLy8mlM2k6YvV7VUCKIATepQY4Hs0F0c7o4HyZkJvG1cCgvQZTiqYs7 [email protected]" >> $BASE_PATH/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment