Update css/js + few configs

This commit is contained in:
2021-01-01 20:12:34 +01:00
parent 2cfa706a42
commit 85e9caebe4
95 changed files with 15754 additions and 16561 deletions

View File

@@ -1,25 +1,9 @@
#+TITLE: Systemd services and timers
:DRAWER:
#+STARTUP: overview
#+LANGUAGE: en
#+EMAIL: dehaeze.thomas@gmail.com
#+AUTHOR: Dehaeze Thomas
#+HTML_LINK_HOME: ./index.html
#+HTML_LINK_UP: ./index.html
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
:END:
#+TITLE: =systemd= services and timers
#+SETUPFILE: ./setup/org-setup-file.org
https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
* Buku Git
* =bukugit= - Automatic commit and push new bookmarks
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/bukugit.service
@@ -85,7 +69,66 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
fi
#+end_src
* Check mail
* =braingit= - Automatic commit and push new brain pages
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/braingit.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Brain Website everyday
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=%h/.local/bin/brain_git_push
#+END_SRC
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/braingit.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Brain Website everyday
RefuseManualStart=no
RefuseManualStop=no
Wants=network-online.target
After=network-online.target
[Timer]
OnCalendar=*-*-* 16:00:00
Persistent=true
Unit=braingit.service
[Install]
WantedBy=default.target
#+END_SRC
** Script
:PROPERTIES:
:header-args: :tangle ~/.local/bin/brain_git_push
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/Cloud/brain-website/
if [[ ! -z $(git status -s content/) ]]
then
git add content static && \
git commit -m "Update Content - $(date +%F)" && \
git push
exit
fi
#+end_src
* =checkmail= - Check new mails
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/checkmail.service
@@ -192,7 +235,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
# =============================================================
#+end_src
* Sync mail
* =syncmail= - Synchronize all mails
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/syncmail.service
@@ -236,7 +279,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
WantedBy=default.target
#+END_SRC
* Vdirsyncer
* =vdirsyncer= - Synchronize calendar and contacts
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/vdirsyncer.service
@@ -274,7 +317,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
WantedBy=timers.target
#+end_src
* SSH Agent
* =ssh-agent= - SSH Agent
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/ssh-agent.service
@@ -294,7 +337,7 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
WantedBy=default.target
#+end_src
* Powertop
* =powertop= - Powertop
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/powertop.service
@@ -312,87 +355,3 @@ https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-
WantedBy=multi-user.target
#+end_src
* Mopidy
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/mopidy.service
:header-args+: :comments both :mkdirp yes
:END:
#+begin_src conf
[Unit]
Description=Mopidy music server
After=avahi-daemon.service
After=dbus.service
After=network.target
After=nss-lookup.target
After=pulseaudio.service
After=remote-fs.target
After=sound.target
[Service]
ExecStart=/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
[Install]
WantedBy=multi-user.target
#+end_src
* Brain Website
** Service
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/braingit.service
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Brain Website everyday
RefuseManualStart=no
RefuseManualStop=yes
[Service]
Type=oneshot
ExecStart=%h/.local/bin/brain_git_push
#+END_SRC
** Timer
:PROPERTIES:
:header-args: :tangle ~/.config/systemd/user/braingit.timer
:header-args+: :comments both :mkdirp yes
:END:
#+BEGIN_SRC conf
[Unit]
Description=Sync Brain Website everyday
RefuseManualStart=no
RefuseManualStop=no
Wants=network-online.target
After=network-online.target
[Timer]
OnCalendar=*-*-* 16:00:00
Persistent=true
Unit=braingit.service
[Install]
WantedBy=default.target
#+END_SRC
** Script
:PROPERTIES:
:header-args: :tangle ~/.local/bin/brain_git_push
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
cd ~/Cloud/brain-website/
if [[ ! -z $(git status -s content/) ]]
then
git add content static && \
git commit -m "Update Content - $(date +%F)" && \
git push
exit
fi
#+end_src