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
// | |
// main.cpp | |
// bts | |
// | |
// Created by Taras Petriichuk on 30/11/2017. | |
// Copyright © 2017 Taras Petriichuk. All rights reserved. | |
// | |
#include <iostream> | |
using namespace std; |
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
ssh [email protected] | |
adduser sammy | |
usermod -aG sudo sammy | |
#onLocal | |
cat ~/.ssh/id_rsa.pub | |
#onRemote | |
su - sammy | |
mkdir ~/.ssh | |
chmod 700 ~/.ssh | |
nano ~/.ssh/authorized_keys #paste key |
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
https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps | |
#REMOTE SERVER | |
#install | |
sudo apt-get install git-core | |
#copy your username and email in the gitconfig file | |
sudo nano ~/.gitconfig | |
git config --global user.name "NewUser" | |
git config --global user.email [email protected] |