Live data from Hacker News

ShowHN: GetURL - A CLI tool to get a public link for any file

github.com

31–40 of 53 posts

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#31
post #30

Earlier quoted context omitted.

Except that Dropbox has now discontinued their public folders in exchange for there get link everywhere (which requires you to click add to dropbox or a download button rather than direct access).

I’m not sure what you mean. The method I wrote about still seem to work.

All new accounts no longer have a public folder.

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#32
post #30

Earlier quoted context omitted.

I’m not sure what you mean. The method I wrote about still seem to work.

All new accounts no longer have a public folder.

Yes - all that means is that now you can move a file into anywhere in your Dropbox, right-click it, and click (in the Nautilus plugin) "Share Link" and get a publicly available link.

The only thing that the Public folder did differently was that it did the equivalent of "Share Link" for every file in it, and also had a public index of files in the folder.

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#33

Seems like this could be done with more respect for user/data sovereignty if done with Node.js. Essentially, you'd cat the file into the script, it would spin up an HTTP server, do some port knocking or whatever NAT-traversal-fu is necessary, then spit out a link with either your raw IP, or a preconfigured dynDNS domain name. This way we aren't carelessly littering our data all over the "cloud".

Know any port knocking as a service companies? If there was a reliable way to get a udp connection between hosts that I didn't have to write myself, I'd be tempted to take this on.

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#34

Seems like this could be done with more respect for user/data sovereignty if done with Node.js. Essentially, you'd cat the file into the script, it would spin up an HTTP server, do some port knocking or whatever NAT-traversal-fu is necessary, then spit out a link with either your raw IP, or a preconfigured dynDNS domain name. This way we aren't carelessly littering our data all over the "cloud".

Tooting my own horn again, but you just asked for https://pagekite.net/:

$ pagekite.py /path/to/file.blah yourname.pagekite.me

... send people a link to https://yourname.pagekite.me/file.blah and it streams from your disk. CTRL+C and it's offline with no copies stored anywhere in the cloud. Works with entire folders too (append +indexes to generate indexes), which is good for static HTML demos. If you want a harder-to-guess URL, append the +hide flag to the command above.

And yes, it's open source and you can run your own relay/reverse-proxy if you don't want to rely on me. Give it a try! :-)

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#36
It couldn't handle files with spaces, plus the link it gives initiates a download for the file instead allowing you to view it in the browser. Considering most of the time I want to quickly upload a file in this manner the file is a screenshot, this is basically useless for me.

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#37
This a nice nifty script. Thanks!

Something I noticed (https://www.filepicker.io/pricing/): Since filepicker.io charges by number of files and NOT by total size of files, a free account could potentially host a huge amount of data.

Eg: 5000 files, each of 1 GB = 5 TB!!!

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#38

Seems like this could be done with more respect for user/data sovereignty if done with Node.js. Essentially, you'd cat the file into the script, it would spin up an HTTP server, do some port knocking or whatever NAT-traversal-fu is necessary, then spit out a link with either your raw IP, or a preconfigured dynDNS domain name. This way we aren't carelessly littering our data all over the "cloud".

Know any port knocking as a service companies? If there was a reliable way to get a udp connection between hosts that I didn't have to write myself, I'd be tempted to take this on.

I think the term you're looking for is UDP hole punching, port knocking is performing a special sequence of connections (i.e. try TCP on 8100 then UDP on 4000 then TCP on 2000) to open up an additional port (like SSH) to a certain IP.

I'd be curious if there exists such a company or even any good open source libraries that can tie into other servers.

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#39

Seems like this could be done with more respect for user/data sovereignty if done with Node.js. Essentially, you'd cat the file into the script, it would spin up an HTTP server, do some port knocking or whatever NAT-traversal-fu is necessary, then spit out a link with either your raw IP, or a preconfigured dynDNS domain name. This way we aren't carelessly littering our data all over the "cloud".

Tooting my own horn again, but you just asked for https://pagekite.net/ : $ pagekite.py /path/to/file.blah yourname.pagekite.me ... send people a link to https://yourname.pagekite.me/file.blah and it streams from your disk. CTRL+C and it's offline with no copies stored anywhere in the cloud. Works with entire folders too (append +indexes to generate indexes), which is good for static HTML demos. If you want a harder-…

awesome. thanks for sharing!

Re: ShowHN: GetURL - A CLI tool to get a public link for any file

#40

Seems like this could be done with more respect for user/data sovereignty if done with Node.js. Essentially, you'd cat the file into the script, it would spin up an HTTP server, do some port knocking or whatever NAT-traversal-fu is necessary, then spit out a link with either your raw IP, or a preconfigured dynDNS domain name. This way we aren't carelessly littering our data all over the "cloud".

Tooting my own horn again, but you just asked for https://pagekite.net/ : $ pagekite.py /path/to/file.blah yourname.pagekite.me ... send people a link to https://yourname.pagekite.me/file.blah and it streams from your disk. CTRL+C and it's offline with no copies stored anywhere in the cloud. Works with entire folders too (append +indexes to generate indexes), which is good for static HTML demos. If you want a harder-…

Be proud, your domain has made BlueCoat's list of "proxy avoidance" sites and is blocked at my workplace.
Post reply on HN