summaryrefslogtreecommitdiff
path: root/conflooze.sh
diff options
context:
space:
mode:
authormarcellus <msimon_fr@hotmail.com>2025-09-13 17:19:57 +0200
committermarcellus <msimon_fr@hotmail.com>2025-09-13 17:19:57 +0200
commit5802c70f2918cbb01aa5ec8d448d9f760e5a26dc (patch)
tree7f80b2470297eeb2349ae6a54a68a46e62f8b7fe /conflooze.sh
parent8d6532d1fac8657ce3c783a0f6fb73929e9f5b6d (diff)
parent961470cf5b09e54caad292ffc4a52881b3e478f2 (diff)
Merge branch 'main' of marcellus.cc:marcellusHEADmain
Diffstat (limited to 'conflooze.sh')
-rw-r--r--conflooze.sh19
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