Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yourad_io
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
yourad_io
4y ago
Consider the semantics: niceness (relinquishes resources) as the opposite of meanness (demands resource) in a multi user system > This is why the nice number is usually called niceness: a job with a high niceness is very kind to the user
32.
▲
by
yourad_io
4y ago
Very insightful, I never realized this. Thank you
33.
▲
by
yourad_io
4y ago
The term "gaslighting" derives from the 1944 film Gaslight, in which a husband uses trickery to convince his wife that she is mentally unwell so he can steal from her. Gaslighting was largely an obscure or esoteric term until the
34.
▲
by
yourad_io
4y ago
If you ever have to go back to react, take a look at mobx It is very uncomplicated
35.
▲
by
yourad_io
4y ago
> Such a comment annoys me, even if in jest. Rightfully so. Feel free to disregard. Some people are very desensitized to sweating online, usually anonymously. Not wanting to doesn't merit psychiatric help.
36.
▲
by
yourad_io
4y ago
When you work as a foreigner in Japan, you can be afforded a lot of leeway in business custom and etiquette - as you as you are polite. You are assumed to be a well-meaning Gaijin who doesn't know better/proper form. I've alw
37.
▲
by
yourad_io
5y ago
Graceful shutdown & startup are two use cases that I used this for, just today. When my express server gets a SIGTERM I want it to stop accepting new requests but finish pending requests before exiting. Likewise during startup, the HTTP
38.
▲
by
yourad_io
5y ago
Sometimes you want to do things sequentially, so for..of x { await } is the way to go If you want parallelism: await Promise.all(x.map(...))
39.
▲
by
yourad_io
5y ago
One of my favorite features. I counted then recently - over 100. The killer feature over aliases is that a) you can edit them and b) you can define them instantaneously. Did you type `git diff --cached` one time to many? Up arrow -> Ctrl
40.
▲
by
yourad_io
5y ago
> Shell scripts have shebangs and work. Exactly this - I feel like it is a common misconception. Even without shebang? `bash the_thing.sh` -> done. Writing a personal utility for myself? Unless it is dead simple I'll go with fish
41.
▲
by
yourad_io
5y ago
You mean not splitting on spaces? No, never, ever bit me.
42.
▲
by
yourad_io
5y ago
Expanding on the local file competition: this is even context aware in some cases! If you have four files starting with "A", one of which ends in .gz, typing "gunzip A" will suggest the .gz file. Likewise for things like
43.
▲
by
yourad_io
5y ago
I thought Ctrl+R was cool but in fish you are always in search mode! Start typing any part of your previous command and hit up arrow!
44.
▲
by
yourad_io
5y ago
Hadn't heard of fnm before, thanks. Seems worth checking out.
45.
▲
by
yourad_io
5y ago
One crime at a time
46.
▲
by
yourad_io
5y ago
I believe # is available as a symbol and I doesn't conflict with existing operators
47.
▲
by
yourad_io
5y ago
But it mounts the remote fs as local. You should be able to debug locally and do whatever in the shell at it is a local mount, no?
48.
▲
by
yourad_io
5y ago
Have you considered sshfs? I haven't used it in years but I recall it mostly working.
49.
▲
by
yourad_io
5y ago
Not saying it doesn't at times but right now this was #23 on my front page and it was the first business referencing submission. Everything else was tech stuff / OSS and a 99% invisible post.
50.
▲
by
yourad_io
5y ago
> Failures aren't cached. i thought so too but according to Cloudflare's blog post, at least some of them do: > Consequently, 1.1.1.1, 8.8.8.8, and other major public DNS resolvers started issuing (and caching) SERVFAIL resp
51.
▲
by
yourad_io
5y ago
Speaking of flushing, today I learned that Google public DNS has an open "flush" function: https://dns.google.com/cache
52.
▲
by
yourad_io
5y ago
> but now that I learned that SERVFAIL is not cached on [...] intermediate DNS servers [0] I thought so too, but at least some do cache according to Cloudflare's blog post: > Consequently, 1.1.1.1, 8.8.8.8, and other major public
53.
▲
by
yourad_io
5y ago
I suspect it will slowly get there. We'll find out, it is recovering now.
54.
▲
by
yourad_io
5y ago
> but they can't cache SERVFAIL. Correction: according to Cloudflare's blog post, some do cache errors as well.
55.
▲
by
yourad_io
5y ago
I suspect that the DNS aspect will be fine. The middle DNS servers only need one valid response to cache it for $TTL, but they can't cache SERVFAIL.
56.
▲
by
yourad_io
5y ago
There's a plugin for nginx that works well: $ apt-get install python3-certbot-nginx $ sudo certbot --nginx -d example.com -d www.example.com https://www.nginx.com/blog/using-free-ssltls-certificates-fr... On the o
57.
▲
by
yourad_io
5y ago
> repository contains research from CloudFlare's AntiDDoS, JS Challenge, Captcha Challenges, and CloudFlare WAF. https://github.com/scaredos/cfresearch
58.
▲
by
yourad_io
5y ago
This is entirely correct. It will also depend on the proxy's ASN, the rate of requests, the ability to solve captchas and the presence of an actual js environment in the browser (as opposed to, say, curl - Cloudflare uses a javascript
59.
▲
by
yourad_io
5y ago
> talk about a horrible price point And yet they sold 20K of them in 20 minutes...
60.
▲
by
yourad_io
5y ago
Seconded! I used Forvo for some Greek words and it had high quality recordings from actual humans with good accents.
More ›