Skip to content

Instantly share code, notes, and snippets.

View codedeep79's full-sized avatar

Nguyễn Trung Hậu codedeep79

View GitHub Profile
@codedeep79
codedeep79 / install yarn.md
Created May 2, 2022 11:12
Install Yarn in Ubuntu
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
@codedeep79
codedeep79 / install webpack.md
Created May 2, 2022 11:17
Install webpack in Ubuntu
sudo apt-get update
sudo apt-get -y install webpack
@codedeep79
codedeep79 / asciinema.md
Last active May 8, 2022 04:15
asciinema - Record and share your terminal sessions

Installation

Installing on Ubuntu

sudo apt-add-repository ppa:zanchey/asciinema
sudo apt-get update
sudo apt-get install asciinema

Installing on macOS

Homebrew

brew install asciinema

@codedeep79
codedeep79 / Install Microsoft Edge in Ubuntu.md
Last active July 26, 2022 05:14
Install Microsoft Edge in Ubuntu

Install Microsoft Edge via Terminal/CLI way

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
sudo rm microsoft.gpg
sudo apt update
sudo apt install microsoft-edge-stable

How to Uninstall Edge

@codedeep79
codedeep79 / Install VLC Media Player in Ubuntu.md
Last active July 13, 2022 09:15
Install VLC Media Player in Ubuntu 20.03
  1. Install VLC Player sudo snap install vlc
  2. Uninstall VLC Player sudo snap remove vlc
  3. Starting VLC In the Activities search bar, type “VLC” and click on the icon to launch the application.

@codedeep79
codedeep79 / Creating A Desktop Launcher For Eclipse.md
Last active July 8, 2022 08:56
Creating A Desktop Launcher For Eclipse

Step 1: Start by opening a Terminal, then type the below command to create a .desktop file:

nano ~/.local/share/applications/eclipse.desktop

Step 2: Write the content to the file. The content of the file will be similar to the below, just remember to adjust the paths so they match your setup:

      [Desktop Entry]
      Type=Application
Name=Eclipse
@codedeep79
codedeep79 / Install Docker on Ubuntu 22.04.md
Last active July 8, 2022 03:57
Install Docker on Ubuntu 22.04

Step 1: Update system repositories

Press CTRL+ALT+T to open the terminal of your Ubuntu 22.04 and run the below-given commands to update system repositories:

sudo apt update sudo apt upgrade

Step 2: Install required dependencies

After updating the system packages, next step is to install required dependencies for Docker: sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y

@codedeep79
codedeep79 / Kích hoạt Windows 10 Enterprise LTSC 2021 Evaluation (Version 21H2) với CMD.md
Created July 8, 2022 03:59
Kích hoạt Windows 10 Enterprise LTSC 2021 Evaluation (Version 21H2) với CMD

Bước 1:

Gõ biểu tượng Windows + R và nhập vào đường dẫn C:\Windows\System32\spp\tokens\skus

Bước 2:

Tải thư mục các file script thực hiện công việc kích hoạt Windows 10 Enterprise LTSC 2021 Evaluation (Version 21H2) tại đây. Đặt thư mục các file script vào thư mục C:\Windows\System32\spp\tokens\skus

Bước 3:

Nhập các đoạn code dưới đây vào CMD và nhấn Enter để chạy:

@codedeep79
codedeep79 / How to fix read-only file-system on Ubuntu.md
Last active July 13, 2022 09:09
How to fix read-only file-system on Ubuntu

Use the command:

  sudo fsck -f /dev/sdxx
  sudo reboot

where sdxx is the partition of the hard drive that Linux resides on