Does this support starting a webdav server over an ssh tunnel to remote server? It looks like it from the readme, will attempt asap.
Ok, checked it out, dufs is a cool tool. Definitely replaces python -m http.server. This is a new standard rightalong side ripgrep.
Cargo is the package manager that pip wanted to be. We should just use cargo anyway. Why have distros when you have Cargo? Why have homebrew when you have Cargo?
I looked at the Bashbro source and said NOPE. And I've written a lot of increasingly complex Bash. At some point you just have to realize that you're using the wrong tool for the job. Dufs even has tests!
You can consider the use of Unix sockets (sockets as named files). There are lots of limitations but the most pervasive and frustrating of those is the general lack of support for them across apps.
You could set up Nginx and some local subdomains to reverse proxy to the intended applications, regardless of whether they're hosted on Unix sockets or plain ports, if that makes accessing them easier. It definitely makes them easier to make accessible outside of the local machine.
No way to allocate port numbers without clashes ever. What I do is having a Ports.md in my personal knowledge base with all port assignments in my personal projects and networks: port, description, project link and/or service host:port. This works very well, I don’t have tens of thousands of projects so I’m not going to exhaust port numbers. I used to try to use Unix domain sockets as much as possible for anything fronted by nginx, but stopped bothering with that since I started centrally maintaining port assignment.
You can listen on an anonymous port. It's similar to how the kernel allocates a port for outgoing connections. It's very useful if you want to listen ephemerally, especially in tests. The downside is that you need your server to report which port it's actually listening on, and if it restarts, it will get a different port.
If you can ssh to the remote, you can simply use Emacs (dired and trump). I suppose the advantage here is that once you turn a machine into a file server you can access it from other devices.
[+] [-] password4321|1 year ago|reply
https://github.com/sigoden/dufs
[+] [-] sitkack|1 year ago|reply
Ok, checked it out, dufs is a cool tool. Definitely replaces python -m http.server. This is a new standard rightalong side ripgrep.
Cargo is the package manager that pip wanted to be. We should just use cargo anyway. Why have distros when you have Cargo? Why have homebrew when you have Cargo?
Dufs support of webdav is nascent.
I kid, but only a little bit.
[+] [-] rlinge|1 year ago|reply
[+] [-] nray|1 year ago|reply
[+] [-] herewulf|1 year ago|reply
I looked at the Bashbro source and said NOPE. And I've written a lot of increasingly complex Bash. At some point you just have to realize that you're using the wrong tool for the job. Dufs even has tests!
[+] [-] yayr|1 year ago|reply
Congrats!
[+] [-] sigmonsays|1 year ago|reply
[+] [-] gouggoug|1 year ago|reply
What does this mean?
[+] [-] i_use_arch_btw|1 year ago|reply
[+] [-] fourteenfour|1 year ago|reply
[+] [-] LordShredda|1 year ago|reply
[+] [-] apitman|1 year ago|reply
[+] [-] jdefr89|1 year ago|reply
[+] [-] bheadmaster|1 year ago|reply
Bashbro, on the other hand, seems to require socat. I wonder if there's any bash-istic method of listening to a port...
[+] [-] amelius|1 year ago|reply
[+] [-] andrewstuart|1 year ago|reply
https://github.com/svenstaro/miniserve
[+] [-] rasengan|1 year ago|reply
You can do it in python with python -m http.server also!
[+] [-] sesm|1 year ago|reply
[+] [-] amelius|1 year ago|reply
Is there a way to manage all these port numbers? And why can't we use strings, even if just locally?
And what do people use to allocate port numbers in a way that you'll never get clashes?
[+] [-] striking|1 year ago|reply
You could set up Nginx and some local subdomains to reverse proxy to the intended applications, regardless of whether they're hosted on Unix sockets or plain ports, if that makes accessing them easier. It definitely makes them easier to make accessible outside of the local machine.
[+] [-] thwarted|1 year ago|reply
[+] [-] oefrha|1 year ago|reply
[+] [-] singron|1 year ago|reply
[+] [-] sesm|1 year ago|reply
[+] [-] pama|1 year ago|reply
[+] [-] velox_neb|1 year ago|reply
[+] [-] unknown|1 year ago|reply
[deleted]
[+] [-] johnbellone|1 year ago|reply
[+] [-] unknown|1 year ago|reply
[deleted]
[+] [-] unknown|1 year ago|reply
[deleted]
[+] [-] etc-hosts|1 year ago|reply