Live data from Hacker News

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

github.com

21–30 of 53 posts

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

#24
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".

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

#26

Since I have web hosting and use GitHub, here's my method: cp file_name ~/Projects/2012/ajf.me/ajf.me/imagedump/ && cd ~/Projects/2012/ajf.me/ajf.me/ && git add imagedump && git commit -m 'new file' && cd .. && ./update.sh Elaborate, sure, but it does the job. update.sh runs git push and then does an SSH into my server and a git pull. (Because I'm too lazy to actually set up git on my own server)

You don't need to set up a git server on your own sever. Just create a git repo, add it as a remote revenue to your local repo, and use ssh+git to push changes directly.

But if you have your own server, why don't you just scp it directly there? That's the piece most people are missing.

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

#29
post #28

I still prefer Dropbox because you have better control about what you upload. Simply copy your files into ~/Dropbox/Public, right-click and choose Dropbox > Copy Public URL. Voilà!

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).

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

#30
post #28

I still prefer Dropbox because you have better control about what you upload. Simply copy your files into ~/Dropbox/Public, right-click and choose Dropbox > Copy Public URL. Voilà!

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.
Post reply on HN