Skip to content

Instantly share code, notes, and snippets.

View samazgor's full-sized avatar
🎯
Focusing

Sam Azgor samazgor

🎯
Focusing
View GitHub Profile
@samazgor
samazgor / create-mysql-db-user.md
Created November 30, 2022 09:06
Create MySQL DB and User

Login to SSH and then sudo mysql -u root -p

Hit enter, by default there's no password.

CREATE DATABASE db_name;

CREATE USER 'db_user' IDENTIFIED BY 'STRONG_PASSWORD';

GRANT ALL PRIVILEGES ON db_name.* TO 'db_user';

@samazgor
samazgor / npm-install-ubuntu.md
Created December 26, 2023 13:25
Install npm via nvm for ubuntu

Switch user sudo su USER

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.39.0/install.sh | bash
source ~/.profile
nvm ls-remote
nvm install 18.18.2
npm -v
node -v