From c4aab2d858402f8e0862d4cba643dd8570613671 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Sun, 6 Feb 2022 21:38:03 +0100 Subject: [PATCH] Remove buku --- systemd.org | 66 ----------------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/systemd.org b/systemd.org index 041a54c..9209afe 100644 --- a/systemd.org +++ b/systemd.org @@ -3,72 +3,6 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units -* =bukugit= - Automatic commit and push new bookmarks -** Service -:PROPERTIES: -:header-args: :tangle ~/.config/systemd/user/bukugit.service -:header-args+: :comments both :mkdirp yes -:END: - -#+BEGIN_SRC conf -[Unit] -Description=Sync Bookmarks every day -RefuseManualStart=no -RefuseManualStop=yes - -[Service] -Type=oneshot -ExecStart=%h/.local/bin/buku_git_push -#+END_SRC - -** Timer -:PROPERTIES: -:header-args: :tangle ~/.config/systemd/user/bukugit.timer -:header-args+: :comments both :mkdirp yes -:END: - -#+BEGIN_SRC conf -[Unit] -Description=Sync All Mails every x hours -RefuseManualStart=no -RefuseManualStop=no -Wants=network-online.target -After=network-online.target - -[Timer] -OnCalendar=*-*-* 16:00:00 -Persistent=true -Unit=bukugit.service - -[Install] -WantedBy=default.target -#+END_SRC - -** Script -:PROPERTIES: -:header-args: :tangle ~/.local/bin/buku_git_push -:header-args+: :comments both :mkdirp yes -:header-args+: :shebang "#!/usr/bin/env bash" -:END: - -#+begin_src bash -cd ~/.local/share/buku/ - -if [[ ! -z $(git status -s bookmarks.db) ]] -then - rm bookmarks.org; - buku -e bookmarks.org && \ - cat header.org bookmarks.org > index.org && \ - emacs index.org --batch -f org-html-export-to-html --kill && \ - git add index.html - - git add bookmarks.db && \ - git commit -m "Changed bookmarks - $(date +%F)" && \ - git push - exit -fi -#+end_src - * =braingit= - Automatic commit and push new brain pages ** Service :PROPERTIES: