dot

packages and services management
Log | Files | Refs | README

commit 78b4580c4fa5a7a9025d62a48b81329d89675a91
parent 93b2a67db1581a2af802aaf874e1a77f7d16f3d4
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed, 14 Feb 2018 19:32:39 +0100

[ref] git-gph: full width headers

Diffstat:
Mbin/collectd-ploot | 7+++----
Mbin/git-gph | 2+-
Mbin/update-agenda | 2++
Mbin/update-sfeed | 2++
Ddot/sfeed/sfeedrc | 29-----------------------------
Metc/agenda/epitech | 72+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
Mskel/crontab | 6++----
7 files changed, 73 insertions(+), 47 deletions(-)

diff --git a/bin/collectd-ploot b/bin/collectd-ploot @@ -2,10 +2,8 @@ mkdir -p stat -for host in "${VAR}/collectd"/* +for host in "${VAR}/lib/collectd"/* do - h="${host#${VAR}/collectd/}" - printf '[0|%s|/stat/%s|server|port]\n' "${h}" "${h}" { printf '\n' @@ -31,5 +29,6 @@ do printf '\n' - } > "stat/${h}" + } > "${1}/${host#${VAR}/lib/collectd/}" + done diff --git a/bin/git-gph b/bin/git-gph @@ -5,7 +5,7 @@ p=$(printf '%s/commit/' "$1" | sed 's/[\&/]/\\&/g') cat << EOF > index.gph -----= $(basename "$PWD") =---- +--- $(basename "$PWD" | awk '{ for (i = length($0); i < 76; i++) printf("-");}') git clone git://josuah.net:9000/$(basename "$PWD") diff --git a/bin/update-agenda b/bin/update-agenda @@ -1,7 +1,9 @@ #!/bin/sh +printf '%s\n' epitech url='https://intra.epitech.eu/auth-251e3d0bfcea8ed69a5581361a6a5b8b7ac3cfd5/planning/load?format=ical&location=FR/REN&onlymypromo=true&onlymymodule=true&semester=0,1,10,2,3,4,5,6,7,8,9' curl -#L "${url}" | agenda import - epitech +01 +printf '%s\n' fosdem url='https://fosdem.org/2018/schedule/ical' curl -#L "${url}" | agenda import - fosdem +01 diff --git a/bin/update-sfeed b/bin/update-sfeed @@ -1,6 +1,8 @@ #!/bin/sh # update feeds, merge with old feeds. +mkdir -p "${VAR}/sfeed" + while read -r name url do file="${VAR}/sfeed/${name}" diff --git a/dot/sfeed/sfeedrc b/dot/sfeed/sfeedrc @@ -1,29 +0,0 @@ -#!/bin/sh - -sfeedpath="${VAR}/sfeed" - -feeds() -{ - # feed <name> - # <feedurl> - # [basesiteurl] - # [encoding] - - feed codemadness.nl \ - http://www.codemadness.nl/rss.xml - - feed dragonflydigest.org \ - https://www.dragonflydigest.com/feed - https://www.dragonflydigest.com - - feed kernel.org \ - http://kernel.org/kdist/rss.xml \ - http://kernel.org - - feed xkcd.com \ - http://xkcd.com/atom.xml \ - http://xkcd.com - - find "${VAR}/sfeed" -type f -exec sfeed_mbox {} + | - mdeliver -M "${VAR}/mail/sfeed" -} diff --git a/etc/agenda/epitech b/etc/agenda/epitech @@ -214,15 +214,6 @@ D:Follow-ups D:Guidance cycle 3 D:RĂ©union : -B:1515920400 -E:1515931200 -S:B-CPP-300 >> [C++ Pool] Review - Rush 2 -C:Review -L: -D:Review -D:[C++ Pool] Review - Rush 2 -D:Video Games & Star Wars -: B:1516003200 E:1516048200 S:B-CPP-300 >> [C++ Pool] D13 @@ -1034,6 +1025,7 @@ C:Follow-ups L: D:Follow-ups D:Coaching Session. individuel +D:RĂ©union : B:1519718400 E:1519729200 @@ -1042,6 +1034,7 @@ C:Bootstrap L: D:Bootstrap D:Bootstrap - Philosophers +D:Video Games & Star Wars : B:1519650000 E:1519653600 @@ -1050,6 +1043,7 @@ C:Kick-off L: D:Kick-off D:Kick-off - Unit & MiniLibC +D:Video Games & Star Wars : B:1520600400 E:1520611200 @@ -1183,3 +1177,63 @@ D:Follow-ups D:Follow Up Project maker #1 D:Hub : +B:1519736400 +E:1519741800 +S:B-CPP-400 >> Follow-up - NanoTekSpice +C:Follow Up +L: +D:Follow Up +D:Follow-up - NanoTekSpice +D:Seigneur des Anneaux +: +B:1519632000 +E:1519633800 +S:B-PSU-401 >> Kick-off - Unit & Philosophers +C:Kick-off +L: +D:Kick-off +D:Kick-off - Unit & Philosophers +D:Seigneur des Anneaux +: +B:1520859600 +E:1520861400 +S:B-PSU-401 >> Kick-off - LemIPC +C:Kick-off +L: +D:Kick-off +D:Kick-off - LemIPC +: +B:1520859600 +E:1520870400 +S:B-PSU-401 >> Bootstrap - LemIPC +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - LemIPC +: +B:1520946000 +E:1520949600 +S:B-ASM-400 >> Follow-up - MiniLibC +C:Follow Up +L: +D:Follow Up +D:Follow-up - MiniLibC +: +B:1519650000 +E:1519660800 +S:B-ASM-400 >> Bootstrap - MiniLibC +C:Bootstrap +L: +D:Bootstrap +D:Bootstrap - MiniLibC +D:Video Games & Star Wars +: +B:1519057800 +E:1519065000 +S:B-ANG-058 >> Self-assessment TEPitech +C:TEPitech +L: +D:TEPitech +D:Self-assessment TEPitech +D:Neither +: diff --git a/skel/crontab b/skel/crontab @@ -1,10 +1,8 @@ # min hour day month wkday command #*/15 * * * * mpop && mfilter - -#*/15 * * * * monit step 800 - #*/15 * * * * update-agenda +#*/15 * * * * update-sfeed #10 6 * * * back rsync "${HOME}/back/1" #20 6 * * * back rsync "${HOME}/back/2" @@ -12,4 +10,4 @@ #40 6 * * * back rsync "${HOME}/back/4" #50 6 * * * back rsync "${HOME}/back/5" -#* * * * * cd "${HOME}/srv" && bin/stat +#* * * * * cd "${HOME}/srv" && collectd-ploot