Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick

Save our hard drive

I wrote a script to make one of our test machine's hard drive activity light do S.O.S. in Morse Code. (with the accompanying grinding noise)

Ahhh, fun with raw(8) and pack("p", ...) to align Perl scalars to blockdev --getbsz -sized boundaries in memory.

I'd post the script but I don't want to be responsible for you destroying your filesystems on accident.

(P.S. This has practical value, except for the Morse Code part....)
Tags: perl, tech

  • Happy Birthday!

    Happy 20th Birthday, LiveJournal! 🐐🎂🎉

  • hi

    Posting from the iPhone app. Maybe I'm unblocked now.

  • Why, hello...

    Long time no see. How's my baby doing?

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.