Categories Cloud

Vim Note

Để cài Nerd Font thì có thể download ở trang chủ Nerd Fonts – Iconic font aggregator, glyphs/icons collection, & fonts patcher hoặc ở github repository thư mục unpatched-fonts các file *.ttf thủ công (font phổ biến là FiraCode, Hack, JetbrainsMono). Nếu tải ở github thì nên tải…

Read More
Categories Cloud

Create SSH Key in OpenSSH Format

Để tạo ssh key openssh format dùng lệnh sau: -t rsa: chọn loại mã rsa-b 2048: số bits cho mã, phổ biến là 2048 nhưng 4096 cũng hay được dùng-m PEM: định dạng OpenSSH Related posts: Basic Knowledge about Apache Server [AWS Lightsail] – SSH to your instance

Read More
Categories AWS

Basic Knowledge about Apache Server

Để kiểm tra compile variables của apache server (ở đó có apache version, server document root,…): Để kiểm tra các modules được load: Để kiểm tra các virtual hosts: virtual host của wordpress có document root ở /opt/bitnami/wordpress. Có thể sửa source code ở đó hoặc ở trang…

Read More
Categories Linux

[Linux] Useful Commands in Shell [Vi]

Root user thường có #, normal user thường có $. Thông tin của user ở /etc/passwd Quit vim không lưu bằng :q!, lưu xong quit :wq Để search file theo một từ khóa: Grep cũng search được directory recursively: Có thể dùng printf để in ra formatted text:…

Read More
Categories Linux

[Linux] Useful Commands in Shell

To make bash script, create a file with extension .sh and add the code: to the file. Example: To run it: Note: Just enter FILE_NAME.sh is wrong. Related posts: [Linux] Useful Commands in Shell [Vi] [Linux] – Copy and paste in Vim

Read More