summaryrefslogtreecommitdiff
path: root/conflooze.sh
blob: b7198a85217a535fab02e0ea955fed59adad2c02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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