Last active
April 8, 2021 20:03
-
-
Save vik407/bac3f74a09fd99e52d88b98395deee9b to your computer and use it in GitHub Desktop.
Holberton pieces of code
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # A setup script to start working on remote machines | |
| apt-get update | |
| # apt-get install -y emacs git // Some HBTN Containers doesn't have it preinstalled! | |
| git config --global color.ui true | |
| git config --global user.name "Juan Perez" | |
| git config --global user.email [email protected] | |
| git config --global credential.helper cache --timeout=3600 | |
| cat >> ~/.ssh/id_rsa << EOF | |
| # Put your key here! | |
| EOF | |
| cat >> ~/.ssh/id_rsa.pub << EOF | |
| # Put your key here! | |
| EOF | |
| # Change Permissions | |
| sudo chmod 600 ~/.ssh/id_rsa.pub | |
| sudo chmod 600 ~/.ssh/id_rsa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment