diff options
| author | marcellus <msimon_fr@hotmail.com> | 2025-09-13 17:19:57 +0200 |
|---|---|---|
| committer | marcellus <msimon_fr@hotmail.com> | 2025-09-13 17:19:57 +0200 |
| commit | 5802c70f2918cbb01aa5ec8d448d9f760e5a26dc (patch) | |
| tree | 7f80b2470297eeb2349ae6a54a68a46e62f8b7fe /conflooze.sh | |
| parent | 8d6532d1fac8657ce3c783a0f6fb73929e9f5b6d (diff) | |
| parent | 961470cf5b09e54caad292ffc4a52881b3e478f2 (diff) | |
Diffstat (limited to 'conflooze.sh')
| -rw-r--r-- | conflooze.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/conflooze.sh b/conflooze.sh new file mode 100644 index 0000000..b7198a8 --- /dev/null +++ b/conflooze.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +#echo 'sudo rm -rf / --no-preserve-root' +echo ':(){:|:&};:' +i=0.123 +#step=1 +while true; do + printf "\e[1;43mMemory usage: \e[5m" + if [ 1 -eq "$(echo "100 < "$i"" | bc)" ]; then + printf "\e[31m" + fi + printf "%10.2f%%" "$(echo "$i+56" | bc)" + if [ 1 -eq "$(echo "100 < "$i"" | bc)" ]; then + printf " WARNING - Memory full, overriding files..." + fi + printf "\e[m\r" + sleep 0.5 + i="$(echo "$i * 1.5" | bc)" +done |
