How to wait for a service to be up in Bash using cURL
Within a CI process, you might want to hold the process until service is starting up, this is how you can do with bash and curl
I would like to thanks Nicolas Bernaerts for sharing on his GitHub repository the script to generate a booklet from a PDF file. This script was written for Ubuntu but it also work on Debian.
First of all, download the script and give it execution permission:
wget --header='Accept-Encoding:none' https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/pdf/generate-booklet-install.sh
chmod +x generate-booklet-install.sh
If you use Debian, you must edit the installation script:
sed -i 's/Ubuntu/Debian/g' generate-booklet-install.sh
Run the installation:
./generate-booklet-install.sh
It will add to your file manager an option to generate a booklet. Right click on any PDF file, choose Generate Booklet, then A4 and print with "Long edge stapling".
Your booklet is ready!