Better HN
topnewbestaskshowjobs
Log inSign up

iokanuon

633 karma · joined Jan 31, 2015 (11y ago) · 122 submissions

Submissions

comment 1y ago · link · parent

Actually thinking about it - why not have everything encased in sand all the time, you'd just have to be a kid playing in a sandbox when doing maintenance

comment 1y ago · link · parent

If you don't have a bottom layer the sand will immediately fall

3.

Show HN: netcat over Cloudflare Warp(github.com ↗)

4 points · by iokanuon · 1y ago · discuss

comment 2y ago · link · parent

You could do that, and it'd still be POSIX-shell comptible:

    loadenv() {
        case "$-" in
            *a*) source ./.env ;;
            *) set -a; source ./.env; set +a ;;
        esac
    }
Although I have yet to see a long shellscript utilise `set -a` globally :)

comment 2y ago · link · parent

That will break if there's comments in the file, or if any one of the variables' values contain spaces. You can use `set -a` to load .env into an existing shell instance instead:

    loadenv() {
        set -a
        source ./.env
        set +a
    }

comment 2y ago · link · parent

You'd need to `set -a` or pass the `-a` as a flag to have them auto-exported though, so:

    sh -ac '. ./.env; ./prog'
Also if you use the `.` builtin it's a good idea to specify the path with a slash in it, so that `.` doesn't search $PATH first.

7.

Top-Starred GitHub Repos(git-top-repos.net ↗)

1 points · by iokanuon · 2y ago · discuss

comment 3y ago · link · parent

This video is about motorcycles, not cars. Also, the data on this is in the linked video - the author demonstrates you can do a controlled stoppie to decelerate faster without ABS, because that's its main feature - preventing you from flying off the bike.

9.

Show HN: GitHub Top Repos(git-top-repos.net ↗)

2 points · by iokanuon · 3y ago · discuss

10.

Dimma: Semi-Supervised Low Light Image Enhancement with Adaptive Dimming(github.com ↗)

3 points · by iokanuon · 3y ago · discuss

11.

Endlessly browse through the top GitHub repositories(top-of-github.baraniecki.eu ↗)

2 points · by iokanuon · 3y ago · discuss

comment 3y ago · link · parent

It's an option you can use when invoking `make` - so no need to specify extra cmake options, just during `make` invocation after `cmake` is already done

comment 3y ago · link · parent

That's crazy. Where do you live? In Poland I just skipped the insurance system to get ADHD meds and went to a psychiatrist specialising in ADHD privately - $70 for a 20 minute visit seems a bit steep but it's better than waiting years.

Could you possibly do something similar?

comment 4y ago · link · parent

>"ip addr show" lists interfaces and their stats. It's harder to read than ifconfig -a but gives you the same information in a similar format.

It's worth noting that `-br` gives you a brief version of the output, and `-c` colors it, so that it's possible to do something like this:

  ip -br -c addr
to get a very readable and colorful table-like output.

There's also `-j` for JSON, and `-j -p` for pretty JSON.

comment 4y ago · link · parent

Just to be clear, I'm not trying to argue with you - just trying to share an observation from my own life.

The experience of the inner monologue in my brain not being able to control what the rest of my body is doing when not on meds sure does feel like a crippled down version of free will

comment 4y ago · link · parent

>Humans can delay gratification for larger payouts later on, which if we could not consciously do then I personally would probably do nothing with my life besides the basic biologic urges and whatever gives me the strongest immediate dopamine hit.

That's basically living with ADHD - so about 2% to 7% of all people have a lot less free will than the rest.

comment 6y ago · link · parent

From what I remember about SSE, no Microsoft browser supported them. It seems like they've finally added support to Edge this year though.

comment 6y ago · link · parent

It also might be illegal in some places right now

comment 6y ago · link · parent

That's exactly why that works, the shell expands it, so

    mv foo-bar-{baz,quux}.txt
becomes

    mv foo-bar-baz.txt foo-bar-quux.txt

comment 6y ago · link · parent

That's exactly what the article is about.

comment 6y ago · link · parent

All POSIX-compliant shells should support this.

comment 6y ago · link · parent

There's a third option, postpone it a couple months.

comment 6y ago · link · parent

>Moreover, in our dorms, we have effectively no way to eat if the dining halls close down.

That sounds crazy to me, in Poland there's a multitude of cheap restaurants full of students close to every university campus. There's a big demand because universities are packed with students that don't cook for themselves. Why hasn't the same happened to the US then?

comment 6y ago · link · parent

Anecdotally, changing the ssh port on a very low-budget VPS is worth the effort because the CPU time eaten by responding to the ssh bots can be noticable.

comment 7y ago · link · parent

Remember that creating a Google Play account already costs $20, so for the most people the distribution costs are far more than covered.

comment 7y ago · link · parent

Since a few years ago, you were also able to use the BLIK system to transfer money instantly for free between most banks, by only knowing the recipient's phone number. To be fair I can't imagine anything more convenient.

comment 7y ago · link · parent

Sorry, I've just copied the first two replies.
12345