Category Archives: Uncategorized
How to add compiling time in Lyx/LaTex
Include this package in the header part, \usepackage{datetime2} within \date{created on Sun Feb 13 10:00:15 AM HST 2022, last modified on \DTMnow}
How to convert mp4 to text using command line in Ubuntu
Convert a mp4 file into wav file ffmpeg -i file.mp4 -ar 16000 -ac 1 file.wav convert the wav file into a text file pocketsphinx_continuous -infile file.wav 2> pocketsphinx.log > myspeech.txt
How to trim a mp4 file in Ubuntu
The following command is to trim “INPUT.mp4” from start time 00:00:00 for a total play duration of 01:33:00, and save it as “OUTPUT.mp4“. No matter what the INPUT.mp4 file size is, this command is done almost immediately.
How to use GitHub
awk – calculation of sums of rows and columns
awk command in a bash script mydata.dat file
How to generate a unique directory for each run using Makefile
In command line, one can execute to have 10 different directories in sequence.
LaTex/Lyx
To restart figure and table numbers in Appendix with correct link In the LaTex/Lyx header, add the following package: Where the Appendix start, add the following script: