git config --global alias.wip "\!git add --all; git commit -a -m \"wip: update\""
git config --global alias.wtc "\!git add --all; git commit -a -m \"[WTC] \$(curl -s whatthecommit.com/index.txt)\""
I don't like the idea to generate the list of modified files in commit messages, it's not very readable to me plus that I could just generate such info with git log. I tried to write a custom git-wip script to include output of "git status --porcelain=v1" but turns out it's just not necessary since "git log --name-status" could already show it git log --name-status
# or get modified history of a specified file
git log -p path/to/file.ext sqlite3 database.db <query.sql
Some other DBMS have similar things, for MariadDB you could write it in a ".sql" file as well, setting variables and use it so that you can write a generic sql file. (seems you can't use the variable thing with sqlite3) MariaDB> SET @username='UserName@localhost';
MariaDB> SET @hostname='localhost';
MariaDB> SOURCE create-user.sql;
Such things is usually cleaner/simpler than writing in bash. # LAN server
ls -1 *.mp4 >playlist.m3u
# computer, mpv with "save-position-on-quit"
mpv http://raspberrypi.lan/path/to/playlist.m3u curl https://user:[email protected]:port/path/to/file.png -T file.png
4. I could use WebDAV for various other cases, such like keeweb instance, Orgzly (android) notes syncing, saving keepass database etc. @daily find ~/webdav/tmp -mindepth 1 -maxdepth 1 -type f -ctime +30 -delete
[1] https://ezup.dev/git/dotfiles/file/.local/bin/eztmp.html
I think it's better to find a comfortable chair instead, unless you don't have choice but laying down. It's important to keep the laying down pose dedicated to sleeping/resting, do some exercise at other time and this could boost your productivity.