commit d58c7f49f3953b6bf534b2c79ca468961c9924d1
parent ee65cf993dfa5e8a9daa9df9b264174914462115
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 3 Sep 2014 17:25:58 +0200
Merge branch 'master' of gitorious.org:mybin/mybin
Diffstat:
6 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/calendar-backup.sh b/calendar-backup.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+mkdir -p ~/backup/calendar
+cd # required to have the right paths in the archive
+tar zcf ~/backup/calendar/dump-`date +%s`.tgz calendar
diff --git a/check-packages.sh b/check-packages.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+comm -3 <(apt-mark showmanual | sort) <(sort ~/config/apt/*)
diff --git a/compress-ttyrecs.sh b/compress-ttyrecs.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+find ~/logs/ttyrec -name '*.log' -mtime +7 | xz --files
diff --git a/df-alert b/df-alert
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+THRESHOLD=95
+
+function do_check() {
+ CURRENT=$(df "$1" | grep / | awk '{ print $5}' | sed 's/%//g')
+
+ if [ "$CURRENT" -gt "$THRESHOLD" ] ; then
+ mail -s "[df-alert] `hostname`:$1 using $CURRENT%" a3nm@localhost << EOF
+df-alert notification: `hostname`:$1 uses $CURRENT%
+EOF
+ fi
+}
+
+do_check '/'
+do_check '/home'
+
diff --git a/my-mutt b/my-mutt
@@ -3,7 +3,7 @@
# this needed to make it work with urxvt...
# http://unix.stackexchange.com/q/90399
echo
-sleep 0.01
+sleep 0.04
if grep "^`hostname`$" ~/.mutt/local_email > /dev/null
then
# local email
diff --git a/wwen b/wwen
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+urxvtcd -e zsh -c "sr -browser=w3m wikipedia $*"