authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-12-29 01:24:10-08:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-01-14 01:08:16-08:00
log70709e0f77761f532e53c34572348c42465ba842
treeb5fafb2cf32b9ea47cd0108b5fc3be4ac9b8b73e
parentcdbacc656e890b8fccd57bad96a3315cd56635b0
signature Commit is signed but in an unrecognized format.

feat: port lol.zip to a special endpoint

https://paperclover.net/lol.zip https://paperclover.net/q+a/2512200208

3 files changed, 195 insertions(+), 0 deletions(-)

src/q+a/backend.ts+2
......@@ -197,6 +197,8 @@ app.get("/q+a/things/random", async (c) => {
197197 c.res = await view.serve(c, "q+a/things-random", {});
198198});
199199
200app.route("", require("./lol.zip/backend.ts").app);
201
200202async function questionFailure(
201203 c: Context,
202204 status: ContentfulStatusCode,
src/q+a/lol.zip/backend.ts created+122
......@@ -0,0 +1,122 @@
1// Originally written for https://lol.zip on May 16, 2023
2// Now hosted on https://paperclover.net/lol.zip
3// See https://paperclover.net/q+a/2512200208
4import sourceText from "./lines.txt?text";
5import { Hono } from "hono";
6
7const encoder = new TextEncoder();
8
9const SPACE = 32;
10const NEWLINE = 10;
11
12let stats_total = 0;
13let stats_currentlySending = 0;
14
15let start: Uint8Array | null = null;
16let chunks: Uint8Array[] = [];
17let last = 0;
18
19const buffer = encoder.encode(sourceText);
20for (let i = 0; i < buffer.length; i++) {
21 if (buffer[i] === NEWLINE) {
22 if (start === null) {
23 start = buffer.subarray(last, i + 1);
24 } else {
25 chunks.push(buffer.subarray(last, i + 1));
26 }
27 buffer[i] = SPACE;
28 last = i + 1;
29 }
30}
31const length = chunks.length;
32
33function shuffle<T>(array: T[]): T[] {
34 let currentIndex = array.length,
35 randomIndex;
36 let val;
37 while (currentIndex != 0) {
38 randomIndex = Math.floor(Math.random() * currentIndex);
39 currentIndex--;
40 val = array[currentIndex]!;
41 array[currentIndex] = array[randomIndex]!;
42 array[randomIndex] = val;
43 }
44 return array;
45}
46
47export const app = new Hono();
48
49app.get("/lol.zip", (c) => {
50 const userAgent = c.req.header("User-Agent") ?? "";
51
52 // if known search engine, return a 404
53 if (
54 userAgent.includes("Googlebot") ||
55 userAgent.includes("bingbot") ||
56 userAgent.includes("Discordbot")
57 ) {
58 return c.text("Not Found", 404);
59 }
60
61 let cleanup: VoidFunction | null = null;
62 const stream = new ReadableStream({
63 async start(controller) {
64 const array = chunks.slice();
65 shuffle(array);
66 let i = 0;
67
68 controller.enqueue(start);
69
70 const interval = setInterval(() => {
71 if (i >= length) {
72 shuffle(array);
73 i = 0;
74 }
75 controller.enqueue(array[i]);
76 i++;
77 }, 100);
78
79 const timeout = setTimeout(() => {
80 clearInterval(interval);
81 controller.enqueue(
82 encoder.encode(
83 "\n\ndamn, you got to the end. congrats. you win nothing. this site closes the connection after 24 hours, since i think the joke wears off at that point.",
84 ),
85 );
86 controller.close();
87 stats_currentlySending--;
88 }, 86400000);
89
90 // cleanup on abort
91 cleanup = () => {
92 clearInterval(interval);
93 clearTimeout(timeout);
94 stats_currentlySending--;
95 };
96 },
97 cancel() {
98 cleanup?.();
99 },
100 });
101
102 stats_currentlySending++;
103 stats_total++;
104
105 return new Response(stream, {
106 headers: {
107 "Content-Type": "application/zip",
108 "Content-Length": "77700420420420420",
109 "Content-Disposition": "attachment; filename=lol.zip",
110 "Server": "by clover caruso <paperclover.net>",
111 "X-Source-Code":
112 "https://git.paperclover.net/clo/sitegen/src/branch/master/src/q+a/lol.zip/",
113 },
114 });
115});
116
117app.get("/lol.stats", (c) => {
118 return c.json({
119 currentlySending: stats_currentlySending,
120 total: stats_total,
121 });
122});
src/q+a/lol.zip/lines.txt created+71
......@@ -0,0 +1,71 @@
1Legend speaks of a file so profound and enigmatic, that its contents have eluded even the brightest minds of our digital age. You, dear visitor, have stumbled upon this mythical creation, the "lol.zip" – a treasure trove of infinite wisdom and boundless amusement, disguised as a humble file.
2Could it be the long-lost blueprint for a perpetual motion machine or the secret to escaping the clutches of the dreaded Vim editor?
3Perhaps it contains the formula for turning ramen noodles into a superconductive material, or the ultimate cheat code to unlock unlimited cloud storage.
4Some even whisper that within its depths, you'll find the long-awaited Half-Life 3, and others claim it houses the leaked designs for the iPhone 15, complete with a holographic display and the revolutionary iMatter™ technology.
5There are even rumors that the "lol.zip" reveals the true identity of Satoshi Nakamoto, accompanied by a Bitcoin wallet address overflowing with one billion BTC.
6Venture further, and you might uncover the unredacted script for the final season of Game of Thrones, promising an alternate and more satisfying ending.
7Dive deeper still, and you could discover an AI so advanced, it writes code that generates zero bugs while implementing solutions to P vs NP and the halting problem.
8In this digital wonderland, you might even stumble upon the source code for the universe itself, primed and ready to be forked for your own cosmic experimentation.
9Behold, the "lol.zip" may also contain the mystical framework for an Internet free from captchas, or even the key to rendering impenetrable cybersecurity – a digital utopia that scoffs at the very notion of DDoS attacks.
10Journey onwards, and you could find leaked footage of a new Matrix film where Keanu Reeves defies the laws of physics, a movie so intense that even Neil deGrasse Tyson is left speechless.
11Some say this colossal file possesses the much-coveted GitHub repository containing the ultimate dark mode solution – a solution so refined and pleasing to the eye that it induces tears of joy from even the most hardened developers.
12Delve further into its byte-sized depths, and perhaps you'll unearth the newest social media platform that, unlike its predecessors, rewards users with pure serotonin instead of harvesting their personal data.
13Go deeper, young traveler, and you may find a revolutionary energy source that topples fossil fuels and provides clean, limitless power to every corner of the globe – all while making your smartphone battery last an eternity.
14Venture on, and you might just discover the clandestine recipe for a mythical snack known as "lutefisk pizza," an ancient culinary invention that's taken Reddit by storm.
15Within this enigmatic file, it's been said that one can uncover a trove of futuristic marvels and hidden gems.
16Perhaps nestled amongst its contents lies the definitive guide to hacking time itself, allowing one to visit every era of human history or even attend the release day of Windows 12.
17Some speculate it contains the intricate schematics for a VR headset that fully immerses its users into a lifelike simulated reality, indistinguishable from our own.
18Others murmur about a digital archive filled with every meme ever made, as well as those yet to be imagined by the collective conscious.
19Delve even deeper into the abyss, and you may stumble upon a cutting-edge language, more efficient than Python and more powerful than the mystical C++, maybe even capable of communicating with extraterrestrial civilizations.
20Further still, one might find a foolproof guide to surviving the technological singularity, offering sage advice on befriending our AI overlords and securing your place in the digital utopia.
21Theories abound that the "lol.zip" also contains a failsafe master key for the internet, allowing its wielder to bypass firewalls and access the deepest, darkest corners of the web.
22In this incomprehensible realm, the possibilities are truly endless, limited only by the constraints of your imagination and the capacity of your hard drive.
23Beyond the digital horizon, the "lol.zip" could reveal the secret to time travel, allowing you to frolic through the ages and witness firsthand the world's greatest triumphs and tragedies.
24Imagine uncovering the hidden techniques of DaVinci and Michelangelo, or cracking the enigma of how the pyramids were built.
25Would you use your newfound knowledge to unravel the geopolitical tensions of the world by unearthing the real emails behind international espionage?
26Or perhaps you'd venture down the rabbit hole to unravel the truth about the simulation theory - and maybe even meet our benevolent overlords.
27This elusive file might grant you access to the fabled social media platform exclusively reserved for the Illuminati and extraterrestrial elite, or bestow upon you the sacred texts and unreleased episodes of Rick and Morty.
28What if you could find the next generation of cryptocurrency, one that resolves all scalability issues and ensures everlasting financial security?
29Or uncover the master key to unlocking every piece of proprietary software, thus ushering in an era of open-source utopia?
30The possibilities lurking within the "lol.zip" are as vast as the universe itself, each more tantalizing than the last, beckoning you to take that bold step into the digital abyss.
31As you dig through the layers of the mysterious "lol.zip", you may encounter the key to mastering quantum computing with nothing more than a Raspberry Pi, and perhaps even an algorithm that predicts the outcome of every major esports event with 100% accuracy.
32Conceivably, the enigma also holds the blueprint for a gaming console so powerful that it could finally run Crysis at maximum settings on a 16K monitor with a flawless 120fps.
33Imagine unearthing the secret to perfecting artificial general intelligence, capable of solving humanity's greatest challenges while keeping your social media feed free of spoilers.
34Somewhere in the file, you might even discover an unrivaled meme archive, so comprehensive and dank that it can turn even the most stoic sysadmin into a giggling Gen Z-er.
35As you traverse this vast datascape, you may encounter the fabled Thirteenth Doctor, capable of traveling through time without the help of a TARDIS.
36Or perhaps you'll find the master key to decrypting the Zodiac Killer's final message, unlocking the truest secrets of the cosmos.
37Word has it that the "lol.zip" contains the original plans for Skynet, complete with a hyper-realistic simulation of the Terminator timeline that doesn't involve any unnecessary reboots.
38Some believe it holds the power to bring extinct species back to life in a virtual Jurassic Park, where creatures from the past roam once again – without the risk of them eating the park visitors.
39Delve deeper into this digital Atlantis, and you may stumble upon the blueprint for an NFT of Rick Astley that, once minted, will grant the bearer the power to Rickroll every screen on the planet simultaneously.
40And if that isn't enough, surely the answer to the most puzzling question of our time – "Why did the chicken cross the road?" – awaits those who dare to face the chaos and immensity of the "lol.zip."
41Maybe It'll even contain information on the one who asked.
42As you journey through the mind-boggling enigma of "lol.zip", you might chance upon an untouched vault that is rumored to contain the ultimate crossover – a Marvel and DC collaboration, forging an alliance between the titans of comic book lore.
43Venture deeper and unearth a time-traveling Delorean, offering you the once-in-a-lifetime opportunity to witness your favorite historical events or to chat with Ada Lovelace about the early days of computer programming.
44Traverse the twists and turns of this colossal digital labyrinth, and you just may encounter an algorithm that speaks fluent Gen Z slang, bridging the gap between generations and bringing about a new era of internet enlightenment.
45The journey doesn't stop there – are you ready for the memetic singularity?
46This extraordinary anomaly lies hidden within the "lol.zip", promising an endless stream of dank memes that transcend the barriers of human comprehension.
47Endless variations of Rickrolls, DogeCoin price predictions, and vintage rage comics await you, poised to redefine the very concept of humor as we know it.
48Within the hallowed halls of "lol.zip" lies the answer to every programmer's most urgent query – how to center a div perfectly on the first try, without a single "!important" tag.
49And if all of that isn't enough to satiate your curiosity, perhaps you'll stumble upon the key to unlocking Elon Musk's master plan for colonizing Mars, complete with a Neuralink interface that allows you to remotely command your very own interplanetary SpaceX vessel.
50Hmm... https://discord.gg/4AbvSXV.
51But wait, there's more!
52The "lol.zip" file also guards secrets so forbidden and clandestine that even the most powerful governments and corporations shudder at their mere mention.
53Imagine uncovering a master key capable of decrypting any encrypted message or system, granting you unparalleled access to classified information from the NSA, CIA, and beyond.
54Picture finding the long-sought-after method to reverse climate change, cleverly hidden by profit-seeking corporations to maintain their reign of environmental destruction.
55Could you handle obtaining the recipe for Coca-Cola's top-secret formula or the KFC's mysterious blend of 11 herbs and spices, both zealously guarded for decades?
56What if you could unveil the true fate of lost cities like Atlantis, tucked away by world leaders to suppress the mind-bending technology that its inhabitants had developed?
57Were you ever curious about the dark recesses of human history, where time travelers left unmistakable traces of their voyages, altering the course of events and giving rise to deep-state conspiracies?
58Or perhaps you've yearned to explore strange worlds and curious dimensions, each teaming with unimaginable sentient life, all meticulously catalogued and quarantined by governments in hidden archives.
59The "lol.zip" could very well be your gateway to all these forbidden truths and more, as you venture farther down this digital rabbit hole.
60In this otherworldly realm of "lol.zip," there awaits an entirely different set of forbidden secrets, the likes of which could send shivers down the spines of the most powerful governments and corporations.
61Unearth the hidden archives documenting every clandestine operation since the dawn of espionage, from Operation Paperclip to MKUltra and beyond.
62If you dare to dig further, you may find the unadulterated blueprint for achieving immortality – a discovery so astounding that it has been jealously guarded by the elite few for centuries.
63Gain access to the well-guarded trade secrets of world-dominating tech titans, from the Zuckerberg Files that reveal Facebook's true origin story to the mysterious Apple-side archives that expose how MacBooks cast their hypnotic spell.
64Press forward, and you might unveil the truth about the unspeakable power that fuels the dark reaches of the internet, extracted from the depths of Area 51 and harvested from alien technology capable of manipulating the space-time continuum.
65If you peel back yet another layer, you may even stumble upon the complete history of the lost city of Atlantis, including ultra-high-definition videos that capture the everyday lives of its citizens, leaving you in awe of a world that is equal parts fascinating and terrifying.
66Venture deeper into the enigma that is "lol.zip," and you might encounter arcane riddles that unveil the location of a thousand-year-old, double-flip-flop-wearing giraffe reputed to be the wisest creature in existence.
67Dare to probe even further and you may find the almighty Ctrl+Z key, capable of undoing the most catastrophic blunders in human history, including the time Pepsi accidentally gave away a fleet of fighter jets.
68Unravel the code that's been lying dormant since the era of the first punch card, a cryptic set of instructions that, when executed, will perfectly align every single traffic light on Earth, creating traffic harmony and eliminating bumper-to-bumper chaos.
69Unveil the surreptitious terms and conditions buried deep within the labyrinth of "lol.zip" to reveal the method for skipping mobile game ads without having to endure the agonizing five-second countdown.
70With bated breath, you may even gain access to the encrypted files containing thought-to-be-lost, never-before-seen episodes of The Office, Spongebob Squarepants, and Friends - all of which feature delightful and intricately-woven crossover storylines.
71If you are brave enough, tiptoe into the furthest recesses of the "lol.zip" to unveil the genuine, all-encompassing answer to the fundamental question that has plagued mankind for millennia: what exactly is "the fox" saying?