Destructive fun with Linux - Page 5


Page 5 of 5 FirstFirst 12345
Results 61 to 69 of 69

Thread: Destructive fun with Linux

  1. #61
    Join Date
    Dec 2002
    Location
    Iron Town
    Posts
    102
    Originally posted by viperlin
    Code:
    #include <sys/types.h>
    #include <unistd.h>
    
    int main(void) {
    while (1)
    fork();
    }
    The best thing I did at summer camp this year was write a version of this which prints out "Hello, my name is $UID" before forking. It was fun to watch the computer blowing up... of course then I had to reboot
    Burn All GIFs.

  2. #62
    Join Date
    Jul 2001
    Location
    Fife, Scotland
    Posts
    1,794
    Floog,

    Thanks for the help. I'll take it more as a warning that anything practical. Long-lasting damage is not really what I was after. I guess I could overclock the graphics card and CPU to ridiculous proportions, pull the power plug, wait for everything to cool down, disconnect the CPU fan and see which burns out faster, but my aim is to completely destroy a Linux box with as many weird and wonderful effects as possible (and without the costly expense of replacing components).

    I guess the faster way to destroy a machine is a shotgun through the hard drive, but since I've only just bought this one that's not really an option.

    I'd love to see how long a hard drive can be kept running with continous writes before it's totally warped into the next dimension... Hehe...

    James
    -----------------------------
    UseLinux.net
    -----------------------------

    perl -e 'use Math::Complex;$|=1;for$r(0..24){for$c (0..79){$C=cplx(($c/20.0)-3.0,-($r/12.0)+1.0);$Z= cplx(0,0);for($i=0;($i<80)&&(abs($Z)<2.0);$i++){$Z =$Z*$Z+$C;}print$i>=80?"*":" ";}print"\n";}'

  3. #63
    Join Date
    Jun 2006
    Location
    Haarlem, Holland
    Posts
    129
    disconnect the CPU fan and see which burns out faster
    You could be amazed, I was:

    I removed the cpu fan from my overclocked celeron366@458, and what happend: It is still working.

    At work a pentium133 (yes still working) had a power-supply fan that got stuck in dust. the computer was working for at least a week (about 9 hours a day) after I discovered it (and bevore I replaced the power-supply)

  4. #64
    Join Date
    Dec 2003
    Location
    Phoenix, AZ
    Posts
    647

    Fun with color

    This isn't destructive or annoying the slightest, but it's a great bit of code to slip into a newb sysadmins .bashrc or .bash_profile.

    Just copy and paste this code into a shell script and run it. If the formatting gets messed up in the copy/paste, then the letters might not line up properly.
    Code:
    !/bin/bash
    echo -e "\033[30m\033[41m"
    echo -e "\033[30m\033[41m     \033[0m      \033[30m\033[41m          \033[0m    \033[30m\033[41m       \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m     \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m     \033[0m      \033[30m\033[41m          \033[0m    \033[30m\033[41m       \033[0m"
    echo -e "\033[0m"
    
    echo -en " o                                             \o_"
    echo -e "\033[31m/\033[0mAieee!"
    echo -en "<\==-      -  -  -              -  -  -      __/"
    echo -e "\033[31m<\033[0m"
    echo -e "/ \                                            \\"
    "There's a big difference between "copy" and "use". It's exatcly the same
    issue whether it's music or code. You can't re-distribute other peoples
    music (becuase it's _their_ copyright), but they shouldn't put limits on
    how you personally _use_ it (because it's _your_ life)."

    --Linus Torvalds

  5. #65
    Join Date
    Feb 2003
    Location
    IOWA
    Posts
    33
    Quote Originally Posted by voidinit
    This isn't destructive or annoying the slightest, but it's a great bit of code to slip into a newb sysadmins .bashrc or .bash_profile.

    Just copy and paste this code into a shell script and run it. If the formatting gets messed up in the copy/paste, then the letters might not line up properly.
    Code:
    !/bin/bash
    echo -e "\033[30m\033[41m"
    echo -e "\033[30m\033[41m     \033[0m      \033[30m\033[41m          \033[0m    \033[30m\033[41m       \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m     \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m \033[0m    \033[30m\033[41m \033[0m          \033[30m\033[41m \033[0m        \033[30m\033[41m \033[0m"
    echo -e "\033[30m\033[41m     \033[0m      \033[30m\033[41m          \033[0m    \033[30m\033[41m       \033[0m"
    echo -e "\033[0m"
    
    echo -en " o                                             \o_"
    echo -e "\033[31m/\033[0mAieee!"
    echo -en "<\==-      -  -  -              -  -  -      __/"
    echo -e "\033[31m<\033[0m"
    echo -e "/ \                                            \\"
    -zeke-

  6. #66
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    Ok, that one is going into a .bashrc at work tomorrow voidinit
    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  7. #67
    Join Date
    Oct 2004
    Location
    suomi
    Posts
    364
    Quote Originally Posted by folkert
    You could be amazed, I was:

    I removed the cpu fan from my overclocked celeron366@458, and what happend: It is still working.

    At work a pentium133 (yes still working) had a power-supply fan that got stuck in dust. the computer was working for at least a week (about 9 hours a day) after I discovered it (and bevore I replaced the power-supply)
    My friend had his Duron's heatsink misplaced and results were similar to this: http://www.youtube.com/watch?v=HQUj1Huxsqs
    ladoga

  8. #68
    Join Date
    Oct 2004
    Location
    suomi
    Posts
    364
    Once I intended to do mkdosfs -I /dev/sdb, which was my USB stick..but somehow I just made a typo. (/dev/sda as my system drive)
    # mkdosfs -I /dev/sda

    It will wipe out partition information and make your hard disk one big and empty "superfloppy" formatted fat drive. Have fun trying to recover your system from that. It is possible.

    After one night of sweating and experimenting (i had no backup) with various system rescue tools i managed to recover all my partitions and files getting the system back into condition it was before (i intended to do mkdosfs -I /dev/sdb, which was my USB stick). testdisk utility was involved.
    ladoga

  9. #69
    Join Date
    Jun 2006
    Location
    Haarlem, Holland
    Posts
    129
    My friend had his Duron's heatsink misplaced and results were similar to this: http://www.youtube.com/watch?v=HQUj1Huxsqs
    Verry impressive

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •