diff options
| author | martial <msimon_fr@hotmail.com> | 2024-11-28 16:45:58 +0100 |
|---|---|---|
| committer | martial <msimon_fr@hotmail.com> | 2024-11-28 16:45:58 +0100 |
| commit | 4d6c4bf23e9ec9c9132644bd79e14794a6ac565c (patch) | |
| tree | 79e1bf7d06ffde6c575b338d26227b0a9ce62456 | |
| parent | 962f9d41bfe9c8e8d267b156a952c432e9f0a94c (diff) | |
feat: conflooze
| -rw-r--r-- | conflooze.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/conflooze.sh b/conflooze.sh new file mode 100644 index 0000000..cc3acc1 --- /dev/null +++ b/conflooze.sh @@ -0,0 +1,15 @@ +#!/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%%\e[m\r" "$(echo "$i+56" | bc)" + sleep 0.5 + i="$(echo "$i * 1.5" | bc)" +done |
