Below are some scripts I use to automate my daily workflow
Version control and backup of personal notes
My personal notes are plain text files and binary files such as images and PDFs. Some are formatted using Markdown. I have an automated script to make one git commit everyday to my personal git repo, and rclone
to refresh shared folders with family members and friends who are using cloud storager, using cron
on *nix and launchctl
on MacOS. One can use Gen AI to create these scripts in a few minutes, so I'm not posting mine here. You can contact me if you need copies.
Printing text files
I still print out some files, such as my to-do list, my routines, etc, and attach to my physical binder. Some of these files have unicode charactors. I have experimented witha2ps
, paps
, pandoc
. But I found that CUPS's build-in lpr
is more powerful than what its manual says, and can fulfill all my needs, including printing unicode characters. Below is my one-line script, that prints beautifully 2 pages on a landscape letter paper with boarder and header.
lpr -o number-up=2 -o media=letter -p -o lpi=6 -o cpi=10 -o page-border=single $1