Screenshot_%Y-%m-%d_%T
 
# Install requirements
apt-get install -y build-essential checkinstall libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev zlib1g-dev openssl libffi-dev python3-dev python3-setuptools wget

# Prepare to build
mkdir /tmp/Python37
cd /tmp/Python37

# Pull down Python 3.7, build, and install
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar xvf Python-3.7.0.tar.xz
cd /tmp/Python37/Python-3.7.0
./configure
make altinstall

https://serverfault.com/questions/918335/best-way-to-run-python-3-7-on-ubuntu-16-04-which-comes-with-python-3-5

 
sudo bash -c "echo '[SeatDefaults]
allow-guest=false
greeter-hide-users=true' > /etc/lightdm/lightdm.conf.d/noguest.conf"
 

${variable%pattern}
Trim the shortest match from the end
${variable##pattern}
Trim the longest match from the beginning
${variable%%pattern}
Trim the longest match from the end
${variable#pattern}
Trim the shortest match from the beginning

 

exemplar placeholder, bitch

 

arecord | aplay

 

review_date:moment().format("YYYY-MM-DD HH:mm:ss")

https://momentjs.com/docs/#/parsing/string-format/

echo date("Y-m-d H:i:s.").gettimeofday()["usec"];
 

One reason NOT to learn awk is that it doesn't have non-greedy matches in regular expressions.

I have an awk code that now I must rewrite only because I suddenly debugged that there is no such thing as non-greedy matches in awk/gawk thus it can't properly execute some regexes.