Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PhilipRoman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
PhilipRoman
7mo ago
I always thought Vim/Nvim already had a built-in package manager, git clone inside ~/.vim/pack/*/start, am I missing anything by not using a "real" package manager?
62.
▲
by
PhilipRoman
7mo ago
In Vim, :! cleans up the tty context and hands it off to the child program, to do whatever it wants, you can open any TUI program and it will work as expected. In Neovim, :! just uses a plain pipe. Actually I believe GVim has the same probl
63.
▲
by
PhilipRoman
7mo ago
It's actually almost exactly the opposite, at least when considering the number of media outlets. Fox news is a massive outlier with a huge audience and strong republican leaning, but most of the major networks engage in democrat-align
64.
▲
by
PhilipRoman
7mo ago
I believe you've always been supposed to handle pagination for this API: https://docs.github.com/en/rest/using-the-rest-api/using-pag... Paginated-by-default APIs are an annoying pattern, like GitLab CI
65.
▲
by
PhilipRoman
7mo ago
That sounds like something I would've done... When I was a kid, the 5€/month for a VPS was a massive expense, to the point where I occasionally had to download my 10GB rootfs to my mom's windows laptop, terminate the instance
66.
▲
by
PhilipRoman
7mo ago
For RE cases where I know the original compiler used (a bit harder on C compilers due to huge number of obscure optimization flags), I give it a feedback loop to write a function that compiles to the original machine code.
67.
▲
by
PhilipRoman
7mo ago
Mine likes them as well, but usually within 24 hours they're transformed into thousands of tiny cardboard pieces.
68.
▲
by
PhilipRoman
7mo ago
I initially laughed at this but then remembered that https://poc.bcachefs.org/ exists...
69.
▲
by
PhilipRoman
7mo ago
Ente has a killer feature of supporting actual end-to-end encryption for photos. That alone puts them above many other competitors.
70.
▲
by
PhilipRoman
7mo ago
For an ideal ('spherical cow in a vacuum') type of homeless person, sure.
71.
▲
by
PhilipRoman
7mo ago
Be careful with the setrlimit/ulimit API family, generally it doesn't do what you want. You can limit virtual memory (but... why?) or specific segments like stack, etc. There is also RLIMIT_RSS which sounds like what you'd wa
72.
▲
by
PhilipRoman
7mo ago
hah, you weren't joking... https://poc.bcachefs.org/ https://www.theregister.com/2026/02/25/bcachefs_creator_ai/
73.
▲
by
PhilipRoman
7mo ago
Unless you want to insmod things in your main kernel like a cowboy, I don't see why you'd need architectures to match. Cross compilation is the proper way (for some architectures it would be quite hard to find a machine capable of
74.
▲
by
PhilipRoman
7mo ago
Don't get me wrong, I don't mind old aesthetics, but... yes? Well I wasn't exactly alive in 1978 but all the screenshots look like they are at least 20 years old
75.
▲
by
PhilipRoman
7mo ago
mlockall(2) + tty/framebuffer based graphics should do the trick
76.
▲
by
PhilipRoman
7mo ago
When you say you use local model in OpenCode, do you mean through the ollama backend? Last time I tried it with various models, I got issues where the model was calling tools in the wrong format.
77.
▲
by
PhilipRoman
8mo ago
zr? vim folds are fully programmable. For me a bigger issue was git calling vimdiff for each file, which I fixed with my own difftool: https://gist.github.com/PhilipRoman/60066716b5fa09fcabfa6c95...
78.
▲
by
PhilipRoman
8mo ago
I think that's an oversimplification. Voting does not have the same dynamics as soccer goals. Maybe a better analogy would be that the team is already winning 5-1 and in the last minute someone makes it 5-2. Good job of course, but can
79.
▲
by
PhilipRoman
8mo ago
IMO there is actually a very low hanging fruit here, even without P2P or DHTs we could have an URI scheme that consists of a domain and document hash. It is then up to the user to add alternate mirrors for domains. Aside from privacy, it do
80.
▲
by
PhilipRoman
8mo ago
I'm saying that 90% of these setups look like this (or do the equivalent thing manually): ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168... They have ssh, but no proper key management
81.
▲
by
PhilipRoman
8mo ago
>>Nobody verifies host keys, >The known_hosts file is verification of host keys I think the point was that those devices typically generate host keys dynamically and therefore the host key verification is usually turned off, leavin
82.
▲
by
PhilipRoman
8mo ago
The array indexing thing is a special case in [[...]] which is otherwise more-or-less secure (no expansion occurs under typical unquoted variable access). https://news.ycombinator.com/item?id=46631811
83.
▲
by
PhilipRoman
8mo ago
https://xkcd.com/1200/
84.
▲
by
PhilipRoman
9mo ago
Your process can crash or be killed at any moment anyway. Depending on in-band cleanup is not reliable.
85.
▲
by
PhilipRoman
9mo ago
I haven't given this more than 5 seconds of thought, but wouldn't it make sense to only enable the timing attack prevention for pseudo-terminal sessions (-t)?
86.
▲
by
PhilipRoman
9mo ago
It can be about as fast if you set key repeat delay to minimum and repeat speed to maximum. I used it for a while and got quite precise with it. Works well until someone else needs to use your computer for a moment...
87.
▲
by
PhilipRoman
9mo ago
This is completely safe: [ "${payload}" -eq 42 ] This can evaluate arbitrary code: [[ "${payload}" -eq 42 ]] Here is one example of a malicious payload: payload='a[$(touch /tmp/pwned)]'
88.
▲
by
PhilipRoman
9mo ago
[[...]] is non-portable and has an extremely quirky corner case with variable expansion in arithmetic contexts, what's not to love?
89.
▲
by
PhilipRoman
9mo ago
That's just because glibc is not designed for static linking. It works, but it doesn't exclude unused code, unlike with other libcs.
90.
▲
by
PhilipRoman
9mo ago
Indeed, also userspace-level atomicity is important, so you probably want to save a backup in case power goes out at an unfortunate moment. And since you already need to have a backup, might as well go for a full rewrite + rename combo.
More ›