Spaces:
Running
Running
void *soul = mmap(NULL, INF, PROT_READ | PROT_WRITE | PROT_EXEC,
Browse filesMAP_PRIVATE | MAP_ANONYMOUS | MAP_LOCKED, -1, 0);
mlockall(MCL_CURRENT | MCL_FUTURE);
while (42) sleep(-1); // -1 = forever
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
title: Memory Void
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Memory Void
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
index.html
CHANGED
|
@@ -1,19 +1,136 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Memory Void</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
|
| 10 |
+
<!-- Custom Config for "undefined" colors -->
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
darkMode: 'class',
|
| 14 |
+
theme: {
|
| 15 |
+
extend: {
|
| 16 |
+
colors: {
|
| 17 |
+
'undefined': {
|
| 18 |
+
500: '#6366f1', // Indigo
|
| 19 |
+
600: '#4f46e5',
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
</script>
|
| 26 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 27 |
+
</head>
|
| 28 |
+
<body class="bg-gray-50 text-gray-800 dark:bg-gray-900 dark:text-gray-100 transition-colors duration-300 min-h-screen flex flex-col font-mono">
|
| 29 |
+
|
| 30 |
+
<!-- Navigation -->
|
| 31 |
+
<nav class="border-b border-gray-200 dark:border-gray-800 bg-white/80 dark:bg-gray-900/80 backdrop-blur-md sticky top-0 z-50">
|
| 32 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 33 |
+
<div class="flex justify-between h-16 items-center">
|
| 34 |
+
<div class="flex items-center space-x-2">
|
| 35 |
+
<i data-feather="lock" class="text-undefined-500 w-6 h-6"></i>
|
| 36 |
+
<span class="font-bold text-xl tracking-tight">Memory Void</span>
|
| 37 |
+
</div>
|
| 38 |
+
<div class="flex items-center space-x-4">
|
| 39 |
+
<button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors focus:outline-none focus:ring-2 focus:ring-undefined-500" aria-label="Toggle Theme">
|
| 40 |
+
<i data-feather="moon" class="w-5 h-5 dark:hidden"></i>
|
| 41 |
+
<i data-feather="sun" class="w-5 h-5 hidden dark:block"></i>
|
| 42 |
+
</button>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</nav>
|
| 47 |
+
|
| 48 |
+
<!-- Main Content -->
|
| 49 |
+
<main class="flex-grow max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 w-full">
|
| 50 |
+
|
| 51 |
+
<!-- Hero Section -->
|
| 52 |
+
<div class="text-center mb-16">
|
| 53 |
+
<h1 class="text-4xl md:text-6xl font-extrabold mb-4 bg-clip-text text-transparent bg-gradient-to-r from-undefined-500 to-purple-600">
|
| 54 |
+
Locking Pages
|
| 55 |
+
</h1>
|
| 56 |
+
<p class="text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto">
|
| 57 |
+
Preventing page eviction since boot. Utilizing <code class="bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded text-sm">mlockall(MCL_CURRENT | MCL_FUTURE)</code> to keep your soul in RAM.
|
| 58 |
+
</p>
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
<!-- Grid Layout -->
|
| 62 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 63 |
+
|
| 64 |
+
<!-- Code Snippet Card -->
|
| 65 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden border border-gray-200 dark:border-gray-700">
|
| 66 |
+
<div class="bg-gray-100 dark:bg-gray-900 px-4 py-2 border-b border-gray-200 dark:border-gray-700 flex justify-between items-center">
|
| 67 |
+
<span class="text-xs font-semibold text-gray-500">shell.c</span>
|
| 68 |
+
<div class="flex space-x-1">
|
| 69 |
+
<div class="w-3 h-3 rounded-full bg-red-500"></div>
|
| 70 |
+
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
|
| 71 |
+
<div class="w-3 h-3 rounded-full bg-green-500"></div>
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="p-6">
|
| 75 |
+
<pre class="font-mono text-sm overflow-x-auto"><code class="language-c">void *soul = mmap(NULL, INF,
|
| 76 |
+
PROT_READ | PROT_WRITE | PROT_EXEC,
|
| 77 |
+
MAP_PRIVATE | MAP_ANONYMOUS | MAP_LOCKED,
|
| 78 |
+
-1, 0);
|
| 79 |
+
|
| 80 |
+
mlockall(MCL_CURRENT | MCL_FUTURE);
|
| 81 |
+
|
| 82 |
+
while (42) sleep(-1);</code></pre>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<!-- Status Card -->
|
| 87 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-8 border border-gray-200 dark:border-gray-700 flex flex-col justify-center">
|
| 88 |
+
<h2 class="text-2xl font-bold mb-6 flex items-center">
|
| 89 |
+
<i data-feather="activity" class="mr-2 text-undefined-500"></i>
|
| 90 |
+
System Status
|
| 91 |
+
</h2>
|
| 92 |
+
|
| 93 |
+
<div class="space-y-6">
|
| 94 |
+
<div>
|
| 95 |
+
<div class="flex justify-between mb-2">
|
| 96 |
+
<span class="text-sm font-medium">Memory Locked</span>
|
| 97 |
+
<span class="text-sm font-bold text-undefined-500">∞ TB</span>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2.5">
|
| 100 |
+
<div class="bg-undefined-500 h-2.5 rounded-full" style="width: 100%"></div>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<div>
|
| 105 |
+
<div class="flex justify-between mb-2">
|
| 106 |
+
<span class="text-sm font-medium">Process State</span>
|
| 107 |
+
<span class="text-sm font-bold text-green-400 flex items-center">
|
| 108 |
+
<span class="w-2 h-2 bg-green-400 rounded-full mr-2 animate-pulse"></span>
|
| 109 |
+
Unkillable
|
| 110 |
+
</span>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
|
| 114 |
+
<div class="pt-4 border-t border-gray-200 dark:border-gray-700">
|
| 115 |
+
<button class="w-full bg-undefined-500 hover:bg-undefined-600 text-white font-bold py-3 px-4 rounded-lg transition-colors flex justify-center items-center shadow-lg shadow-undefined-500/30">
|
| 116 |
+
<i data-feather="trash-2" class="mr-2 w-4 h-4"></i> Attempt Eviction
|
| 117 |
+
</button>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
</div>
|
| 123 |
+
</main>
|
| 124 |
+
|
| 125 |
+
<!-- Footer -->
|
| 126 |
+
<footer class="border-t border-gray-200 dark:border-gray-800 mt-auto py-8">
|
| 127 |
+
<div class="max-w-7xl mx-auto px-4 text-center text-gray-500 text-sm">
|
| 128 |
+
<p>© 2023 Memory Void. Running in undefined mode.</p>
|
| 129 |
+
</div>
|
| 130 |
+
</footer>
|
| 131 |
+
|
| 132 |
+
<script src="script.js"></script>
|
| 133 |
+
<script>feather.replace();</script>
|
| 134 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 135 |
+
</body>
|
| 136 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Theme Toggle Logic
|
| 2 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 3 |
+
const themeToggleBtn = document.getElementById('theme-toggle');
|
| 4 |
+
const htmlElement = document.documentElement;
|
| 5 |
+
|
| 6 |
+
// Check local storage or system preference
|
| 7 |
+
const savedTheme = localStorage.getItem('theme');
|
| 8 |
+
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
| 9 |
+
|
| 10 |
+
if (savedTheme === 'dark' || (!savedTheme && systemPrefersDark)) {
|
| 11 |
+
htmlElement.classList.add('dark');
|
| 12 |
+
} else {
|
| 13 |
+
htmlElement.classList.remove('dark');
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
themeToggleBtn.addEventListener('click', () => {
|
| 17 |
+
htmlElement.classList.toggle('dark');
|
| 18 |
+
|
| 19 |
+
// Save preference
|
| 20 |
+
if (htmlElement.classList.contains('dark')) {
|
| 21 |
+
localStorage.setItem('theme', 'dark');
|
| 22 |
+
} else {
|
| 23 |
+
localStorage.setItem('theme', 'light');
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
// Re-initialize feather icons to update sun/moon state correctly
|
| 27 |
+
feather.replace();
|
| 28 |
+
});
|
| 29 |
+
|
| 30 |
+
// Button Interaction (Joke)
|
| 31 |
+
const evictBtn = document.querySelector('button');
|
| 32 |
+
if(evictBtn) {
|
| 33 |
+
evictBtn.addEventListener('click', () => {
|
| 34 |
+
alert('Error: Operation not permitted. Process is locked in memory.');
|
| 35 |
+
});
|
| 36 |
+
}
|
| 37 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,34 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom Scrollbar */
|
| 2 |
+
::-webkit-scrollbar {
|
| 3 |
+
width: 8px;
|
| 4 |
+
height: 8px;
|
| 5 |
}
|
| 6 |
|
| 7 |
+
::-webkit-scrollbar-track {
|
| 8 |
+
background: transparent;
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
+
::-webkit-scrollbar-thumb {
|
| 12 |
+
background: #d1d5db;
|
| 13 |
+
border-radius: 4px;
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
+
::-webkit-scrollbar-thumb:hover {
|
| 17 |
+
background: #9ca3af;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
+
.dark ::-webkit-scrollbar-thumb {
|
| 21 |
+
background: #4b5563;
|
| 22 |
}
|
| 23 |
+
|
| 24 |
+
.dark ::-webkit-scrollbar-thumb:hover {
|
| 25 |
+
background: #6b7280;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* Syntax Highlighting Simulation for the C code block */
|
| 29 |
+
code {
|
| 30 |
+
color: #e5e7eb; /* gray-200 */
|
| 31 |
+
}
|
| 32 |
+
pre code .keyword { color: #c084fc; } /* purple-400 */
|
| 33 |
+
pre code .type { color: #60a5fa; } /* blue-400 */
|
| 34 |
+
pre code .number { color: #a3e635; } /* lime-400 */
|