dot

packages and services management
Log | Files | Refs | README

commit 366c7c0904b245a04a17ed19662b279948af04bf
parent ba1e0a30c7983291d1ed96c996b5949a85aca8e8
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 26 Nov 2017 21:56:38 +0100

wipe unused packages and cron

Diffstat:
Mbin/monit | 22++++++++++++++--------
Mbin/pree | 6++++--
Mbin/xdg-open | 5++++-
Dcron/git | 1-
Acron/monit | 1+
Dcron/monitor | 1-
Mio/gopher | 17+++++++++--------
Dpackage/unbound/tar | 1-
Mskel/ngircd/conf | 8++++----
9 files changed, 36 insertions(+), 26 deletions(-)

diff --git a/bin/monit b/bin/monit @@ -79,18 +79,24 @@ END { } }' +case "$(uname)" in +(Linux ) mem=free bi=bi bo=bo ;; +(*BSD ) mem=fre bi='' bo='' ;; +(Solaris) mem=free bi='' bo='' ;; +(SunOS ) mem=free bi='' bo='' ;; +esac + case $1 in -(record) +(step) [ $# -ne 2 ] && exec "$0" - case "$(uname)" in - (Linux ) mem=free bi=bi bo=bo ;; - (*BSD ) mem=fre bi='' bo='' ;; - (Solaris) mem=free bi='' bo='' ;; - (SunOS ) mem=free bi='' bo='' ;; - esac vmstat "$2" | awk -v mem="$mem" -v bi="$bi" -v bo="$bo" "$awk_record" >> "$DATA" ;; +(record) + [ $# -ne 2 ] && exec "$0" + vmstat "$2" 2 | + awk -v mem="$mem" -v bi="$bi" -v bo="$bo" "$awk_record" >> "$DATA" + ;; (plot) [ $# -ne 2 ] && [ $# -ne 3 ] && exec "$0" tail -n 80 "$DATA" | @@ -98,6 +104,6 @@ case $1 in plot -h "${3:-10}" ;; (*) - printf 'monit record delay | plot delay\n' + printf 'usage: monit step | record | plot delay\n' ;; esac diff --git a/bin/pree b/bin/pree @@ -3,9 +3,11 @@ LC_COLLATE=C -awk '{ do { print } while (sub("/[^/]*$", "")) }' | sort -u | +[ "$1" = -h ] && h=1 && shift || h=0 + +find "$@" | sort -u | +awk -v LINE='| ' -v NODE='|-- ' -v TAIL='`-- ' -v VOID=' ' -v HTML="$h" ' -awk -v LINE='| ' -v NODE='|-- ' -v TAIL='`-- ' -v VOID=' ' -v HTML="$1" ' BEGIN { if (HTML) print("<pre>"); diff --git a/bin/xdg-open b/bin/xdg-open @@ -6,7 +6,10 @@ case $(tty) in (/dev/pts/*|/dev/tty*) ;; (*) exec st -e "$0" "$1" ;; esac printf '\033]0;%s\007' "$*" case $1 in -(http://*|https://*) +(http*://*.mp3) + exec mplayer "$1" + ;; +(http*://*) for b in firefox chromium chromium-browser chrome x-www-browser do command -v "$b" && break done diff --git a/cron/git b/cron/git @@ -1 +0,0 @@ -* * * * * git-sync diff --git a/cron/monit b/cron/monit @@ -0,0 +1 @@ +*/15 * * * * monit step 800 diff --git a/cron/monitor b/cron/monitor @@ -1 +0,0 @@ -*/15 * * * * monitor-step diff --git a/io/gopher b/io/gopher @@ -1,15 +1,16 @@ #sacc gopher://bitreich.org +gopher://drkhsh.at/ +gopher://gopher.leveck.us/1/cgi-bin/pg +gopher://gopher.raumzeitlabor.org/1 +gopher://gopherpedia.com gopher://gopherproject.org +gopher://jgw.mdns.org/7/.bin-cgi/gophermap.dcgi +gopher://josuah.net +gopher://me0w.net/7/searx.dcgi gopher://port70.net gopher://r-36.net gopher://tx.god.jp -gopher://z3bra.org -gopher://gopherpedia.com -gopher://tx.god.jp/1/yt -gopher://me0w.net/7/searx.dcgi -gopher://jgw.mdns.org/7/.bin-cgi/gophermap.dcgi -gopher://gopher.raumzeitlabor.org/1 -gopher://gopher.leveck.us/1/cgi-bin/pg gopher://tx.god.jp/1 -gopher://drkhsh.at/ +gopher://tx.god.jp/1/yt +gopher://z3bra.org diff --git a/package/unbound/tar b/package/unbound/tar @@ -1 +0,0 @@ -http://unbound.net/downloads/unbound-latest.tar.gz diff --git a/skel/ngircd/conf b/skel/ngircd/conf @@ -4,7 +4,7 @@ AdminInfo2 = XXX AdminEMail = mail@josuah.net Info = XXX - MotdFile = /etc/ngircd/motd + MotdFile = /XXX/etc/config/ngircd/motd Network = XXX Ports = 6667 @@ -29,10 +29,10 @@ OperServerMode = yes [SSL] - CertFile = /var/ngircd/ssl/server-cert.pem + CertFile = /XXX/var/ngircd/ssl/server-cert.pem CipherList = XXX - DHFile = /var/ngircd/ssl/dhparams.pem - KeyFile = /var/ngircd/ssl/server-key.pem + DHFile = /XXX/var/ngircd/ssl/dhparams.pem + KeyFile = /XXX/var/ngircd/ssl/server-key.pem Ports = 6697 [Server]