This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-18
Channels
- # announcements (6)
- # babashka (16)
- # beginners (194)
- # calva (20)
- # cider (34)
- # clj-kondo (38)
- # clojure (89)
- # clojure-europe (10)
- # clojure-finland (15)
- # clojure-italy (2)
- # clojure-nl (15)
- # clojure-sg (7)
- # clojure-spec (15)
- # clojure-uk (86)
- # clojurebridge (1)
- # clojurescript (60)
- # community-development (11)
- # conjure (13)
- # core-async (48)
- # core-typed (3)
- # cursive (22)
- # datascript (8)
- # datomic (40)
- # duct (11)
- # emacs (3)
- # figwheel-main (22)
- # fulcro (45)
- # graphql (1)
- # helix (9)
- # hoplon (15)
- # hugsql (7)
- # jobs-discuss (47)
- # juxt (7)
- # kaocha (21)
- # luminus (1)
- # malli (13)
- # meander (2)
- # off-topic (52)
- # parinfer (19)
- # re-frame (66)
- # reagent (1)
- # reitit (3)
- # ring-swagger (1)
- # rum (2)
- # shadow-cljs (72)
- # spacemacs (5)
- # sql (4)
- # timbre (5)
- # tools-deps (15)
- # vim (5)
- # vrac (7)
What's a nice solution for making a box you have at home available to yourself on the internet via a remote desktop-ish solution, safely? - ssh -X tunneling of an X server, with fail2ban - VNC? I'm not too familiar with all the options, so if you're using this, it would be nice to hear about it. The other option is to run Windows with remote desktop along with rdpguard for blocking (similar to fail2ban)
I have a wireguard VPN between a cloud server and a computer on my home network. The computer on my home network does this weird double nat, so all the computers on my local network can send traffic through the VPN, and all the computers on the VPN can send traffic to computers on my local network(but with the ip address range remapped to something less common)
So if I am out of the house my laptop can connect to the cloud server also using wireguard and I have access to my home network
Could you also cut out the cloud server and connect directly to one of your machines at home using WireGuard?
You could, but you would need to faff around with port forwards (or terminate the VPN at your router somehow) and make sure your ip doesn't change
For actually accessing the computers remotely I just use ssh, my laptop is the only non-headless computer anyway. I have used the VPN to access things like my emby media server while on vacation
so you log into the VPN and then ssh right? since ssh isn't exposed directly to the internets?
I might cut out the cloud server though, since my IP is relatively stable. just one port forward in my router and I should be set
https://gist.github.com/hiredman/905f5755783f30a4bfe83a6fc0cc8506 is the shell script I use to setup the double nat thing, it maps the common 192.168.1.0 address range I use at home to 192.168.38.0 for traffic to/from the vpn to avoid any conflicts with other local networks my laptop may be connected to
Just, wanted to add, in terms of UI performance the windows RDP server is the fastest one. I tried everything under the sun and while you even have notable input lag with RDP, it's worse with all the other options I tried.
I'm setting up a similar setup to hiredman with wireguard. It seems the performance is great too.
Run a private network, using wireguard or zerotier. As for display options, not sure - vnc is pretty easy to setup and ubiquitous.
@seancorfield Thank you! I just tried like 3 different deps.edn uberjar tools before landing on depstar, none of them could compile my project properly. Uberdeps came closest but for some reason had an issue with datomic.
random pet peeve: with tools deps dependency coords (or aliases) they're often in a readme like this:
{:deps
{my/lib {:mvn/version "1.0"}}}
ie, they include some level of outer nesting. I find I end up messing up the copy/paste process of this 50% of the time. Isn't something like
;;:in :deps
my/lib {:mvn/version "1.0"}
Better? So you can just copy and paste it into the already existing deps?
I realize this is an extremely inconsequential aspect of coding 🙂 But is anyone else constantly getting burned by this?Alternatively something like
{:deps
{
my/lib {:mvn/version "1.0"}
}
}
could work but probably just omitting the outer map is fineanother thing: I often mistype {:mvn/version "1.0"}
and just write "1.0"
which gives a confusing message
oh the msg is the worst, i had :mvn/verson
on accident and had no idea what it was trying to tell me
I agree it's not a big deal but maybe there was an occasional complaint, library authors would save themselves the few keystrokes in their readmes :)
Yup, I'll be reviewing and updating my libraries after seeing this!
The core issue is that were coping text around. What would it look like to create a registry that we could programmatically pull from. I feel like this is an issue everyone has and so I assume the solution is very complex.
CIDER/Emacs can search and add a dependency programmatically (via CLJ Refactor), so I guess an API does exist.
Did you try it with deps? Did it work?
I tired and it didn't. But sometimes I mess up :)
With deps I found a quirk. You need to have the :deps {} present. Else it errors out. But after adding that key it works.
It worked for me once randomly in about 8 tries. Which is as good as being useless unfortantly. I think ill come back to this once we get tools/add-lib out of alpha and we can do hotload deps in one command
@alexmiller will do. at tools.deps?
yeah. TDEPS
I just added a fix recently for the case where you typo :version which was extra bad
don't worry about a patch, just a jira is fine and I'll catch it the next time I go through the list
Yeah, ordinarily the admins would consider that to be unwanted spam but given the impact of COVID-19 and the fact that these annoying companies are offering their seminars/courses for free, we're letting them stand (since, unfortunately, a lot of companies interview that way).
Not saying it should be taken down or anything - don't hate the player hate the game.
