changes accidentally checked into main branch
authorChris Koeritz <fred@gruntose.com>
Sun, 14 Nov 2021 14:36:24 +0000 (09:36 -0500)
committerChris Koeritz <fred@gruntose.com>
Sun, 14 Nov 2021 14:36:24 +0000 (09:36 -0500)
bringing back into dev.
and btw, #&**&#&@^#&^@&#^!!!!!

scripts/core/functions.sh
scripts/customize/fred/java_profile.sh
scripts/customize/fred/scripts/games/zap_fallout.sh [new file with mode: 0644]
scripts/customize/fred/scripts/games/zap_fallout_task.sh [deleted file]
scripts/customize/fred/scripts/games/zap_skyrim.sh [new file with mode: 0644]
scripts/files/find_newest_files.sh [new file with mode: 0755]
scripts/files/find_oldest_files.sh [new file with mode: 0755]

index c25a8791622d650728a35c0e5441acb7ede79393..c5a4f87daa7cc153a4d3d471a9c0d6e70e80ac67 100644 (file)
@@ -966,7 +966,7 @@ return 0
 #hmmm: would the composition of those two types of extensions cover all the files i want to rename?  they have to be "important".
     find "${dirs[@]}" -follow -maxdepth 1 -mindepth 1 -type f -and -not -iname ".[a-zA-Z0-9]*" | \
         grep -i \
-"csv\|doc\|docx\|eml\|html\|jpeg\|jpg\|m4a\|mov\|mp3\|odp\|ods\|odt\|pdf\|png\|ppt\|pptx\|rtf\|txt\|vsd\|vsdx\|xls\|xlsx\|xml\|zip" | \
+"csv\|doc\|docx\|eml\|html\|jpeg\|jpg\|m4a\|mov\|mp3\|odp\|ods\|odt\|pdf\|png\|ppt\|pptx\|rtf\|txt\|vsd\|vsdx\|wav\|xls\|xlsx\|xml\|zip" | \
         sed -e 's/^/"/' | sed -e 's/$/"/' | \
         xargs bash "$FEISTY_MEOW_SCRIPTS/files/spacem.sh"
     # drop the temp file now that we're done.
index f98030a679856d2d5dcec81fa4dcb87fabe4e23a..7c4ce0c97c737e776cb8a8033647786210056741 100644 (file)
@@ -135,6 +135,10 @@ if [ ! -z "$ECLIPSE_DIR" ]; then
   fi
   export PATH=$e:$PATH
 fi
+# add in our personal bin path.
+if [ -d "/usr/local/fred/bin" ]; then
+  export PATH=/usr/local/fred/bin:$PATH
+fi
 
 ############################
 
diff --git a/scripts/customize/fred/scripts/games/zap_fallout.sh b/scripts/customize/fred/scripts/games/zap_fallout.sh
new file mode 100644 (file)
index 0000000..21e1ddf
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# windows compatible process killer for any stray processes started as
+#"fallout" something.
+
+source $FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh
+
+procid="$( psa fallout | tail -n 1 | awk '{ print $1; }' )"
+
+if [ ! -z "$procid" ]; then
+  taskkill.exe /f /pid ${procid}
+fi
diff --git a/scripts/customize/fred/scripts/games/zap_fallout_task.sh b/scripts/customize/fred/scripts/games/zap_fallout_task.sh
deleted file mode 100644 (file)
index 21e1ddf..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-# windows compatible process killer for any stray processes started as
-#"fallout" something.
-
-source $FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh
-
-procid="$( psa fallout | tail -n 1 | awk '{ print $1; }' )"
-
-if [ ! -z "$procid" ]; then
-  taskkill.exe /f /pid ${procid}
-fi
diff --git a/scripts/customize/fred/scripts/games/zap_skyrim.sh b/scripts/customize/fred/scripts/games/zap_skyrim.sh
new file mode 100644 (file)
index 0000000..0fec261
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# windows compatible process killer for any stray processes started as
+#"fallout" something.
+
+source $FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh
+
+procid="$( psa skyrim | tail -n 1 | awk '{ print $1; }' )"
+
+if [ ! -z "$procid" ]; then
+  taskkill.exe /f /pid ${procid}
+fi
diff --git a/scripts/files/find_newest_files.sh b/scripts/files/find_newest_files.sh
new file mode 100755 (executable)
index 0000000..04a1944
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# find the most recently updated files in a folder.
+# made friendlier for dell by avoiding the .clusterConfig directory and for
+# netapp by avoiding the .snapshot directory.
+
+declare -a paths=("${@}")
+echo "paths 1 now is: ${paths[@]}"
+if [ ${#paths} -eq 0 ]; then
+  paths[0]='.'
+fi
+echo "paths 2 now is: ${paths[@]}"
+
+for pathname in "${paths[@]}"; do
+
+  echo ===============
+  echo newest on path: $pathname
+  echo ===============
+  echo
+  find "$pathname" -path "$pathname/.clusterConfig" -prune -o -path "$pathname/.snapshot" -prune -o -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head -n 20
+
+  echo; echo
+
+done
+
diff --git a/scripts/files/find_oldest_files.sh b/scripts/files/find_oldest_files.sh
new file mode 100755 (executable)
index 0000000..f50e32c
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# find the most antiquated files in a folder.
+# made friendlier for dell by avoiding the .clusterConfig directory and for
+# netapp by avoiding the .snapshot directory.
+
+declare -a paths=("${@}")
+echo "paths 1 now is: ${paths[@]}"
+if [ ${#paths} -eq 0 ]; then
+  paths[0]='.'
+fi
+echo "paths 2 now is: ${paths[@]}"
+
+for pathname in "${paths[@]}"; do
+
+  echo ===============
+  echo oldest on path: $pathname
+  echo ===============
+  echo
+  find "$pathname" -path "$pathname/.clusterConfig" -prune -o -path "$pathname/.snapshot" -prune -o -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -n | cut -d: -f2- | head -n 20
+
+  echo; echo
+
+done
+