<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>operationnull.com</title><id>https://operationnull.com/feeds/tags/site.xml</id><subtitle>Tag: site</subtitle><updated>2026-04-24T13:06:47Z</updated><link href="https://operationnull.com/feeds/tags/site.xml" rel="self" /><link href="https://operationnull.com" /><entry><title>Personal Filesharing</title><id>https://operationnull.com/personal-filesharing.html</id><author><name>bdunahu</name></author><updated>2025-02-17T00:00:00Z</updated><link href="https://operationnull.com/personal-filesharing.html" rel="alternate" /><content type="html">&lt;p&gt;I previously used pastebin/filesharing sites to send code and images over IRC. However, I no longer do; after piecing together my own.&lt;/p&gt;&lt;p&gt;The code to run the pastebin is small; it would be even smaller if I were more practiced in shell scripting:&lt;/p&gt;&lt;p&gt;One script on my laptop accepts a file name and an optional time specifier in hours. It generates a new file name with a few random characters piped out of &lt;code&gt;/dev/urandom&lt;/code&gt;, concatenates it with a dash - character, and a unix timestamp representing &lt;code&gt;CURR_DATE + USER_SPECIFIED_HOURS&lt;/code&gt;. It then uses &lt;code&gt;scp&lt;/code&gt; to copy the given file to a public-facing directory on the remote server with the generated name (the directory listing itself cannot be viewed in a browser, though, since the pasted files are meant to be relatively hidden).&lt;/p&gt;&lt;p&gt;The second script on the remote server simply scans the directory every hour for files that are expired (based on the file name) and removes them.&lt;/p&gt;&lt;p&gt;Of course, hosting your own pastebin is a relatively common idea if you have a webserver and the need, (I even found some tools which set up an entire netcat server if you need a full web service). However, I myself had not yet seen anyone use filenames to get almost all of the functionality of file-hosting sites like 0x0.st. I reused the idea from Protesilaos Stavrou's Emacs 'denote' package, which also showcases the power and simplicity of embedding metadata in file names; since it remains very accessible to filtering with standard CLI tools.&lt;/p&gt;&lt;p&gt;I like being able to upload my files and share them from a space I still control. I only remembered to finish writing about this idea since it already had appreciated benefits in unexpected places; allowing me to share my University work through a link to my own site, rather than the suggested use of services such as google drive.&lt;/p&gt;&lt;p&gt;Sometimes it's easy to forget that browsers can play raw video or display pdfs when directed to a video file.&lt;/p&gt;</content></entry></feed>