Timedatactl Command
- Display the current time and date
timedatectl status
Just think about micro things
timedatectl status
sudo sh -c "iptables-save > /etc/iptables.rules"
Interesting article at github https://github.com/kamranahmedse/developer-roadmap
All images are from https://github.com/kamranahmedse/developer-roadmap
I have an issue on a Windows 10 computer. It keeps opening MSN webpage by itself randomly. Googled it and found a lot of people have the same issue. I also find the answer at https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/web-browser-keeps-opening-to-msn-by-itself/192def23-0180-4812-bcea-654c502c9928. It is on page 5 and answered by stitches12. Thanks.
a2enmod remoteip
Create a docker volume with mount-point using local-persist docker plugin. (Ubuntu only. For other OS please refer to https://github.com/CWSpear/local-persist)
curl -fsSL https://raw.githubusercontent.com/CWSpear/local-persist/master/scripts/install.sh | sudo bash -s -- --systemd
sudo dpkg-reconfigure tzdata
Using an ssh key
Just use the for loop: (rename txt file to csv file)
for j in *.txt; do mv -v "${j}" "${j%.txt}.csv"; done
Method: Number.toFixed()
Example:
Number.parseFloat(x).toFixed(2);