Readit News logoReadit News
mkdirp commented on Keycloak: Open-Source Identity and Access Management   keycloak.org/... · Posted by u/memorable
mooreds · 4 years ago
> Beware: they aren't using Docker Hub anymore.

Do you know why? Is it because of the docker hub pricing changes?

I found this discussion on the mailing list but didn't see a reason why: https://lists.jboss.org/pipermail/keycloak-user/2019-March/0...

mkdirp · 4 years ago
Pretty sure it's because the core devs are RH employees, who owns Quay. Seems reasonable to keep things on your own infra.

Having said that, I know there has been some falling out between RH and Docker some time ago, which was one of the reason RH ended up creating Podman.

mkdirp commented on Go's Concurrency Examples in Java 19   mccue.dev/pages/5-2-22-go... · Posted by u/emccue
mperham · 4 years ago
Go provides a context package which allows in-flight cancellation of heavy operations spanning processes and even machines. https://pkg.go.dev/context
mkdirp · 4 years ago
This is also part of how you could interrupt `time.Sleep`.

> In Go there is less noise, but also there no way to interrupt Go's time.Sleep.

The full piece would be something like:

    func sleepCtx(ctx context.Context, delay time.Duration) {
        select {
        case <-ctx.Done():
        case <-time.After(delay):
        }
    }

    func main() {
        fmt.Printf("%v\n", time.Now())
        ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
        defer cancel()
        sleepCtx(ctx, 1*time.Second)
        fmt.Printf("%v\n", time.Now())
    }
Runnable example on Go playground: https://go.dev/play/p/S5TY3CRmsYO

mkdirp commented on Show HN: Favicons for HN   gist.github.com/frabert/4... · Posted by u/frabert
blue_pants · 4 years ago
Thanks for extensions.

But I think there's no need to integrate its functionality to the site. This way one can choose how to customize the site without increasing complexity of the site itself.

mkdirp · 4 years ago
Sorry! I meant to integrate the favicons into the extension, not to integrate the extension into the website :)
mkdirp commented on Show HN: Favicons for HN   gist.github.com/frabert/4... · Posted by u/frabert
mkdirp · 4 years ago
As an aside, there's Refined Hacker News[0] which seems like it would be a great option for this to be built into. It has lots of great features while keeping things minimal.

[0] https://github.com/plibither8/refined-hacker-news

mkdirp commented on Podman Desktop Companion GUI – Parity on All Major Operating Systems   iongion.github.io/podman-... · Posted by u/istoica
alar44 · 4 years ago
You shouldn't.
mkdirp · 4 years ago
Why not?

Podman has an almost identical CLI to Docker, and can have a daemon that is fully Docker compatible (thus, all Docker integrations work against it including docker-compose). It is literally a drop-in replacement but it doesn't require your company to buy licenses. So yes, you should if you can.

mkdirp commented on Hints for Writing Unix Tools (2014)   monkey.org/~marius/unix-t... · Posted by u/ducktective
asicsp · 4 years ago
mkdirp · 4 years ago
Aah, thank you so much! Very helpful!
mkdirp commented on Useful Shell Prompt (2020)   solovyov.net/blog/2020/us... · Posted by u/webmaven
mkdirp · 4 years ago
If you're running zsh, I suggest using powerlevel10k[0]. It is stupid fast, and extremely customisable.

[0] https://github.com/romkatv/powerlevel10k

mkdirp commented on Hints for Writing Unix Tools (2014)   monkey.org/~marius/unix-t... · Posted by u/ducktective
mkdirp · 4 years ago
On a related note, there was an article/website that talked about how to design the ux of a cli tool properly. E.g. how to design the arguments among other things.

I've been struggling to find it again. Does anyone remember what the article/site was called?

mkdirp commented on Vim Color Schemes   vimcolorschemes.com/... · Posted by u/auraham
petepete · 4 years ago
Over recent years I've been drawn to the cross-tool themes like Nord and Dracula.

https://www.nordtheme.com/

https://draculatheme.com/

Having consistency between neovim, fzf, bat, tmux, tig and fish is lovely.

mkdirp · 4 years ago
I used dracula for a while, but I just can't deal with it during the day. So I've been looking for a uniform light theme for day time coding. I hope nord theme can fill in the gaps there, but it looks like it's still early days for it.

u/mkdirp

KarmaCake day1232December 17, 2021View Original