From 0d72cfd4681a9494cf5c7d33877e124bdcc114f7 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Thu, 26 Jan 2017 00:53:30 +0100
Subject: [PATCH] Add misc notes.

---
 notes | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 notes

diff --git a/notes b/notes
new file mode 100644
index 0000000..bdc1902
--- /dev/null
+++ b/notes
@@ -0,0 +1,23 @@
+some stuff I need to incorporate later on:
+
+the blog post-update git hook:
+
+
+
+#!/bin/sh
+blog_dir=~/blog
+export GIT_DIR=$(pwd)
+export GIT_WORK_TREE="$blog_dir"
+git checkout -f
+cd "$GIT_WORK_TREE"
+redo
+git add metadata/author metadata/url metadata/title metadata/*.tmpl metadata/automatic_metadata captchas/linkable/*
+count=$(ls -1 metadata/*.automatic_metadata 2>/dev/null | wc -l)
+if [ "$count" != 0 ]; then
+  git add metadata/*.automatic_metadata
+fi
+status=$(git status -s)
+n_updates=$(printf "$status" | grep -vE '^\?\?' | wc -l)
+if [ "$n_updates" -gt 0 ]; then
+  git commit -a -m 'Update metadata'
+fi
-- 
2.30.2