Code
/dev/null as a Service
Your developers will love our simple and well documented API. Just do a HTTP POST request to our shiny REST-API, and we will take care of its deletion with our Heavily Distributed BigData Cloud Cluster Setup!
$ curl -d @invoice.pdf -X POST https://devnull-as-a-service.com/dev/null
If you’re interested in some more informations about the ongoing deletion, use:
$ curl -v -d @photos-of-yourself.zip -X POST https://devnull-as-a-service.com/dev/null
If you’re a wget
Windows multiplatform lover, you could use:
$ wget -O- -v --post-file=backups.tar.gz https://devnull-as-a-service.com/dev/null
You can even use the Discard protocol invented in 1983 and specified in RFC 863.
$ cat ~/invoice.pdf | nc devnull-as-a-service.com 9
Legacy, baby! Telnet interactive typewriter mode:
$ telnet devnull-as-a-service.com 9
Escape character is '^]'.
ohai
kkthxbye
^]
telnet> quit
Connection closed.
Does DaaS support python clients?
Of course! If you prefer to lose files in Python, you could use this code snippet and modify it to lose the file of your choosing:
import pycurl
curl = pycurl.Curl()
curl.setopt(curl.POST, 1)
curl.setopt(curl.URL, "http://devnull-as-a-service.com/dev/null")
curl.setopt(curl.HTTPPOST, [("file", (curl.FORM_FILE, "/root/important_file.txt"))])
curl.perform()
curl.close()
Self Hosted Enterprise Appliance!
For only $5,000 per year, you get your own, self-hosted enterprise appliance. Okay, let’s be honest, it’s basically a crappy Pentium 4 box with Debian and nginx installed.
The configuration looks pretty much like:
location /dev/null {
if ($request_method ~ ^(GET|POST|HEAD|PUT|DELETE|OPTIONS|PATCH|CONNECT)$) {
return 200;
}
}
But we think your data is worth it.
One Less to Go
Do you even open source? We do. And this is our gift for the open-source community.
Run this script with sudo privileges to get rid of a random pesky little file from your computer.
$ sudo ./one-less-to-go.sh
Then rinse and repeat. Plus: it doesn’t tell you what it deleted. So mysterious.