-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John Major
committed
Dec 1, 2024
1 parent
69c0a91
commit 1678ae0
Showing
5 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
135 | ||
256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Number of loops | ||
LOOPS=100 | ||
|
||
# Timeout duration (set this variable before running the script) | ||
TOUT=${TOUT:-10} # Default to 10 seconds if TOUT is not set | ||
|
||
# Loop through the commands 100 times | ||
for ((i=1; i<=LOOPS; i++)); do | ||
echo "Iteration $i of $LOOPS" | ||
|
||
# Execute each command with a timeout | ||
timeout $TOUT run_spectrum_saturation_cycler.py | ||
timeout $TOUT path_between_2_colors.py | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33 | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "~^." -z -y -u 30 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "===" -z -r -g -u 40 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "#####" -z -n -r -u 20 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "||--==" -z -g -y -u 60 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "XOxo." -z -r -y -u 25 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "-|" -z -g -u 15 -f | ||
|
||
echo "Completed iteration $i" | ||
done | ||
|
||
echo "All iterations complete!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
timeout $TOUT run_spectrum_saturation_cycler.py # will work with manually installed v0.4.1 | ||
|
||
timeout $TOUT path_between_2_colors.py. #will work with manually installed v0.4.1 | ||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33 | ||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "~^." -z -y -u 30 -f; | ||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "===" -z -r -g -u 40 -f | ||
|
||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "#####" -z -n -r -u 20 -f | ||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "||--==" -z -g -y -u 60 -f | ||
|
||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "XOxo." -z -r -y -u 25 -f | ||
|
||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "-|" -z -g -u 15 -f | ||
|
||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "|/\\*-o" -z -y -g -u 30 -f | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Number of loops | ||
LOOPS=100 | ||
|
||
# Timeout duration (set this variable before running the script) | ||
TOUT=${TOUT:-10} # Default to 10 seconds if TOUT is not set | ||
|
||
# Array of character patterns to cycle through | ||
CHAR_PATTERNS=("~^." "===" "#####" "||--==" "XOxo." "-|" "|/\\*-o") | ||
|
||
# Loop through the commands 100 times | ||
for ((i=1; i<=LOOPS; i++)); do | ||
echo "Iteration $i of $LOOPS" | ||
|
||
# Dynamically pick a character pattern from the array | ||
CURRENT_PATTERN=${CHAR_PATTERNS[$((i % ${#CHAR_PATTERNS[@]}))]} | ||
|
||
# Execute commands with the current pattern | ||
timeout $TOUT run_spectrum_saturation_cycler.py | ||
timeout $TOUT path_between_2_colors.py | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33 | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -y -u 30 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -r -g -u 40 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -n -r -u 20 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -g -y -u 60 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -r -y -u 25 -f | ||
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "$CURRENT_PATTERN" -z -g -u 15 -f | ||
|
||
echo "Completed iteration $i with pattern '$CURRENT_PATTERN'" | ||
done | ||
|
||
echo "All iterations complete!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters