From a786856eaf53598708170f6529bc657859e5b109 Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Thu, 15 Jan 2015 02:51:34 +0100 Subject: [PATCH] Updated Tips & tricks (markdown) --- Tips-&-tricks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tips-&-tricks.md b/Tips-&-tricks.md index ac9e68d..620d9ad 100644 --- a/Tips-&-tricks.md +++ b/Tips-&-tricks.md @@ -1,7 +1,7 @@ The following `bash` function pretty-print the entire comments DB sorted by insertion date. get_blog_comments () { - ssh chezsoi.org sqlite3 -line /var/www/lucas/isso/isso.db \ + ssh $host sqlite3 -line /path/to/isso/isso.db \ "'SELECT t.uri,c.created,c.modified,c.text,c.author,c.email,c.website \ FROM comments AS c, threads as t WHERE c.tid = t.id;'" \ | perl -wpe '/(created|modified) = ./&&s/= (.*)/"= ".scalar(localtime($1))/e';