Sandwiches.

June 3, 2007

XKCD owns.


#include <stdio.h>
#include <unistd.h>


int main (int argc, const char * argv[]) {
if(getuid() != 0) {
printf("What? Make it yourself.\n");
return 1;
} else {
printf("Okay.\n");
return 0;
}
}

Entry Filed under: code. .

4 Comments

  • 1. Michael James  |  June 14, 2007 at 12:30 am

    LOL. That’s hilarious. If only life were that easy!

    On that note, if I could fork a copy of myself and have it go to work for me (in the background, of course), that’d be great.

  • 2. Eelco Hillenius  |  June 19, 2007 at 10:18 pm

    My girlfriend says her name is not sudo.

  • 3. atma  |  July 15, 2007 at 11:10 am

    Funny!

  • 4. Mackenzie  |  October 9, 2007 at 11:56 pm

    Incidentally, I’m attempting to muddle my way through make’s source code to add this as an Easter Egg. Mine would print out an ASCII-Art sandwich though. Make’s source is zomgwtfux0r insane though.


About Me



I'm Patrick Thomson. I'm a sophomore at George Washington University, passionate about technology, Apple, and programming in Cocoa, Python, Ruby, and Nu.

Why "important shock"? It's an anagram of my name.

Meta

Blogroll

a

Top Posts

Blog Stats