From 2ffb0cddc636b0f8a978e45e28242868edac2e3a Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Sun, 28 Oct 2012 06:40:45 +0100 Subject: [PATCH] cleanup and try new twitter widget --- .gitignore | 3 +++ .htaccess | 1 + active-users.sh | 8 ++++++++ index.shtml | 30 ++---------------------------- 4 files changed, 14 insertions(+), 28 deletions(-) create mode 100644 .gitignore create mode 100755 active-users.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3a11a2f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +u/* +active-users.txt +version.txt diff --git a/.htaccess b/.htaccess index b5c9619..3bfb6cf 100644 --- a/.htaccess +++ b/.htaccess @@ -2,3 +2,4 @@ DirectoryIndex index.shtml index.html AddType text/cache-manifest .appcache RewriteEngine on RewriteRule ^f/(.*)$ /create.cgi?id=$1 [L,QSA] +CheckCaseOnly on diff --git a/active-users.sh b/active-users.sh new file mode 100755 index 0000000..40e7bb0 --- /dev/null +++ b/active-users.sh @@ -0,0 +1,8 @@ +#!/bin/bash +echo -n "$(date --iso-8601) " +for i in 1 10 20 30 +do + echo -n "$i day(s): $(find /srv/www/greptweet.com/u -maxdepth 1 -mindepth 1 -type d -mtime -$i | wc -l), " +done + +echo Total: $(find /srv/www/greptweet.com/u -maxdepth 1 -mindepth 1 -type d | wc -l) diff --git a/index.shtml b/index.shtml index 5800532..957a5af 100644 --- a/index.shtml +++ b/index.shtml @@ -55,34 +55,8 @@ if (user) { window.location.replace("/u/" + user); } - - +Tweets by @greptweet +