Skip to content
pwangjooPublic

About

🛠️ Private information excluded backup list

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

README.md

This repository was made & opened public to share personally.

MacOS

Miscellaneous

% sudo pmset -c disablesleep 1 #prevent auto sleeping (1: disable, 0: enable)

Installing Homebrew

% /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

Using NVM

% 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

Configuring Git

% git config --global user.name "[ID]"
% git config --global user.email "[EMAIL]"
% git commit --allow-empty -m "[chore] sync repositories [no ci]"

Accessing Git via SSH

% ssh-keygen -t ed25519 -C "[EMAIL]"
% eval "$(ssh-agent -s)"
% ssh-add ~/.ssh/id_ed25519
% pbcopy < ~/.ssh/id_ed25519.pub

add the copied public key at GitHub > Settings > SSH and GPG keys

Allowing SSH Access

Menu > System Preferences > Sharing > Remote Login

Ubuntu-22.04

Miscellaneous

$ sudo shutdown -r now #restart
$ sudo systemctl start [PACKAGE] #assign package autostart
$ sudo service [PACKAGE] restart #restart package

Managing Packages

$ sudo apt update
$ sudo apt upgrade
$ sudo apt autoremove
$ sudo apt install [PACKAGE]
  • Packages: mysql-server, nginx

Installing Node@16

$ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

(different version can be found here)

Mysql

$ mysqldump -u root -p [DBNAME] > ~/.mysql/[FILENAME].sql
$ sudo mysql
mysql> CREATE USER 'ubuntu'@'localhost' IDENTIFIED BY '';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'ubuntu'@'localhost';

Certbot

check website

About

🛠️ Private information excluded backup list

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages