Better HN
topnewbestaskshowjobs
Log inSign up

lamnguyenx

37 karma · joined Jun 10, 2024 (2y ago) · 9 submissions

Submissions

comment 10mo ago · link · parent

What's your opinion on PenPot - Figma's biggest rival? I think PenPot is more dev-friendly. Their "Code" mode is 100% free

comment 1y ago · link · parent

NVIDIA Demo of Audio2Face is such a joke, compared to this one.

comment 2y ago · link · parent

Does this work with Raspberry Pi 4 or Raspberry Pi Zero 2 W? Unfortunately I don't have Pi Zero W lying around :(

comment 2y ago · link · parent

I have the same question to playing the piano. By every piano playing (30-60 mins per day), can we enhance our brain capacity and delay the age of dementia?

comment 2y ago · link · parent

Nice catch. You're right. At my company all servers operate inside a complex & heavily-guarded intranet, so I usually use 0.0.0.0 instead of localhost / 127.0.0.1. Sometimes, only using the former worked (e.g: using Code-Server or Jupyter Notebook), and I'm not so good at networking to dive into iptables and firewall things.

comment 2y ago · link · parent

Wow. Nice trick! I didn't know SSH Config can do that exec control flow.

comment 2y ago · link · parent

just check my comment in in this post using `~/.ssh/config` with ProxyJump, you can virtually jump between A B C D E ... or whatever.

comment 2y ago · link · parent

It's 2024! Please avoid writing SSH commands like that.

Instead, configure your ~/.ssh/config with LocalForward, RemoteForward, and ProxyJump. This can save you a significant amount of time, especially when using ssh, scp, or rsync to transfer data from a remote server that requires multiple intermediate SSH connections.

e.g:

    Host jump-host-1
        HostName jump1.example.com
        User your_username
        IdentityFile ~/.ssh/id_rsa

        Host jump-host-2
            HostName jump2.example.com
            User your_username
            IdentityFile ~/.ssh/id_rsa
            ProxyJump jump-host-1

            Host jump-host-3
                HostName jump3.example.com
                User your_username
                IdentityFile ~/.ssh/id_rsa
                ProxyJump jump-host-2

                Host target-server
                    HostName target.example.com
                    User your_username
                    IdentityFile ~/.ssh/id_rsa
                    ProxyJump jump-host-3
                    LocalForward 0.0.0.0:8080 0.0.0.0:80  
                    RemoteForward 0.0.0.0:9022 0.0.0.0:22

    # after this:
    # - you can ssh/scp/rsync to your target-server via an alias
    # - forward traffic FROM port 80 on your target-server to port 8080 on your local machine
    # - forward ssh requests TO port 9022 on your target-server to port 22 on your local machine
    # - remember, for LocalForward & RemoteForward : 
    #   + left is target-server
    #   + right is your local
    #   + use 0.0.0.0 instead of localhost or 127.0.0.1

comment 2y ago · link · parent

Don't forget full HDR support of IINA that VLC and most other alternatives on Apple Silicon don't have.

However, VLC still provides the best subtitle style customizations.