bash Edit binary file with vim using the xxd command To check binary file content xxd To edit a binary file * Open the binary file normally with vim vim * Convert them to xxd human-readable format :%!xxd * Edit the hex part in the left * Convert xxd human-readable format back to binary :%!xxd -r * Save modified content :w Here are some useful
Tip Quickly unhide file/folders in Windows Open window terminal via window + R, type cmd, then press Enter. In the command prompt, run attrib -s -h -r /s /d To show all items (file, folder) in a directory, including hidden items dir /a
Tip Cách cài đặt docker trên ubuntu Bạn sử dụng những câu lệnh này sudo apt -y remove docker docker-engine docker.io containerd runc; \ sudo apt install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && sudo apt-key fingerprint 0EBFCD88 && sudo add-apt-repository -r \ "deb [arch=amd64] https:
infra How to send your custom email from Gmail via Sendgrid Situation: you own a domain (e.g.: transang.me), now you want to use the email info@transang.me to send emails. This blog post will show step-by-step how to do this with Sendgrid. With Sendgrid Freeplan [https://sendgrid.com/pricing/], you can send up to 100 emails per day
Tip Sort Google Photos by uploaded date Currently, Google Photos [https://photos.google.com/] does not support sorting photos by uploaded date via UI explicitly. You can use this functionality via this URL https://photos.google.com/search/_tra_
Tip Set keyboard delay/repeat speed in gnome To change keyboard delay speed in gnome (Ubuntu) gsettings set org.gnome.desktop.peripherals.keyboard delay 150 gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 30 # or 11 for wired keyboard # or 45 (default) for bluetooth keyboard To get the current setting gsettings get ......
Tip Map caplocks key into control/ctrl key To map setxkbmap -option caps:ctrl_modifier To reset setxkbmap -option By default, Gnome reset this option when startup. To change this default behavior gsettings set org.gnome.settings-daemon.plugins.keyboard active false