Last active
November 20, 2019 19:35
-
-
Save jimbarrett/089e612be95d10620904108fda1019b9 to your computer and use it in GitHub Desktop.
Ubuntu Notes
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
sudo apt install curl php-cli php-mbstring git unzip | |
curl -sS https://getcomposer.org/installer -o composer-setup.php | |
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
rm composer-setup.php | |
composer --version |
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
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
(close and re-open terminal) | |
nvm ls-remote | |
nvm install (version.number) |
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
// Import | |
mysql -u username –-password=your_password database_name < file.sql | |
// Create user | |
grant all privileges on *.* to 'user'@'localhost' identified by 'password'; |
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
eval `ssh-agent -s` | |
ssh-add ~/.ssh/*_rsa |
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
chmod 700 ~/.ssh | |
chmod 644 ~/.ssh/authorized_keys | |
chmod 644 ~/.ssh/known_hosts | |
chmod 600 ~/.ssh/*_rsa | |
chmod 644 ~/.ssh/*_rsa.pub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment