Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Arnavion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
841.
▲
by
Arnavion
4y ago
>looks like lar_disable functionality was removed as of 5.5 kernel as a way to fix the firmware crash issue with iwlwifi, is that right? >[...] i've tried replacing the wifi adapter but this happens on intel wireless-ac 3165, 826
842.
▲
by
Arnavion
4y ago
Of course, despite working on this for a week I only now discovered this... dm_linear is an easier way than mdadm to concatenate the loopback devices into a single device. Setting up the table input to `dmsetup create`'s stdin is more
843.
▲
by
Arnavion
4y ago
Yes. https://news.ycombinator.com/item?id=35163090
844.
▲
by
Arnavion
4y ago
I started out with davfs2 but it was a) very slow at uploading for some reason, b) there was no way to explicitly sync it so I had to either wait a minute for some internal timer to trigger the sync or to unmount it, and c) it implements w
845.
▲
by
Arnavion
4y ago
The stack is XFS inside cryptsetup inside mdraid on top of losetup. The directory containing the losetup block files could be `rclone mount`'d from the WebDAV server, but that would make the setup unavailable if I didn't have ne
846.
▲
by
Arnavion
4y ago
I did create the block files as sparse originally (using `truncate`), but at some point in the process they became realized on disk. Don't know if it was the losetup or the mdadm or the cryptsetup. I didn't really worry about it,
847.
▲
by
Arnavion
4y ago
I use a WebDAV server for storing backups (Fastmail Files). The server allows 10GB usage, but max file size is 250MB, and in any case WebDAV does not support partial writes. So writing a file requires reuploading it, which is the same situa
848.
▲
by
Arnavion
4y ago
No. That will execute `< <(...) read` anew for every loop iteration, which in this case will cause it to print an endless stream of `a`s.
849.
▲
by
Arnavion
4y ago
For scripts that you intend to be used by other people, yes. My comment was about personal scripts.
850.
▲
by
Arnavion
4y ago
"This thing I don't understand reminds me of another thing I don't understand, so it's bad I decided."
851.
▲
by
Arnavion
4y ago
So why does Java close the channel when an "interrupt" happens? I looked at the git-blame of [1] to see if the commit message would explain it, but it's just been there since the first OpenJDK commit in 2007. The only other
852.
▲
by
Arnavion
4y ago
And for those looking for the equivalent POSIX C API, it's `pread` and `pwrite`. I've come across a lot of people (me included) who resort to locking + seek because they don't know these exist.
853.
▲
by
Arnavion
4y ago
Only on Windows. On Linux it's the original `ls`. Same for `cat` and many other commands. That's why using `gci` / `gc` is safer if you want your script to work everywhere. https://learn.microsoft.com/en-us&#x
854.
▲
by
Arnavion
4y ago
Because it's an arbitrary piece of code that needs to be re-evaluated for every input item, like an inline function / lambda in other languages, not an expression that is evaluated once when the commandline is instantiated.
855.
▲
by
Arnavion
4y ago
Blocks always use braces. Expressions use parentheses for grouping sub-expressions. It's the same as many C-like languages. I can't imagine any situation where you would be confused which one you need to use.
856.
▲
by
Arnavion
4y ago
>But most of all the cat way just aligns with my mental model more. Data flows left to right, if you catch my drift. Using `<` doesn't change that model. You can write `< somefile.txt whatever`. I always write my commandlines
857.
▲
by
Arnavion
4y ago
As you already discovered in the other comment, the root Secure Boot key is the PK, and the MOK is a concept that shim made up. shim was created so that people didn't have to enroll their own PK, if their firmware even let them do that
858.
▲
by
Arnavion
4y ago
An alternative to MokManager/shim is to enroll your own key. You'll also need to convince your kernel package to create a UKI under /efi instead of regular initramfs under /boot, and to sign the UKI with your key. Eg on
859.
▲
by
Arnavion
4y ago
Miri doesn't do proofs. It only checks the test cases that you run under it.
860.
▲
by
Arnavion
4y ago
Not even 10 lines. https://news.ycombinator.com/item?id=31091542
861.
▲
by
Arnavion
4y ago
Rust won't help. Sure the compiled code would be bounds-checked, but nobody would notice the bug unless they gave it the crashing input. And then when they reimplemented the code in their non-bounds-checked language then that would rei
862.
▲
by
Arnavion
4y ago
>I wish there was something in the ipv6 standard that allowed referencing an ipv6 without the prefix on your local subnet (ie: :::10a1:da35:2f4d:3cfc). That's what the link-local address on your interface is for.
863.
▲
by
Arnavion
4y ago
>Yes there are ways to mitigate (ULA, mDNS, DNS, DHCPv6, etc) but now you're introducing additional complexity that didn't exist before into the network when I keep hearing how Ipv6 is supposed to reduce complexity. ULAs are ne
864.
▲
by
Arnavion
4y ago
https://news.ycombinator.com/item?id=24999906 Shitty ISPs do exist, or at least they existed two years ago.
865.
▲
by
Arnavion
4y ago
>In IPv4 NAT is used to make sure your laptop isn't exposed to random script kiddies trying to scan for vulnerable services behind your router. NAT does nothing for that. Those incoming connections are dropped on the WAN interface b
866.
▲
by
Arnavion
4y ago
The amount of firewall config I have to write to let an incoming connection cross from WAN to LAN is the same regardless of whether it goes to a NAT'd IPv4 address or to an IPv6 address.
867.
▲
by
Arnavion
4y ago
https://news.ycombinator.com/item?id=26615231
868.
▲
by
Arnavion
4y ago
>Since DHCPv6 is apparently frowned upon by v6 purists, and not all devices on my network support it, that leaves SLAAC. It's not a dichotomy between DHCPv6 and SLAAC. You can hard-coded addresses too. Since it's your homelab y
869.
▲
by
Arnavion
4y ago
For NTP, an alternative is letting the LAN devices connect to whatever NTP server they want to, and just NAT'ing outgoing udp/123 to your NTP server.
870.
▲
by
Arnavion
4y ago
Eg in the 2021 T-Mobile breach, Ting MVNO claimed their users' data was not affected: https://help.ting.com/hc/en-us/community/posts/4405384603291... Of course you'll still be affected by SIM-s
More ›