projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trying again; was only getting the link for feisty meow code.
[feisty_meow.git]
/
scripts
/
notes
/
info_overload_report.sh
diff --git
a/scripts/notes/info_overload_report.sh
b/scripts/notes/info_overload_report.sh
index 19fa157b7251e0106fcc5d4a2697e4e78627a7a8..6bf78ca6fbf20f13bf86ddcf7e753526e973a737 100644
(file)
--- a/
scripts/notes/info_overload_report.sh
+++ b/
scripts/notes/info_overload_report.sh
@@
-1,7
+1,7
@@
# these metrics are how bogged down we are in to-do type items.
# these metrics are how bogged down we are in to-do type items.
-REPORT_FILE="$HOME/
quartz/history_info_overload
.txt"
+REPORT_FILE="$HOME/
cloud/overload_history
.txt"
# given a path, this will find how many items are under it, ignoring svn and git files.
function calculate_depth()
# given a path, this will find how many items are under it, ignoring svn and git files.
function calculate_depth()
@@
-10,30
+10,31
@@
function calculate_depth()
find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' '
}
find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' '
}
+##############
+
# notes are individual files of tasks, usually, although some are combined.
# notes are individual files of tasks, usually, although some are combined.
-note_depth=$(calculate_depth ~/quartz/grunty_notes)
-#$(find ~/quartz/grunty_notes/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ')
+note_depth=$(calculate_depth ~/cloud/grunty_notes)
-# projects are slightly more productive, ongoing things that are very active.
-project_depth=$(calculate_depth ~/quartz/projects)
-#$(find ~/quartz/projects/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ')
+# unsorted files haven't been categorized yet.
+unsorted_depth=$(calculate_depth ~/cloud/unsorted)
# source examples need to be sucked into other places, other codebases. they are not
# supposed to pile up here.
# source examples need to be sucked into other places, other codebases. they are not
# supposed to pile up here.
-source_example_depth=$(calculate_depth ~/quartz/example_source_code)
-#$(find ~/quartz/example_source_code/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ')
+source_example_depth=$(calculate_depth ~/cloud/example_source)
# the list files are web documents with to-do lists. individual items are marked with <li>.
# the list files are web documents with to-do lists. individual items are marked with <li>.
-item_depth=$(find ~/
quartz
/grunty_notes/ -type f -iname "*.html" -exec grep "<li" "{}" ';' | wc -l | tr -d ' ')
+item_depth=$(find ~/
cloud
/grunty_notes/ -type f -iname "*.html" -exec grep "<li" "{}" ';' | wc -l | tr -d ' ')
# scan across all appropriately named folders in our folders that live in the "cloud".
cloud_depth=0
# scan across all appropriately named folders in our folders that live in the "cloud".
cloud_depth=0
-for i in ~/cloud/
project-* ~/cloud/research-
*; do
+for i in ~/cloud/
*project* ~/cloud/*research
*; do
temp_depth=$(calculate_depth $i)
cloud_depth=$(($cloud_depth + $temp_depth))
done
temp_depth=$(calculate_depth $i)
cloud_depth=$(($cloud_depth + $temp_depth))
done
-total_overload=$(($note_depth + $item_depth + $project_depth + $source_example_depth + $cloud_depth))
+##############
+
+total_overload=$(($note_depth + $item_depth + $unsorted_depth + $source_example_depth + $cloud_depth))
report="\
\n\
report="\
\n\
@@
-41,7
+42,7
@@
Current information overload consists of:\n\
\n\
$note_depth\tnote files\n\
$item_depth\tto-do list items\n\
\n\
$note_depth\tnote files\n\
$item_depth\tto-do list items\n\
- $
project_depth\tproject
files\n\
+ $
unsorted_depth\tunsorted
files\n\
$source_example_depth\tsource examples\n\
$cloud_depth\tcloud notes\n\
-------\n\
$source_example_depth\tsource examples\n\
$cloud_depth\tcloud notes\n\
-------\n\