Skip to content

Instantly share code, notes, and snippets.

@jimbarrett
Last active November 20, 2019 19:35
Show Gist options
  • Save jimbarrett/089e612be95d10620904108fda1019b9 to your computer and use it in GitHub Desktop.
Save jimbarrett/089e612be95d10620904108fda1019b9 to your computer and use it in GitHub Desktop.
Ubuntu Notes
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
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)
// Import
mysql -u username –-password=your_password database_name < file.sql
// Create user
grant all privileges on *.* to 'user'@'localhost' identified by 'password';
eval `ssh-agent -s`
ssh-add ~/.ssh/*_rsa
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