Better HN
topnewbestaskshowjobs
Log inSign up

jamespwilliams

2,548 karma · joined Aug 15, 2020 (6y ago) · 273 submissions

https://github.com/jamespwilliams

Submissions != endorsements

Submissions

1.

Certificate Transparency now enforced in Firefox on desktop, starting with v135(groups.google.com ↗)

4 points · by jamespwilliams · 1y ago · discuss

comment 2y ago · link · parent

https://go-review.googlesource.com/c/go/+/576015 this change to optimise errors.Is in the err == nil case was merged recently. It’s not included in the latest Go release, hence the stats here, but should end up in a release pretty soon I’d imagine.

comment 2y ago · link · parent

That err == nil check was added very recently and isn’t included in the latest Go release, which the author used in this article.

comment 2y ago · link · parent

And conversely, short domains like Google’s own g.co are less secure!

comment 2y ago · link · parent

Fun weekend project but definitely not production-ready (no tests, no error handling, concurrent requests will cause a race condition, etc.). If readers are looking for something production-ready to use, consider https://github.com/go-redis/redis_rate (which implements GCRA/leaky bucket), or https://github.com/ulule/limiter (which uses a much simpler algorithm, but has good middleware).

comment 2y ago · link · parent

Can you spot the intentional bug in this commit?

7.

Xz.git: Fix Linux Landlock Feature Test in Autotools(git.tukaani.org ↗)

29 points · by jamespwilliams · 2y ago · 6 comments

comment 2y ago · link · parent

> Maybe it would be easier to have some kind of framework for compiler plugins that do extra checks. [...] But I haven't seen any language community do something like that. What am I missing?

Go has adopted a similar approach to this - they've made it fairly easy to write separate plugins that check stuff like this. The plugins aren't executed as part of the compiler though, they're standalone tools. For example, see golangci-lint, which bundles together a load of plugins of this kind.

Some of these plugins are shipped within the go command directly, as part of the "go vet" subcommand. (including a printf format check, which is similar to what's described in this post, i.e. it checks that arguments are of the correct type).

comment 2y ago · link · parent

> Now, listen. I wish I could continue here and end with “… and this is why ZSH does it that way!”

https://github.com/zsh-users/zsh/blob/47c7bc9b1493c7374f076b... has a comment about this behaviour, but no justification. I think it's just an optimization to save a little bit of time by not forking, and to avoid having the zsh process hanging around taking resources for no reason.

comment 2y ago · link · parent

nginx supports graceful reloading and I’m pretty sure it has for a very long time - there are references to it in the changelog from 2005

https://nginx.org/en/docs/control.html

comment 2y ago · link · parent

It doesn’t cover all of your requirements but you might find Clozemaster interesting

comment 2y ago · link · parent

I can recommend this too, although I use DeepL instead of Google Translate, and I also use DeepL Write to identify issues in my grammar

comment 2y ago · link · parent

Depending on your use case it might be better to just store the key unencrypted. There’s not really much point encrypting it if you’re storing the passphrase on disk alongside the key anyway.

comment 2y ago · link · parent

Something like https://matrixzj.github.io/documentations/idm_decrypt_ssh_pr... (then ssh -i decrypted_key) should work and avoid ssh-agent

comment 2y ago · link · parent

You could probably use a self-signed cert, then configure socat either to trust that certificate (with the cafile option) or to disable verification (with the verify option)

16.

Checking If a Certificate Is Revoked: How Hard Can It Be?(agwa.name ↗)

2 points · by jamespwilliams · 2y ago · discuss

17.

Shared wildcard certificate in EV chargers(groups.google.com ↗)

1 points · by jamespwilliams · 2y ago · discuss

comment 3y ago · link · parent

Shellcheck is a godsend

https://github.com/jamespwilliams/strictbash, I wrote this little wrapper a while back that you can use as a shebang for scripts. It runs shellcheck for you before the script executes, so it’s not possible to run the script at all if there are failures. It also sets all the bash “strict mode” [0] flags.

[0] http://redsymbol.net/articles/unofficial-bash-strict-mode/

19.

Chromium Money Tree Browser(lyra.horse ↗)

2 points · by jamespwilliams · 3y ago · discuss

20.

The Awful German Language(faculty.georgetown.edu ↗)

2 points · by jamespwilliams · 3y ago · discuss

comment 3y ago · link · parent

I’m almost completely deaf in one ear and had problems with tinnitus in the beginning (~7 years ago), especially when trying to sleep. Nowadays, I really only notice it when I focus on it, and it has no impact on my quality of life whatsoever. I think a lot of it is psychological.

comment 3y ago · link · parent

https://www.youtube.com/live/fMeH7wqOwXA?si=7jbkLCm4QalwumNw for a video version of this talk

One funny bit about the talk, which isn’t mentioned in the slides, is that he actually gave the talk at Linaro (the very same company who were called out in the slides as a case study of submitting a particularly bad set of patches)

comment 3y ago · link · parent

Go is the worst language, except all the others

24.

Designing a simple analog kick drum from scratch(youtube.com ↗)

5 points · by jamespwilliams · 3y ago · discuss

12345
10