Skip to content

Instantly share code, notes, and snippets.

@lofaldli
Last active February 11, 2016 13:51
Show Gist options
  • Select an option

  • Save lofaldli/259df619a039b7649ed0 to your computer and use it in GitHub Desktop.

Select an option

Save lofaldli/259df619a039b7649ed0 to your computer and use it in GitHub Desktop.

How to slack off

  1. zcat /var/log/*.gz | bash -c 'while read line; do echo $line; sleep "0.$((1+$RANDOM%6))"; done'
  2. cat $(find /var/log/ -exec file {} \; | grep text | cut -d: -f1)
  3. sed -re s/'[0-9]{4}(-[0-9]{2}){2} [0-9]{2}(:[0-9]{2}){2}'/"$(date +'%Y-%m-%d %H:%M:%S')"/g
  4. cat /dev/urandom | hexdump -C | grep "ca fe"
  5. hexdump -C /dev/urandom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment