hi guys
so we all know hackertyper.com, and if you dont, its a lil funny site where if you press a key it makes you type some epic code
so i was wondering, where does that epic code come from?
so i grabbed the first line of code you type, encased it in quotes, and just… searched it up on github! i dont even know why, i just thought that the code surely may have been grabbed from someplace like github.
and what matches do i find? github reports 2.2 thousand matched, however those were repos that referenced hackertyper.com, or, had something to do with a "kernel"… so i searched up the line of code on the linux kernel, zero results? what kind of imbecile dare change the infamous hackertyper.com code? so, obviously, i grabbed the second line of (non empty) code you type, put it in quotes, and ran a search on the linux kernel repo, again. what do i find? i find… a single file, kernel/groups.c? okay then, so WHERE in the glerp is my FIRST LINE???
let's analyze it.
this is the first line:
struct group_info init_groups = { .usage = ATOMIC_INIT(2) };this is c code, which defines a variable named init_groups of type struct group_info (the struct is required because the struct has probably not been typedef'd for some reason anywhere in the code (odd?))
so, i think to myself, why not search just init_groups? i search it in the file, nothing. search it in the repo?? i find two matches! one is an unrelated function that has the name in its name, and the variable! in a slightly different place, init/init_task.c? i search around in that file too, i find nothing.
suddenly, i realized something. inside those matches, some of matched repo's filepaths had linux-6.11 in them, so i wonder… did the code get sliced off to separate files for whatever reason in linux version >6.11?
so i went into the 6.11 tag of the linux kernel repo, and while searching for files, i find kernel/groups.c? surely this had to be it? nope! both lines, still not found in one file!
this had to be it, right? until, i decided, on the noble journey… to CLONE THE LINUX KERNEL!! and no, i will not do a shallow clone, because i'd like to fetch all objects, and then find in all objects both lines to find the blob object ids, then find commits with trees that reference the previously matched object ids, and then… find the LAST and then OLDEST commit that HAS THE EPIC HACKERTYPER.COM CODE!!
and uhhh cloning the linux kernel swallows hella internet and storage, so, hopefully, after a couple hours of cloning, my puter won't collapse, and i'll be able to do so. and because i want to get this post over, i'll do a part 2, eventually, when i remember to.
bye!
- grad 👨💻
Comments
Displaying 0 of 0 comments ( View all | Add Comment )