feed-the-void/README.md

37 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

# F E E D T H E V O I D
<!-- Note that there's a zero-width space between the spaces so that all 3 render -->
2023-11-21 11:53:00 -06:00
![Useful Linux Tips: Run dd if=/dev/zero of=/dev/null to feed nothing to the void](/site-files/feed-the-void.png)
<!-- Source of meme is unknown -->
2023-11-21 11:53:00 -06:00
<p style="font-size: 36px;"><b>Witness the void consume zeroes for all eternity</b></p>
---
2023-11-21 11:53:00 -06:00
This puts the output of `dd` into a file, which is then read and made into a webpage every second. It's just a [bodged](https://www.youtube.com/watch?v=lIFE7h3m40U)-together mess and it's super CPU-heavy, but it works*
\* Disclaimer: No idea if this works, I'm from the past where the program wasn't done yet.
## Docker
2023-11-21 11:53:00 -06:00
1. Clone the repo - `git clone https://git.askiiart.net/askiiart/feed-the-void.git && cd feed-the-void`
`docker run`:
```sh
2024-01-02 22:26:36 -06:00
docker run -d --restart unless-stopped -v .:/data --cpus 0.25 registry.askiiart.net/askiiart/feed-the-void
docker run -d --restart unless-stopped -v ./site-files:/usr/share/nginx/html -p 8080:80 nginx:alpine-slim
```
2023-11-21 11:53:00 -06:00
`docker-compose.yml`: See [docker-compose.yml](docker-compose.yml)
2024-01-02 22:26:36 -06:00
## Running it manually
Requirements:
- Python 3.12 or later
- `pandoc`
- `sed`
- `dd`
- `/dev/zero` and `/dev/null`