3,412 karma · joined Sep 17, 2013 (13y ago) · 1,421 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
$ which {which,type,command,vi}
which: shell built-in command
type: shell built-in command
command: shell built-in command
/usr/bin/vi
$ type {which,type,command,vi}
which is a shell builtin
type is a shell builtin
command is a shell builtin
vi is /usr/bin/vi
$ command -v {which,type,command,vi}
which
type
command
/usr/bin/vi
Which is quite different from how bash 5.1 behaves: bash-5.1$ which {which,type,command,vi}
/usr/bin/which
/usr/bin/type
/usr/bin/command
/usr/bin/vi
bash-5.1$ type {which,type,command,vi}
which is hashed (/usr/bin/which)
type is a shell builtin
command is a shell builtin
vi is /usr/bin/vi
bash-5.1$ command -v {which,type,command,vi}
/usr/bin/which
type
command
/usr/bin/vi
I wouldn't want to be the one responsible for making this change, that's for sure.command -v does seem like the most reasonable choice in both circumstances, though.
/usr/bin/type and /usr/bin/command are indeed just the same shell scripts.
file /usr/bin/{which,type,command}
/usr/bin/which: Mach-O universal binary [...]
/usr/bin/type: POSIX shell script text executable, ASCII text
/usr/bin/command: POSIX shell script text executable, ASCII text
cat /usr/bin/command
#!/bin/sh
# $FreeBSD: src/usr.bin/alias/generic.sh,v 1.2 2005/10/24 22:32:19 cperciva Exp $
# This file is in the public domain.
builtin `echo ${0##*/} | tr \[:upper:] \[:lower:]` ${1+"$@"}comment 5y ago · link · parent
That seems too complicated for every single pharmacy in Europe. I bet they just punch in some data to a web app and it does the actual cryptographic signing.
> I took a friend of mine, who was vaccinated out of EU, to a pharmacy and nicely asked if he can have a certificate for travel. They just glanced at the his vaccination dates and gave us qr codes, no questions asked.
This seems no different than Joe pharmacist punching in Hitler. It's still a big problem, but it's not nearly as bad as leaking the actual private key.
comment 5y ago · link · parent
The CM4 draws somewhere between 7 and 9 watts under peak load, and each SSD would be around 2W under load. That feels pretty tight already.
I'm sure it would be totally fine at idle and low loads, but I just can't see it being enough juice at full load with two drives, especially if there are other services running on it and the storage is encrypted.
comment 5y ago · link · parent
There’s pretty much no need to say your address either. The police will already have your location from the phone call.
comment 5y ago · link · parent
I think Apple did exactly the right thing here. If I have my MacBook hooked up to my desk monitor, I’ll just use a single USB-C cable for power, video, mouse, and keyboard like I do today. That kind of desk setup isn’t a tripping hazard.
If I take my laptop to a coffee shop and need to charge it, I’ll use MagSafe because it’s more likely to be tripped over or yanked in that situation. What’s key is that I only needed power at the coffee shop. What else would be going over the cable in that kind of setting?
comment 5y ago · link · parent
I don't really get what you're suggesting.