Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yrro
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
58 ms
·
721.
▲
by
yrro
6y ago
xdg-utils does not use /etc/mime.types; that file is used by Apache httpd, CUPS, and various other programs though.
722.
▲
by
yrro
6y ago
Then you don't have a program that can handle the URL scheme, at least according to desktop-entry-spec[0], which is the source of data that xdg-utils consults. [0] https://www.freedesktop.org/wiki/Specifications&#x
723.
▲
by
yrro
6y ago
The problem with mime type in xattr is that you lose it as soon as you copy it to another filesystem. It also assumes that every system names its MIME types identically.
724.
▲
by
yrro
6y ago
OP is missing definitions that associate *.docx files, etc., with the appropriate MIME type. The Garbage In, Garbage Out principal applies here. For anyone interested about how the plumbing, here are the specs: shared-mime-info-spec[0] is f
725.
▲
by
yrro
6y ago
Yes. $_ is documented here: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.... And !$ is documented here: https://www.gnu.org/savannah-checkouts/gnu/bash/manua
726.
▲
by
yrro
6y ago
This is the `yank-last-arg` readline comment. Bound to M-. and M-_ by default. "Insert last argument to the previous command (the last word of the previous history entry). With a numeric argument, behave exactly like yank-nth-arg. Succ
727.
▲
by
yrro
6y ago
It's £37 bn over two years. It's not clear how much of that has actually been disbursed yet (I vaguely recall a figure of £5-6 bn in Private Eye, but I'm not sure).
728.
▲
by
yrro
6y ago
SELinux can do this--think of it as a second layer of security that is checked after the normal DAC checks (e.g., process uid vs file permissions) succeed.
729.
▲
by
yrro
6y ago
I wish such announcements would include a reference to the bug tracker where the change was discussed: https://bugs.launchpad.net/ubuntu/+source/adduser/+bug/48734
730.
▲
by
yrro
6y ago
Well that supposition can be checked easily... $ dpkg -S /etc/login.defs login: /etc/login.defs https://packages.ubuntu.com/login -> hirsuite -> changelog gets you to https:/&#x
731.
▲
by
yrro
6y ago
For some reason people always overlook the Bash Reference Manual: https://www.gnu.org/software/bash/manual/bash.html (Usually available locally at 'info bash', I know you hate info don't @ me)
732.
▲
by
yrro
6y ago
What's the advantage of REST when you have TCP sockets?
733.
▲
by
yrro
6y ago
Not if SELinux policy prevents it.
734.
▲
by
yrro
6y ago
Unless it has DAC override or other capabilities. Belt and braces!
735.
▲
by
yrro
6y ago
There is no such thing as an exported or non-exported environment variable. In fact, as the kernel is concerned, there is no such thing as an environment _variable_ at all, just a block of data. See execve(2): "envp is an array of poin
736.
▲
by
yrro
6y ago
I'm talking about doing this: https://kubernetes.io/docs/concepts/configuration/secret/#us...
737.
▲
by
yrro
6y ago
I'm concerned with 'I have credentials in my environment block and just dumped the whole thing to a log file'. Avoiding storing the credentials in the environment block obviously avoids that. To be fair, unsetting sensitive e
738.
▲
by
yrro
6y ago
Good point about command line arguments being often automatically logged! So they bad for both reasons :) Now, if you're running in k8s then you can improve your setup by mounting your secret into your container, and have your code rea
739.
▲
by
yrro
6y ago
Yes, for those reasons
740.
▲
by
yrro
6y ago
Command line arguments aren't inherited by child processes. Unfortunately they are visible to other users on the system, so they're no good for credentials. Config files (or an abstraction of them such as reading config data from
741.
▲
by
yrro
6y ago
It's an exceedingly strong convention. I'd be genuinely curious to learn of non-malways uses for entries within the environment block that don't fit the standard name=value pattern.
742.
▲
by
yrro
6y ago
Bold of you to assume my third party code runs with the same UID and SELinux label as my credentials-handling code. (I wish, it's April 1 after all!)
743.
▲
by
yrro
6y ago
Why I don't like environment variables: 1. I worry about programs dumping all their environment variables to log files - credentials are now on disk, ingested into log storage... 2. Environment variables are inherited by child processe
744.
▲
by
yrro
6y ago
Can't creators already do this? I know I've noticed that the dislike ratio/count/whatever have been hidden on a number of videos I've seen over the years....
745.
▲
by
yrro
6y ago
What I like about this is that ending your data with FS means that you can detect file truncation, yet another thing that CSV makes impossible. I wonder how you embed US/RS/GS/FS within a field though. Prefix with ESC?
746.
▲
by
yrro
6y ago
Send a line consisting of a single 'R' character. https://www.openssl.org/docs/man1.1.1/man1/openssl-s_client....
747.
▲
by
yrro
6y ago
5g per km-tonne adds up to a lot though doesn't it. "Maritime transport emits around 940 million tonnes of CO2 annually and is responsible for about 2.5% of global greenhouse gas (GHG) emissions (3rd IMO GHG study)." https:&
748.
▲
by
yrro
6y ago
As is the environmental harm
749.
▲
by
yrro
6y ago
> Using Docker with WSL is a breeze Not if your Windows users have to use Direct Access to connect to your container registry...
750.
▲
by
yrro
6y ago
> What is gained, SERIOUSLY, by these stupid pop-ups? Disclosure
More ›