2021/09/09

OptiNand Disk

OptiNand disk อธิบายได้กระชับเข้าใจง่าย ฟังเพลินมาก ^^



2021/08/22

quick app

quick app docker

$ docker run --name mynginx -p 8080:80 -d nginx
$ docker run -d --name myjekins -p 8080:8080 -p 50000:50000 jenkins:2.60.3


2021/07/06

bash shell configuration files

 From: https://landoflinux.com/linux_bash_configuration_files.html

bash configuration files

/etc/profile
/etc/bashrc
~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc
~/.bash_logout
~/.inputrc

2021/06/21

GNU date command examples

$ date

$ date  --date="STRING"
$ date  --date="next Friday"
$ date  --date="2 days ago"

$ date --date="-1 day"
$ date --date="+1 day"
$ date --date="-0 day"
$ date --date="+0 day"
$ date --date="+2 day"

$ date  --date="yesterday"
$ date  --date="yesterday" +"%format"

# Get yesterday's date in dd-mm-yy format
date  --date="yesterday" +"%d-%m-%y"
date  --date="yesterday" +"%m-%d-%y" # US date format
date  --date="yesterday" +"%Y-%m-%d" # YYYY-mm-dd format