Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.4 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.4 KB

Intro

Editor+Cmdline+TODO-OK Workflow

Personal use since 2020-07-18 22:51, 18290 commits until 2022-01-28 22:26, experience value for auto commit frequency is 10min/commit.

Important Notice

Pushing Your Notebook to public repo is a BAD IDEA, since when this workflow gets handy you'll inevitably write down important/sensitive info and they'll all be logged into git.

Core

  • cmdline + texteditor + shellscript(or other cli)
  • workflow + template + crontab
  • establish file/folder naming conventions and follow them
  • mark your task as TODO/OK
  • prioritize your TODO/OKs visually
  • benefit from fuzzy search feature provided by texteditor(cmd/ctrl+p) or fzf
  • duplication is acceptable
  • all changes are auto commited
crontab -e

NOTEBOOK_PATH=/path/to/your/notebook

*/10 * * * * /bin/bash -l -c "cd $NOTEBOOK_PATH && git pull >> /dev/null && git add . && git commit -m 'Commit automatically by crontab' >> /dev/null 2>> log/cron_commit.log"
7 * * * *    /bin/bash -l -c "cd $NOTEBOOK_PATH && git push --porcelain >> log/cron_push.log 2>&1"

Example

Tips

Credits

https://github.com/ery/suitup

I learned a lot from my first career mentor/manager(the workflow, the comline+editor mindset, coding tricks, shell scipts management...)

Huge thanks to him