3 ms·
I always wanted the /dev/zero character device driver, which you can map into memory to clear it, or use as an infinite source of nulls, to use the minor node n
by DonHopkins 1y ago
I always wanted the /dev/zero character device driver, which you can map into memory to clear it, or use as an infinite source of nulls, to use the minor node number as the value that got mapped into memory or produced, so you could make an infinite source of beeps with:
mknod /dev/seven c 1 7
I wonder what would happen if you made a /dev/seven device in your http servers public_html directory? Would it dutifully serve it up?
Better yet, support for utf-8 unicode, so you can make an infinite source of poo emojis.
The "Everything Is A File" philosophy should be taken to its logical conclusion.
- dlt713705 1y agoAwesome! That actually inspired me to code this: https://codeberg.org/mco-system/pooper https://codeberg.org/mco-system/pooper
- don-code 1y agoI challenge anyone to find another place on the Internet where one person's joke is another person's kernel module.
- tanelpoder 1y agoAstute observation, but also CrowdStrike would like a word :-)
- xerxes901 1y agoQuestion: what actually reads /etc/pooper to configure the character? I can’t work out how that file’s contents ends up as module parameters and I’d love to know!
- dlt713705 1y agoYou are absolutely right, the /etc/pooper file was never loaded. The code has been updated and now you can change the pooped char on the fly with something like : `echo "<WHATEVER UTF-8 CHAR>" | sudo tee /sys/module/pooper/parameters/char_utf8` /etc/pooper file and module unload/reload are no more needed :)
- xerxes901 1y agoThanks for clarifying, and implementing this essential feature!
- DonHopkins 1y agoFinally somebody who gives a shit! Thank you for dropping that generous contribution. Now I can use that device as an RSS feed! That puts the log into blog. I haven't seen that much shit emerge from a wormhole since the Ed the Happy Clown episode of Yummy Fur comics: https://everything2.com/node/1485685?bookmark_site=twitter&op=socialBookmark https://everything2.com/node/1485685?bookmark_site=twitter&o... >We now skip back in time a little, where we find Ronald Reagan before his mysterious transformation. He presides over an America that has no concept of toilets, and piles of feces on every street corner are becoming a serious problem. Fortunately, science can help; a farmer has stumbled across a small portal to another dimension. The solution is clear; push America's mounting shit through the portal via a huge funnel. The exit point for the portal is in fact the anus of the gentleman who couldn't stop shitting back in the prison in Ed's world; so there is at least a good scientific explanation for that little episode. >During the official opening of the shit disposer, Reagan tragically falls into the giant collection of pending waste. His body blocks the funnel, but not before his head has gone through the portal; a headless president is recovered. A scientist heads though the portal on a rescue mission. >(Now, I know what you're thinking, and I've no idea how Reagan's head became attached to the end of Ed's penis. It makes no sense, even within the logic of Ed's universe, and it's not explained. If you have any notions, please let me know - but for now, we'll just have to accept that somehow, it happened...) The Chester Brown Interview: https://www.tcj.com/the-chester-brown-interview/3/ https://www.tcj.com/the-chester-brown-interview/3/ Best NSFW Ronald Reagan Quote Ever: https://the-comics-journal.sfo3.digitaloceanspaces.com/wp-content/uploads/2011/04/Ronaldpenis.jpg https://the-comics-journal.sfo3.digitaloceanspaces.com/wp-co... Support Indie Comics!
- anonymousiam 1y agoEasy to get an infinite stream of bell codes with: yes ^V^G