Comment

Comment by pkulak

I went through a bunch of note-taking apps before I settled on a git directory that's auto-synced once an hour. This bash script is all it takes.

      cd ~/notes

      if [[ ''$(git status --porcelain) ]]; then
       git stash save
       git pull --rebase
       git stash pop || true
       git add .
       git -c "user.name=Phil Kulak" -c "[email protected]" commit -m "''$(date)"
       git push origin main
      else
       git pull
      fi
parent pkulak 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton