This repository was made & opened public to share personally.
% sudo pmset -c disablesleep 1 #prevent auto sleeping (1: disable, 0: enable)% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
% brew install --cask [PACKAGE]
% brew install [PACKAGE]- Casks:
google-chrome,discord,visual-studio-code,mysqlworkbench - Formula:
nvm,mysql
% nvm list #show list of installed nodes
% nvm install [VERSION] #install certain version of node
% nvm use v[VERSION] #temporarily use certain version of node
% nvm alias default v[VERSION] #permanently use certain version of node% git config --global user.name "[ID]"
% git config --global user.email "[EMAIL]"
% git commit --allow-empty -m "[chore] sync repositories [no ci]"% ssh-keygen -t ed25519 -C "[EMAIL]"
% eval "$(ssh-agent -s)"
% ssh-add ~/.ssh/id_ed25519
% pbcopy < ~/.ssh/id_ed25519.pubadd the copied public key at GitHub > Settings > SSH and GPG keys
Menu > System Preferences > Sharing > Remote Login
$ sudo shutdown -r now #restart
$ sudo systemctl start [PACKAGE] #assign package autostart
$ sudo service [PACKAGE] restart #restart package$ sudo apt update
$ sudo apt upgrade
$ sudo apt autoremove
$ sudo apt install [PACKAGE]- Packages:
mysql-server,nginx
$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - &&\
sudo apt-get install -y nodejs(different version can be found here)
$ mysqldump -u root -p [DBNAME] > ~/.mysql/[FILENAME].sql
$ sudo mysqlmysql> CREATE USER 'ubuntu'@'localhost' IDENTIFIED BY '';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'ubuntu'@'localhost';check website