From f9713a722581c57f00d06c530476279ddbd9de7a Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Thu, 7 Mar 2013 22:10:48 -0500 Subject: [PATCH] moved some stuff around, probably outdated overload report. --- .../eclipse/cpp-fredstyle_2013_03_03.xml | 0 .../configuration}/eclipse/dictionary.txt | 0 .../java_style-fredstyle_2013_02_21.xml | 0 examples/multimedia/wma2mp3.sh | 67 ------------------- scripts/notes/info_overload_report.sh | 4 +- 5 files changed, 2 insertions(+), 69 deletions(-) rename {examples => database/configuration}/eclipse/cpp-fredstyle_2013_03_03.xml (100%) rename {examples => database/configuration}/eclipse/dictionary.txt (100%) rename {examples => database/configuration}/eclipse/java_style-fredstyle_2013_02_21.xml (100%) delete mode 100644 examples/multimedia/wma2mp3.sh diff --git a/examples/eclipse/cpp-fredstyle_2013_03_03.xml b/database/configuration/eclipse/cpp-fredstyle_2013_03_03.xml similarity index 100% rename from examples/eclipse/cpp-fredstyle_2013_03_03.xml rename to database/configuration/eclipse/cpp-fredstyle_2013_03_03.xml diff --git a/examples/eclipse/dictionary.txt b/database/configuration/eclipse/dictionary.txt similarity index 100% rename from examples/eclipse/dictionary.txt rename to database/configuration/eclipse/dictionary.txt diff --git a/examples/eclipse/java_style-fredstyle_2013_02_21.xml b/database/configuration/eclipse/java_style-fredstyle_2013_02_21.xml similarity index 100% rename from examples/eclipse/java_style-fredstyle_2013_02_21.xml rename to database/configuration/eclipse/java_style-fredstyle_2013_02_21.xml diff --git a/examples/multimedia/wma2mp3.sh b/examples/multimedia/wma2mp3.sh deleted file mode 100644 index a0224ef3..00000000 --- a/examples/multimedia/wma2mp3.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/bash - -# wma to mp3 script by mtron -# from http://ubuntuforums.org/showthread.php?t=37793 - -# have found that soundconverter package on ubuntu works on more types -# and is a bit more polished, but mtron's script kicks ass anyhow, if all -# you need is wma -> mp3 conversions. -# --fred hamster - -zenity --info \ - --text="this script converts all wma files in the current folder -to mp3s and puts them in the folder output - -all lame command line options can be set in the next step. - -usage: - lame -m s: for stereo mp3 output - lame -m s V 3-4-5: for stereo mp3 output with VBR" - -# Dialog box to choose output quality -FORMAT=$(zenity --list --title="Choose mp3 output quality" --radiolist --column="Check" --column="Quality (editable)" --editable "" "lame -m s" "" "lame -m s -V 3" "" "lame -m s -V 4" "" "lame -m s -V 5") - -if [ $FORMAT -eq ""]; then -zenity --error --text="mp3 output quality not defined or no wma file found - -usage: - lame -m s: for stereo mp3 output - lame -m s V 3-4-5: for stereo mp3 output with VBR - -type: lame --longhelp -for all command line options " -exit 1 -fi - -mkdir -p output -cp *.wma output -cd output - -# How many files to make the progress bar -PROGRESS=0 -NUMBER_OF_FILES=$(find -iname "*.wma") -let "INCREMENT=100/$NUMBER_OF_FILES" - -#remove spaces -(for i in *.wma; do mv "$i" $(echo $i | tr ' ' '_'); done - -#remove uppercase -for i in *.[Ww][Mm][Aa]; do mv "$i" $(echo $i | tr '[A-Z]' '[a-z]'); done - -#Rip with Mplayer / encode with LAME -for i in *.wma ; do -echo "$PROGRESS"; -echo "# Re-Coding $i"; -mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && $FORMAT audiodump.wav -o $i; -let "PROGRESS+=$INCREMENT" -done - -#convert file names -for i in *.wma; do mv "$i" "$(basename "$i" .wma).mp3"; -done - -rm audiodump.wav -let "PROGRESS+=$INCREMENT" -) | zenity --progress --title "$Recoding...encoding..." --percentage=0 - - diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index 241c3a7a..c7fb9f93 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -91,7 +91,7 @@ total_weight=0 # start out the report with a header. full_report="\ \n\ -Current information overload consists of:\n\ +current information overload consists of:\n\ \n\ " full_report+="count\tweight (kb)\tcomplexity\tcategory\n\ @@ -127,7 +127,7 @@ analyze_hierarchy_and_report ~/cloud/reading "reading list" full_report+="================================================================\n\ " -full_report+="$(format_report_line "$total_overload" "$total_weight" "$total_complexity" "Total Overload")" +full_report+="$(format_report_line "$total_overload" "$total_weight" "$total_complexity" "total overload")" full_report+="\n\ [gathered on $(date)]\n\n\ ##############" -- 2.34.1