Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tripflag
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
31.
▲
by
tripflag
2y ago
That's curious; maybe this is device/distro-specific? I've had good experience using this approach to transfer files to both my tablet (Samsung s2, lineage) and phone (pixel7, grapheneos). Or maybe Termux is pulling some addi
32.
▲
by
tripflag
2y ago
if you use Termux to host your service, then you can "Acquire wakelock" to keep it available with the screen off. That's an action-button attached to the Termux notification, and I believe also the main reason Termux has a no
33.
▲
by
tripflag
2y ago
The case you're outlining (an uefi rootkit) is pretty much the worst case; assuming you get infected by some malware which decides to install a malicious firmware (BIOS update), then pretty much nothing is getting in the way of that. W
34.
▲
by
tripflag
2y ago
> ON ERROR RESUME NEXT Ah yes, the load-bearing magic words that somehow made my programs work... I kinda miss vb6 :-)
35.
▲
by
tripflag
2y ago
Please be extremely careful blindly trusting oneliners from GPT's! Plenty of horror stories, but I'll name a recent one as example: Someone wanted to use FFmpeg to (losslessly) convert video files from one container to another and
36.
▲
by
tripflag
2y ago
Atuin should help with large histories; https://atuin.sh/ Graduating specific oneliners into functions/scripts is also a good chance to clean them up a bit, but it's a balance that's hard to strike - too many
37.
▲
by
tripflag
2y ago
I can warmly recommend making your own oneliners.txt over time, especially if you hop between boxes a lot. Some of the more hyper-specific entries in my own list has saved my bacon more times than I'd like to admit... https:/
38.
▲
by
tripflag
2y ago
Replacing glibc with musl is usually unproblematic. That's what I did for my own portable toolbox which builds to a single self-extracting binary; https://github.com/9001/lxc
39.
▲
by
tripflag
2y ago
it worked for me on win11pro 24h2 just a few days ago; maybe you had a lan cable connected?
40.
▲
by
tripflag
2y ago
I've found zstd --long=31 to be an excellent replacement for lrzip. Mentioned it in the github issue as well, cross posting for context. I'm not associated with either zstd or lrzip, but would still be curious to hear if you find
41.
▲
by
tripflag
2y ago
> NullPointerException became a meme quite literally; https://danbooru.donmai.us/posts/947012?q=parent%3A947012
42.
▲
by
tripflag
2y ago
I built a Win10 binary with Nuitka just the other day, and was surprised to find the pyinstaller binary had higher performance at runtime. Pyinstaller also had several other advantages, such as producing smaller binaries, and building faste
43.
▲
by
tripflag
2y ago
Like jasomill mentions, the browser playback issues statement has not been true on desktops for a long time. The most recent (or only) example I know of is iPhones, which finally added passable support for non-44.1kHz audio somewhere betwee
44.
▲
by
tripflag
3y ago
I always use "zstd --long=31 -T0 -19" to compress disk images, since that is a usecase where it generally offers vastly superior compression to xz, deduplicating across bigger distances. XZ offers slightly better compression on av
45.
▲
by
tripflag
3y ago
indeed; it should be trivial in any language. Here's python: https://github.com/9001/copyparty/blob/a080759a03ef5c0a6b06c...
46.
▲
by
tripflag
3y ago
if you're in the market for something slightly bigger, I've found this font to be useful on lowish-res (640x480) displays: https://github.com/josuah/miniwi
47.
▲
by
tripflag
3y ago
> Yes, not officially supported, but if it's just Android it will most likely work just fine. I have had zero issues with Norwegian banking apps on my Pixel running GrapheneOS, so I'm inclined to believe OP would be fine with s
48.
▲
by
tripflag
3y ago
Thank you for the correction -- it is likely that I did use count= when I ran into this some 10 years ago (and been paranoid about ever since). I thought a chunk of data was missing in the middle of the output file, causing everything after
49.
▲
by
tripflag
3y ago
This use of dd may cause corruption! You need iflag=fullblock to ensure it doesn't truncate any blocks, and (at the risk of cargo-culting) conv=sync doesn't hurt as well. I prefer to just nc -l -p 1234 > /dev/nvme0nX.
50.
▲
by
tripflag
3y ago
I've been having similar issues with Windows 3.11; trying to boot a qemu image I made a few years back and it looks like networking has died in the meantime, and another image crashes when it exceeds some small amount of RAM usage. But
51.
▲
by
tripflag
3y ago
Fwiw, at least one recent study indicates there is little benefit from exercising your brain: https://www.cell.com/trends/cognitive-sciences/fulltext/S136... related news article (in Norwegian): https:/
52.
▲
by
tripflag
3y ago
We have a lot in common :-P except I'm still on bash, and do rely on PROMPT_COMMAND like you mentioned -- https://github.com/9001/asm/blob/hovudstraum/etc/profile.d/e... Lines 11-21 can be
53.
▲
by
tripflag
3y ago
In that case we probably have the answer already :) The next question then would have been whether secureboot-signing it yourself and replacing the PK/DB in the BIOS would have made it work, but it's really unfortunate that we
54.
▲
by
tripflag
3y ago
iPXE makes the client-side part of it manageable; the only drawback is having to walk through the open pull-requests on github for the patches you need to get it working, and possibly having to fight some buggy uefi drivers (usually solved
55.
▲
by
tripflag
3y ago
while I don't have any of those machines readily available, i am curious if this USB image [1] would work. It's a lightly customized Alpine which can be written to a flashdrive using either Rufus, usbimager, or this command: xz -d
56.
▲
by
tripflag
3y ago
The warning is also opt-in; you'll have to run python with PYTHONWARNINGS=always or similar to see it. Which is scary, because you will be taking the performance hit from generating the warning regardless, which can easily amount to 30
57.
▲
by
tripflag
3y ago
neat! i was aware of bash's built-in tcp client at /dev/tcp, but gawk being able to function as a tcp server is way cooler. Thanks for that bit of knowledge :>
58.
▲
by
tripflag
3y ago
it's not intentionally obfuscated, it just happened like that :-) The only place I've posted it until now is on my oneliners collection, https://ocv.me/doc/unix/oneliners/#c58b5be6
59.
▲
by
tripflag
3y ago
How about bash? :p r() { read -n1 -r c; [ "$c" = "$1" ]; }; b=2; stty -echo -icanon; printf '\033[H\033[0m\033[J\033[?1003h'; while true; do r $'\033' || { printf '%s\n' "$c" | gre
60.
▲
by
tripflag
3y ago
Chrome behaves correctly on Linux, macos and windows, I can confirm that much. Files are immediately closed when they are no longer in use, either by a FileReader() or by an XmlHttpRequest. Firefox /appears/ to immediately be clos
More ›