2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2020-11-03 16:27:09 +01:00
<!-- 2020 - 11 - 03 mar. 16:26 -->
2020-01-11 22:04:45 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< title > Systemd services and timers< / title >
< meta name = "generator" content = "Org mode" / >
< meta name = "author" content = "Dehaeze Thomas" / >
2020-01-11 22:22:46 +01:00
< link rel = "stylesheet" type = "text/css" href = "./css/htmlize.css" / >
< link rel = "stylesheet" type = "text/css" href = "./css/readtheorg.css" / >
< script type = "text/javascript" src = "./js/jquery.min.js" > < / script >
< script type = "text/javascript" src = "./js/bootstrap.min.js" > < / script >
< script type = "text/javascript" src = "./js/jquery.stickytableheaders.min.js" > < / script >
< script type = "text/javascript" src = "./js/readtheorg.js" > < / script >
2020-01-11 22:04:45 +01:00
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
< / div > < div id = "content" >
< h1 class = "title" > Systemd services and timers< / h1 >
< div id = "table-of-contents" >
< h2 > Table of Contents< / h2 >
< div id = "text-table-of-contents" >
< ul >
< li > < a href = "#org79abe94" > Buku Git< / a >
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#orgb1764a7" > Service< / a > < / li >
< li > < a href = "#orgb5a6f5c" > Timer< / a > < / li >
< li > < a href = "#orgea90a0b" > Script< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
< li > < a href = "#org1d68bb0" > Check mail< / a >
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#orgd709ba5" > Service< / a > < / li >
< li > < a href = "#orgf92bdcb" > Timer< / a > < / li >
< li > < a href = "#orgccb3216" > Script< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
< li > < a href = "#orgefb3320" > Sync mail< / a >
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#orgcfd985d" > Service< / a > < / li >
< li > < a href = "#org1367b93" > Timer< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2020-01-28 21:32:38 +01:00
< li > < a href = "#org2ff1601" > Vdirsyncer< / a >
2020-01-11 22:04:45 +01:00
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#orgbb80e97" > Service< / a > < / li >
< li > < a href = "#org4c9436c" > Timer< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
2020-03-01 22:51:16 +01:00
< li > < a href = "#orgb34591d" > SSH Agent< / a >
2020-01-11 22:04:45 +01:00
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#orgb0b42d7" > Service< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
< li > < a href = "#orge82b3ac" > Powertop< / a >
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#org88c131b" > Service< / a > < / li >
2020-01-28 21:32:38 +01:00
< / ul >
< / li >
< li > < a href = "#orgd4b9d58" > Mopidy< / a >
< ul >
2020-11-03 16:27:09 +01:00
< li > < a href = "#orgced338f" > Service< / a > < / li >
< / ul >
< / li >
< li > < a href = "#orgd17fb9d" > Brain Website< / a >
< ul >
< li > < a href = "#orga2a7998" > Service< / a > < / li >
< li > < a href = "#org6d59851" > Timer< / a > < / li >
< li > < a href = "#org8d0c564" > Script< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / li >
< / ul >
< / div >
< / div >
< p >
< a href = "https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units" > https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units< / a >
< / p >
< div id = "outline-container-org79abe94" class = "outline-2" >
< h2 id = "org79abe94" > Buku Git< / h2 >
< div class = "outline-text-2" id = "text-org79abe94" >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgb1764a7" class = "outline-3" >
< h3 id = "orgb1764a7" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgb1764a7" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync Bookmarks every day
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/buku_git_push
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgb5a6f5c" class = "outline-3" >
< h3 id = "orgb5a6f5c" > Timer< / h3 >
< div class = "outline-text-3" id = "text-orgb5a6f5c" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync All Mails every x hours
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnCalendar< / span > =*-*-* < span class = "org-highlight-numbers-number" > 16< / span > :< span class = "org-highlight-numbers-number" > 00< / span > :< span class = "org-highlight-numbers-number" > 00< / span >
< span class = "org-variable-name" > Persistent< / span > =true
< span class = "org-variable-name" > Unit< / span > =bukugit.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgea90a0b" class = "outline-3" >
< h3 id = "orgea90a0b" > Script< / h3 >
< div class = "outline-text-3" id = "text-orgea90a0b" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-type" > cd< / span > ~/.local/share/buku/
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-rainbow-delimiters-depth-2" > [< / span > < span class = "org-negation-char" > !< / span > -z $< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-sh-quoted-exec" > git< / span > status -s bookmarks.db< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
< span class = "org-type" > rm< / span > bookmarks.org;
buku -e bookmarks.org & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > cat< / span > header.org bookmarks.org > index.org & & < span class = "org-sh-escaped-newline" > \< / span >
emacs index.org --batch -f org-html-export-to-html --kill & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > add index.html
< span class = "org-type" > git< / span > add bookmarks.db & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > commit -m < span class = "org-string" > "Changed bookmarks - < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > date< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +%F)< / span > < / span > < span class = "org-string" > "< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > push
< span class = "org-keyword" > exit< / span >
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org1d68bb0" class = "outline-2" >
< h2 id = "org1d68bb0" > Check mail< / h2 >
< div class = "outline-text-2" id = "text-org1d68bb0" >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgd709ba5" class = "outline-3" >
< h3 id = "orgd709ba5" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgd709ba5" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Check new mails
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/checkmail -q
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgf92bdcb" class = "outline-3" >
< h3 id = "orgf92bdcb" > Timer< / h3 >
< div class = "outline-text-3" id = "text-orgf92bdcb" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Check Mail every x minutes
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
< span class = "org-variable-name" > Requires< / span > =checkmail.service
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > Persistent< / span > =false
< span class = "org-variable-name" > OnBootSec< / span > =2min
< span class = "org-variable-name" > OnUnitActiveSec< / span > =5min
< span class = "org-variable-name" > AccuracySec< / span > =2min
< span class = "org-variable-name" > Unit< / span > =checkmail.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgccb3216" class = "outline-3" >
< h3 id = "orgccb3216" > Script< / h3 >
< div class = "outline-text-3" id = "text-orgccb3216" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-keyword" > while< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > -n < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > do< / span > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > while loop starts< / span >
< span class = "org-keyword" > case< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > "< / span > < span class = "org-keyword" > in< / span >
-a) < span class = "org-variable-name" > opt_all< / span > =< span class = "org-string" > '--all'< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Check All inboxes< / span >
-v) < span class = "org-variable-name" > opt_verbose< / span > =< span class = "org-string" > '--verbose'< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Verbose< / span >
-q) < span class = "org-variable-name" > opt_quiet< / span > =< span class = "org-string" > '--quiet'< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Quiet< / span >
*) < span class = "org-type" > echo< / span > < span class = "org-string" > "Option < / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > 1< / span > < / span > < span class = "org-string" > not recognized"< / span > ;; < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > In case you typed a different option< / span >
< span class = "org-keyword" > esac< / span >
< span class = "org-builtin" > shift< / span >
< span class = "org-keyword" > done< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Count number of mails< / span >
< span class = "org-variable-name" > gmail_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/gmail/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > esrf_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/esrf/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > ulg_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/ulg/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > uliege_old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/uliege/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Retreive mails< / span >
mbsync $< span class = "org-variable-name" > opt_all< / span > $< span class = "org-variable-name" > opt_verbose< / span > gmail-Home esrf-Home ulg-Home uliege-Home < span class = "org-highlight-numbers-number" > 2< / span > > /tmp/mbsync.log
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Count number of mails< / span >
< span class = "org-variable-name" > gmail_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/gmail/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > esrf_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/esrf/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > ulg_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/ulg/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-variable-name" > uliege_new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > ls< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > ~/.mail/uliege/Inbox/new | wc -l)< / span > < / span > < span class = "org-string" > "< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Total Number of new mails since last checking< / span >
< span class = "org-variable-name" > new< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $((< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > gmail_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > esrf_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > ulg_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > uliege_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > )< / span > < / span > < span class = "org-string" > )"< / span >
< span class = "org-variable-name" > old< / span > =< span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $((< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > gmail_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > esrf_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > ulg_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > uliege_old< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > )< / span > < / span > < span class = "org-string" > )"< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Notification< / span >
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-constant" > $< / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > new< / span > < / span > < span class = "org-string" > "< / span > -gt < span class = "org-highlight-numbers-number" > 0< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span > ; < span class = "org-keyword" > then< / span >
dunstify --replace=< span class = "org-highlight-numbers-number" > 98465< / span > < span class = "org-string" > 'Mails  '< / span > < span class = "org-string" > "< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $((< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > gmail_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > esrf_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > ulg_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +< / span > < / span > < span class = "org-string" > < span class = "org-constant" > < span class = "org-sh-quoted-exec" > $< / span > < / span > < / span > < span class = "org-string" > < span class = "org-variable-name" > < span class = "org-sh-quoted-exec" > uliege_new< / span > < / span > < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > )< / span > < / span > < span class = "org-string" > ) new mail(s)"< / span >
< span class = "org-keyword" > fi< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Indexation and Tags< / span >
< span class = "org-keyword" > if< / span > < span class = "org-type" > pgrep< / span > -f < span class = "org-string" > 'mu server'< / span > ; < span class = "org-keyword" > then< / span >
emacsclient --eval < span class = "org-string" > '(mu4e-update-index)'< / span >
< span class = "org-keyword" > else< / span >
mu index $< span class = "org-variable-name" > opt_verbose< / span > $< span class = "org-variable-name" > opt_quiet< / span >
< span class = "org-keyword" > fi< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orgefb3320" class = "outline-2" >
< h2 id = "orgefb3320" > Sync mail< / h2 >
< div class = "outline-text-2" id = "text-orgefb3320" >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgcfd985d" class = "outline-3" >
< h3 id = "orgcfd985d" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgcfd985d" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync all mails
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/checkmail -a -q
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-org1367b93" class = "outline-3" >
< h3 id = "org1367b93" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org1367b93" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync All Mails every x hours
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
< span class = "org-variable-name" > Requires< / span > =syncmail.service
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > Persistent< / span > =false
< span class = "org-variable-name" > OnBootSec< / span > =30min
< span class = "org-variable-name" > OnUnitActiveSec< / span > =300min
< span class = "org-variable-name" > AccuracySec< / span > =10min
< span class = "org-variable-name" > Unit< / span > =syncmail.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-org2ff1601" class = "outline-2" >
< h2 id = "org2ff1601" > Vdirsyncer< / h2 >
< div class = "outline-text-2" id = "text-org2ff1601" >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgbb80e97" class = "outline-3" >
< h3 id = "orgbb80e97" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgbb80e97" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Synchronize calendars and contacts
< span class = "org-variable-name" > Documentation< / span > =https://vdirsyncer.readthedocs.org/
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/vdirsyncer --verbosity < span class = "org-string" > "ERROR"< / span > sync
< span class = "org-variable-name" > Type< / span > =oneshot
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-org4c9436c" class = "outline-3" >
< h3 id = "org4c9436c" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org4c9436c" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Synchronize vdirs
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnBootSec< / span > =5m
< span class = "org-variable-name" > OnUnitActiveSec< / span > =15m
< span class = "org-variable-name" > AccuracySec< / span > =5m
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =timers.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2020-03-01 22:51:16 +01:00
< div id = "outline-container-orgb34591d" class = "outline-2" >
< h2 id = "orgb34591d" > SSH Agent< / h2 >
< div class = "outline-text-2" id = "text-orgb34591d" >
2020-01-11 22:04:45 +01:00
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgb0b42d7" class = "outline-3" >
< h3 id = "orgb0b42d7" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgb0b42d7" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =SSH key agent
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =simple
< span class = "org-variable-name" > Environment< / span > =SSH_AUTH_SOCK=%t/ssh-agent.socket
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orge82b3ac" class = "outline-2" >
< h2 id = "orge82b3ac" > Powertop< / h2 >
< div class = "outline-text-2" id = "text-orge82b3ac" >
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-org88c131b" class = "outline-3" >
< h3 id = "org88c131b" > Service< / h3 >
< div class = "outline-text-3" id = "text-org88c131b" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Powertop tunings
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/powertop --auto-tune
< span class = "org-variable-name" > RemainAfterExit< / span > =true
2020-01-11 22:04:45 +01:00
2020-11-03 16:27:09 +01:00
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =multi-user.target
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2020-01-28 21:32:38 +01:00
2020-01-11 22:04:45 +01:00
< div id = "outline-container-orgd4b9d58" class = "outline-2" >
< h2 id = "orgd4b9d58" > Mopidy< / h2 >
< div class = "outline-text-2" id = "text-orgd4b9d58" >
2020-01-28 21:32:38 +01:00
< / div >
2020-11-03 16:27:09 +01:00
< div id = "outline-container-orgced338f" class = "outline-3" >
< h3 id = "orgced338f" > Service< / h3 >
< div class = "outline-text-3" id = "text-orgced338f" >
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Mopidy music server
< span class = "org-variable-name" > After< / span > =avahi-daemon.service
< span class = "org-variable-name" > After< / span > =dbus.service
< span class = "org-variable-name" > After< / span > =network.target
< span class = "org-variable-name" > After< / span > =nss-lookup.target
< span class = "org-variable-name" > After< / span > =pulseaudio.service
< span class = "org-variable-name" > After< / span > =remote-fs.target
< span class = "org-variable-name" > After< / span > =sound.target
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > ExecStart< / span > =/usr/bin/mopidy --config ~/.config/mopidy/mopidy.conf
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =multi-user.target
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "outline-container-orgd17fb9d" class = "outline-2" >
< h2 id = "orgd17fb9d" > Brain Website< / h2 >
< div class = "outline-text-2" id = "text-orgd17fb9d" >
< / div >
< div id = "outline-container-orga2a7998" class = "outline-3" >
< h3 id = "orga2a7998" > Service< / h3 >
< div class = "outline-text-3" id = "text-orga2a7998" >
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync Brain Website everyday
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =yes
[< span class = "org-type" > Service< / span > ]
< span class = "org-variable-name" > Type< / span > =oneshot
< span class = "org-variable-name" > ExecStart< / span > =%h/.local/bin/brain_git_push
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org6d59851" class = "outline-3" >
< h3 id = "org6d59851" > Timer< / h3 >
< div class = "outline-text-3" id = "text-org6d59851" >
< div class = "org-src-container" >
< pre class = "src src-conf" > [< span class = "org-type" > Unit< / span > ]
< span class = "org-variable-name" > Description< / span > =Sync Brain Website everyday
< span class = "org-variable-name" > RefuseManualStart< / span > =no
< span class = "org-variable-name" > RefuseManualStop< / span > =no
< span class = "org-variable-name" > Wants< / span > =network-online.target
< span class = "org-variable-name" > After< / span > =network-online.target
[< span class = "org-type" > Timer< / span > ]
< span class = "org-variable-name" > OnCalendar< / span > =*-*-* < span class = "org-highlight-numbers-number" > 16< / span > :< span class = "org-highlight-numbers-number" > 00< / span > :< span class = "org-highlight-numbers-number" > 00< / span >
< span class = "org-variable-name" > Persistent< / span > =true
< span class = "org-variable-name" > Unit< / span > =braingit.service
[< span class = "org-type" > Install< / span > ]
< span class = "org-variable-name" > WantedBy< / span > =default.target
< / pre >
< / div >
< / div >
< / div >
< div id = "outline-container-org8d0c564" class = "outline-3" >
< h3 id = "org8d0c564" > Script< / h3 >
< div class = "outline-text-3" id = "text-org8d0c564" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2020-11-03 16:27:09 +01:00
< pre class = "src src-bash" > < span class = "org-type" > cd< / span > ~/Cloud/brain-website/
< span class = "org-keyword" > if< / span > < span class = "org-rainbow-delimiters-depth-1" > [< / span > < span class = "org-rainbow-delimiters-depth-2" > [< / span > < span class = "org-negation-char" > !< / span > -z $< span class = "org-rainbow-delimiters-depth-3" > (< / span > < span class = "org-sh-quoted-exec" > git< / span > status -s content/< span class = "org-rainbow-delimiters-depth-3" > )< / span > < span class = "org-rainbow-delimiters-depth-2" > ]< / span > < span class = "org-rainbow-delimiters-depth-1" > ]< / span >
< span class = "org-keyword" > then< / span >
< span class = "org-type" > git< / span > add content static & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > commit -m < span class = "org-string" > "Update Content - < / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > $(< / span > < / span > < span class = "org-sh-quoted-exec" > date< / span > < span class = "org-string" > < span class = "org-sh-quoted-exec" > +%F)< / span > < / span > < span class = "org-string" > "< / span > & & < span class = "org-sh-escaped-newline" > \< / span >
< span class = "org-type" > git< / span > push
< span class = "org-keyword" > exit< / span >
< span class = "org-keyword" > fi< / span >
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
< / div >
2020-01-28 21:32:38 +01:00
< / div >
2020-01-11 22:04:45 +01:00
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2020-11-03 16:27:09 +01:00
< p class = "date" > Created: 2020-11-03 mar. 16:26< / p >
2020-01-11 22:04:45 +01:00
< / div >
< / body >
< / html >