There are many ways of having automatic dependencies in a Makefile
. The following, however, is the most clean and complete solution that I know of for modern compilers.
Continue reading
Archives
A Makefile for LaTeX documents
This is a Makefile
that I’ve perfected over the years for rendering typical LaTeX articles or presentations (e.g. for scientific papers). It handles almost all LaTeX documents, except for large documents that use the \include feature (this is for another tip). It assumes your document has a bibtex
bibliography.
Continue reading
The x264 encoding guide gives a nice explanation of the different options for H.264 encoding. Normally:
ffmpeg -i in.avi -strict experimental -crf 23 -preset medium out.m4v |
Where you can deviate from the above defaults:
- -crf [18-28]
- perceived output quality (lower crf is better quality)
- -preset [ultrafast,superfast,veryfast,faster,fast,medium,slow,slower,veryslow]
- compression effort (slower preset is better compression)
Joining H.264/AAC video files
It is possible to join H.264/AAC video files without re-enconding, if you convert them to an MPEG transport stream (TS). This format supports concatenation. Of course, the video files need to have the same height and width, aspect ratio,…
Continue reading
Using wget to mirror entire website folder
GNU wget can create a very usable local or offline mirror of an entire folder of a website using the following combination of options.
Continue reading
Generate certificate signing requests using OpenSSL
If you are going to request a CA to sign a certificate for you on a regular basis (i.e. certificates that expire after 1 or 2 years), then it is very useful to automate the process of creating a CSR and a private key with a configuration file.
Continue reading
Using GNU date as a world clock
The date program from coreutils can be used as a very handy world clock.
Continue reading