Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
moviuro
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
101 ms
·
451.
▲
by
moviuro
8y ago
Top of my head: - it works - it's simple - they know that bash is in /bin - maybe it avoids a needless call to env, resulting in better startup time (see e.g. https://news.ycombinator.com/item?id=16978932 for a si
452.
▲
by
moviuro
8y ago
You certainly meant /bin/sh is not the Bourne again shell . I updated my comment to clear any possible misunderstanding https://en.wikipedia.org/wiki/Bourne_shell https://en.wikipedia.org/wik
453.
▲
by
moviuro
8y ago
It is, but don't forget it's a guide for Google engineers on the Google machines. People who share code for the world to use should use: - `#!/usr/bin/env bash` - or `#!/bin/sh` for POSIX shell scripting
454.
▲
by
moviuro
8y ago
Clearly the WONTFIX was wrongly issued. The issue should be re-opened.
455.
▲
by
moviuro
8y ago
bash is completely out of date on macOS (GPL2 vs. GPL3), and not shipped on any *BSD AFAICT. Some Linux distro don't ship it either (void, alpine IIRC). And, most of the time, bash is used because people don't know any better, see
456.
▲
by
moviuro
8y ago
> >Bash is the only shell scripting language permitted for executables. > Whelp, wrong right off the bat. It really is a Google guide, tailored to Google engineers. If they know for sure that bash is available on any *n?x machine,
457.
▲
by
moviuro
8y ago
Google already pushes for encrypted-in-transit: https://blog.google/products/gmail/making-email-safer-for-yo...
458.
▲
by
moviuro
8y ago
Some GNU utils use USR1 instead. It's not ideal, but it gets the job done. I'd also like to map ^T to `kill -USR1 <pid>` on my machines, but didn't research it much. > Sending an ‘INFO’ signal (or ‘USR1’ signal where
459.
▲
by
moviuro
8y ago
Missing brackets probably: ping6 '[2606:4700:4700::1111]'
460.
▲
by
moviuro
8y ago
This can't possibly hap... oh wait[0] [0] https://www.bleepingcomputer.com/news/security/github-accide... dated 2018-05-01
461.
▲
by
moviuro
8y ago
> I use KeePass 2.x on my laptop and it's been great for having complex passwords, but the few seconds it consumes to load it up every time just to log into a site is annoying. Worth the trade off, of course, but can't we do be
462.
▲
by
moviuro
8y ago
Can't possibly work. Everyone is going to have their own notebook for passwords, protected by rubber band. Yay. Also, I use a password manager on my machines (for websites I use privately: amazon, taxes, etc.), a different one at work
463.
▲
by
moviuro
9y ago
Mix and match, according to criticity and max affordable data loss: multiple locations, multiple solutions, multiple local copies (e.g. one cloud solution + DVD + NAS). See: https://www.backblaze.com/blog/the-3-2-1-back
464.
▲
by
moviuro
9y ago
#!/usr/bin/env python2 There, fixed it. Much like `#!/usr/bin/env bash` for bash scripts instead of `#!/bin/bash` (which won't work on many OSes) https://github.com/search
465.
▲
by
moviuro
9y ago
I tried hugo and jekyll, but pages produced were still too heavy, so I built my own simple, stupid page generator which uses pandoc(1) [0]. With the little bit of trafic I get, and the tons of means to get in touch, I didn't subscribe
466.
▲
by
moviuro
9y ago
It isn't as good as: https://mywiki.wooledge.org/BashGuide (which is the one that gets recommended on #bash @ freenode). Also: https://shellcheck.net
467.
▲
by
moviuro
9y ago
> But this is not going to work when I am traveling and using my carrier's 4G network. That's what VPNs are for. See openvpn, for example (or tinc, strongswan, etc)
468.
▲
by
moviuro
9y ago
More bare-bones than PiHole (no white/black list), simpler too: https://gitlab.com/moviuro/moviuro.bin/blob/master/lie-to-me
469.
▲
by
moviuro
9y ago
$32 instead of $1. OK.
470.
▲
Cryptocurrency sad dashboard (sound warning)
(cryptofeels.net)
1 points
by
moviuro
9y ago
|
0 comments
471.
▲
by
moviuro
9y ago
I know! Though strangely, my own kitchen appliances didn't participate in the continental time-shift (my microwave oven is still ticking correctly). And my remark was more: even NTP can't save ou if you shift the time too much, so
472.
▲
by
moviuro
9y ago
As long as it's not 2^32 seconds (~136 years) late/early, NTP will still be able to save the devices it runs on! [0] [0] https://rachelbythebay.com/w/2017/09/27/2153/
473.
▲
by
moviuro
9y ago
^ is beginning of line, so you'd need: le_test_xxx # <- this is not a comment anyway # le_test_xxx does something nice. # <- doesn't match ^le_test_
474.
▲
by
moviuro
9y ago
L1: #!/usr/bin/env bash Bash is GPL Licensed and does not ship with most UNIX-like systems. *BSDs don't ship it, macOS is stuck in the past, etc. As a BSD user myself, I install curl(1), but not bash(1) on my machines (o
475.
▲
by
moviuro
9y ago
Sadly not available on my current machine :( The experiment is left as an exercise to the reader :)
476.
▲
by
moviuro
9y ago
210ms from South Africa, 91ms from NYC, 198ms from India, 360ms from Melbourne, 55ms from Morocco. It's really not that bad...
477.
▲
by
moviuro
9y ago
That really wasn't the point of my reply. Sure, if the machine dies, my services die. But it's still dirt cheap.
478.
▲
by
moviuro
9y ago
I currently have 2TB HDD, 16GB RAM, infinite bandwidth (100Mbps U/D) for 19.19€/month IIRC at Kimsufi [0] [0] https://www.kimsufi.com
479.
▲
by
moviuro
9y ago
They don't all return the same amount though. According to my Chrome here and now: > https://api.pwnedpasswords.com/range/aaaaa = 28.8KB > https://api.pwnedpasswords.com/range/01234 = 2
480.
▲
by
moviuro
9y ago
> on any input (which is hashed and cropped clientside) You could still run a volume analysis on the reply. If it's very short, you can guess it's a 404. If it isn't, you might be able to get which prefix was queried... \e
More ›