Skip to content

Instantly share code, notes, and snippets.

@vik407
Last active April 8, 2021 20:03
Show Gist options
  • Save vik407/bac3f74a09fd99e52d88b98395deee9b to your computer and use it in GitHub Desktop.
Save vik407/bac3f74a09fd99e52d88b98395deee9b to your computer and use it in GitHub Desktop.
Holberton pieces of code
#!/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