feed-the-void/README.md
askiiart 01df9cc6dc
All checks were successful
continuous-integration/drone Build is passing
Actually works decently now
2024-01-02 23:26:36 -05:00

37 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 -->
![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 -->
<p style="font-size: 36px;"><b>Witness the void consume zeroes for all eternity</b></p>
---
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
1. Clone the repo - `git clone https://git.askiiart.net/askiiart/feed-the-void.git && cd feed-the-void`
`docker run`:
```sh
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
```
`docker-compose.yml`: See [docker-compose.yml](docker-compose.yml)
## Running it manually
Requirements:
- Python 3.12 or later
- `pandoc`
- `sed`
- `dd`
- `/dev/zero` and `/dev/null`