Better HN
topnewbestaskshowjobs
Log inSign up

TacticalCoder

10,592 karma · joined Dec 4, 2013 (12y ago) · 4,839 submissions

email: I'll add a suitable email one of these days
Submissions

comment 2w ago · link · parent

Speaking of which I do something cool with my main desktop (an AMD 7700X, but whatever). It's running Debian and there's zero executable with the suid bit set. There's no sudo command installed. Using "su" to su to root is technically possible but it's like a 40 characters long password, meant to never be entered (and I never ever entered it using su).

The only way I can get root (short of using a local privilege exploitation exploit to gain root) is by logging, using a Yubikey, over ssh, from a dedicated laptop that has nothing but a SSH client. So the Yubikey is plugged into the laptop.

That dedicated laptop has no wifi drivers and is on a dedicated LAN and that dedicated LAN only has two machines on it: my desktop and that laptop.

The laptop serves no purpose other than: "log in as root on the desktop".

Of course both that laptop and the desktop have firewalls.

This means, yes, I allow log in as root using SSH. But password logins are disabled and the only way to log in as root using SSH is to use the Yubikey. And the firewall only allow SSH attempts to port 22 from the MAC address, IP, and dedicated LAN that corresponds to the laptop.

In addition to that my main desktop has multiple user accounts: but none of those users are allowed to su or sudo.

Now, I know, I could use Qubes or whatever.

But what I explained above is how I do it: even myself I cannot get root on my own desktop without my laptop + Yubikey (I'd need to find and enter the 40 chars long root password).

When I really need to do something as root (and once becoming root becomes extremely hard, suddenly you realize how rare are the occasions when you really need to be root), I open my laptop and boot it (and because that laptop has no GUI and basically nothing besides a SSH client, it boots in three seconds or so).

Haters gonna hate but that's been working totally fine for me since years and years.

comment 2w ago · link · parent

> And again no one can use it.

So basically Google has both SOTA models (Argon and Carbon and top of the line TPUs, but...

Google is in trouble?

(reading HN search is dead and hence Google is done)

comment 2w ago · link · parent

Well because men are physically stronger than women and because some men are wife-beaters or rapists or cheating on their wife, since decades already now there's been a movement to portray all men as raping pigs.

So it's no surprise that young gullible persons (both men and women), after that insane propaganda campaign that commences with kids at a young age, eventually got convinced all men were worthless pigs.

And now, cry me a river, there are national health report findings saying that "too many men suffer in silence".

Maybe it's time we look out as to whom are the actual people responsible for this state of affair?

You cannot spit in the air and expect it to not eventually come back in your face.

P.S: as a sidenote and very, very, very interestingly these same movements that describe men as pigs turn a complete blind-eye to actual patriarchal societies and religions, which is honestly quite shameful.

comment 2w ago · link · parent

> Most hobby use cases would be fine with the 1GB, 4GB, or even 8GB versions.

Oh yup... I'm running unbound (DNS resolver) at home 24/7 on a Pi 3 from 2015 since years and years. Zero issue. I run that on a Pi because that one really needs to be on 24/7 and hardly consumes any resources (I mean: it's just DNS queries). But a Pi simply ain't good for much more than that.

> I thought we all established long ago that trying to use a Raspberry Pi like a computer or laptop replacement was not a good idea, because every past Rapsberry Pi thread has been inundated with comments encouraging everyone to get a NUC or a used computer instead.

I fully agree. For the proper stuff I encourage anyone to buy used enterprise gear with proper RAM (i.e. ECC RAM) and a proper CPU (like a Xeon).

I've got four NUCs too but the real workhorse is a used Xeon with ECC RAM.

> The Raspberry Pi is great if you need what it offers, but at some point the mainstream Raspberry Pi community lost the plot and started treating them like laptop, desktop, or server replacements, which they were never great at.

I agree. I've got like seven Pi (I was an early adopter of those) but don't ever plan to buy another.

It's like you said: they lost the plot (not just the community: those who make them too).

comment 2w ago · link · parent

> The agent running on a remote machine can authenticate using your local SSH credentials.

No it doesn't. I'm using and enforcing SSH U2F keys. You physically press on a Yubikey (or similar) or you don't authenticate.

As for my own Git server, it's of course over SSH and it requires pressing the Yubikey too. As a sidenote as I do it from Magit I modified Magit to add a small but obvious message stating that the Yubikey probably awaits touching (otherwise it's easy to miss / not realize).

The great thing with all these hacks and bad practices is that I believe, eventually, people are going to learn better security hygiene.

comment 2w ago · link · parent

> You might argue it's like Windows vs Linux ...

Sorry what? There are 10x if not more Linux installation vs Windows installation in the world. Linux powers everything, including billions of smartphones, where Windows is nowhere to be seen. Same for routers. And actual proper servers.

If it's like Windows vs Linux it means open-weight models are going to be incredibly more successful and touch just about everything. All the while being cheaper and working not a bit but much better.

comment 2w ago · link · parent

Ah yup the Stasi: a big success of The Socialist Unity Party of Germany, working with their friends in the USSR, to crush dissent (by suppressing speech, imprisoning people, etc.).

I'll just note that today in France there's one TV channel that isn't a leftist one and the left is working hard to make it shut down, under the excuse that it's an evil far-right racist channel. One channel that isn't a socialist (or downright communist) channel and even that is too much: just like the stasi, they want to crush dissent and have that channel closed.

Leftists cannot conceive that people from the other side of the aisle have a right to freedom of speech, so they'll do everything they can to remove it.

That's what the stasi was. And the people with the mindset that made the Stasi possible are hard at work in the world today.

comment 2w ago · link · parent

> It would be sad if the AI boom took a huge nosedive because someone couldn't keep their dick in their pants.

One CEO with a chinese spy and another CEO with an obvious Mossad asset.

Would be sad indeed.

comment 2w ago · link · parent

Ah good old Marx of course komrade.

Let me ask you: as he apparently was so good at predictions, did he predict the millions of deaths of the russian famine in the 1920s and the millions more of death of the soviet famine of the 1930s?

And did he predict the "wonderful" living conditions of people in communist Russia and in the eastern european USSR satellite countries?

People from the comfort of their western countries love to cite Marx but go to Poland for example and ask them how much Marx is loved.

I also find it a bit thick to talk about the coercivity of the capitalistic states. IMO it can only be analysed when put into perspective with the coercivity of states like North Korea, Cuba, Russia, China, etc.

It's nearly as if what Marx didn't predict was more interesting than what he did.

comment 2w ago · link · parent

So basically the equivalent of the entire US GDP in those 14 companies + OpenAI and Anthropic at a $1T valuation or so.

16 companies with a market cap as big as the entire US GDP.

Make is make sense when 15 out of those 16 are US companies.

Back in, say, 2006, twenty years ago, there weren't 15 companies adding up to the entirety of the US GDP.

Something simply doesn't add up.

comment 2w ago · link · parent

>> Someone at Anthropic must’ve caught wind… just a day after making my decision, they announced Claude Code would finally start supporting AGENTS.md files in an effort to get me to stay.

> Forgive me for asking if I should know, but who is the author? Is he famous?

I think that was tongue in cheek. And by that I don't mean the author's tongue was actually in his cheek.

I also think it went over your head. And by that I don't mean I think it literally went over your head.

comment 2w ago · link · parent

> While this will certainly work, you likely want Intel or even a Mac Mini for that use case, because video encoding is a weak spot for AMD.

How many movies/series do you plan to stream at once from that one Plex or Jellyfin server?

I only stream locally and there's only one stream playing: I run that from a CPU that is 10 years old, a Xeon 2680 v4, from a VM that has only got a few cores and maybe 16 GB of RAM and that's it. Now, OK, it's an Intel CPU. But it's also 10 years old. And you can buy one for, what, $10 on eBay (just the CPU: a complete used Xeon server from 10 years ago shall set you back $200 or so).

comment 2w ago · link · parent

Ah yes, of freakin' course, the current issue with modern literature is typos.

The one thing that LLMs can fix in a split-second.

The problem with modern literature is not LLM. Not, that it is not. The problem is typos.

For fuck's sake really...

comment 2w ago · link · parent

It's really cool and I do have a Pi in "homeprod" since the Debian 9 days (!): my trusty unbound DNS resolver.

For anyone who wants a way more beefy homelab but still at a bargain price, I think it's hard to beat used Xeon workstations. Buy one with a 4-cores Xeon and then replace it with a 20-cores / 40 threads.

It'll run a ZFS tank and shitloads of VMs without any issue: it's made for that.

I didn't pay it $10, more like $200.

I only turn my Xeon server on when I need it (hence the 24/7 Pi running unbound: that one is up all the time and consumes nothing).

comment 2w ago · link · parent

Seen all the attacks and what AI allows for bad guys, I'm beginning to think that running my own DNS and null routing hundreds of thousands of domains (including variations of domains I use regularly, for which I automatically generated hundred of thousands of alternate names: to fight phishing) ain't enough.

I also block every single domain whose name contains non-ASCII character (no Unicode domain names for me / no punnycode: just get lost).

So maybe, maybe, maybe that after all I'll be moving to whitelisting domains. I know some do it and I know it's hard to do right. But some do just that.

It may be time for companies to give the list of all the domains we need to whitelist for their site to function.

Better yet: it may be time for companies to use as few domains as possible.

I don't care about your ads partners. I don't care about your surveillance (pardon, telemetry) partners.

It's too early to tell but a mindset shift may be coming.

comment 2w ago · link · parent

> Now everyone have to decide on their own what to believe or not.

I decide to believe that communism doesn't look like a nice system and I decide to believe that I really don't believe those saying: "this time we'll make communism work".

comment 2w ago · link · parent

Can we hear something from those who say that using port-knocking is "security through obscurity"?

Really: from the XZ backdoor in SSH (which went live on some distros) to this...

What's you rationale for calling port-knocking "security through obscurity" and not "defense in depth"?

Put it this way: if I advertize that my server is using port-knocking, that the sequence changes every 30 seconds (like TOTP) and that as soon one sequence is used, it's unusable (so you've only got one attempt to SSH in every 30 seconds, even if you know the sequence)...

Where's the security through obscurity?

But really: even if had musl and PasswordAuthentication allowed (I don't have neither), how would an attacker gets through the port knocking?

More fundamentally the question is: in which way is your system that does not use port knocking more secure than the one who do?

(remember: we're talking about remote exploits by simply having exposed TCP ports open or SSH listening)

Wanna have a talk too about the "solutions" proposed by "security experts" here "because SSH is too old" and that happen to be crufts on top of SSH that had remote root exploitable backdoors? (sorry, holes)

comment 2w ago · link · parent

> ... is one of those times when nostalgia is so overwhelming

1991, Psygnosis (of course), Commodore Amiga (double of course!): my little brother was 9 y/o at the time and we were teenagers and we'd play Lemmings like crazy on our Amiga.

My little brother couldn't speak english yes but he'd imitate the "oh, nooooo" sentence Lemmings you'd "suicide" would make.

More than three decades later my brother is still nicknamed "Lem" after "Lemmings" and that's how we call him. And about two decades ago, he gave his consulting company a name sounding like "Lemmings" (spelling slightly different). He's still "Lem" and he still has got that company.

Oh noooooooo!

comment 2w ago · link · parent

>If, say, the NYTimes is promoting scams (they are) they should be fined or worse.

Oh yup. They heavily pushed the FTX scam for the NYT is heavily slanting democrats and SBF's mom was very active politically with the democrats. And these weren't "ads" but articles upon articles as if SBF was the second coming of Christ.

The NYT literally kept explaining SBF was a good guy and giving him a voice even after the scam got exposed.

Thankfully the judge wouldn't have any of that NYT nonsense (SBF's mom was teaching that we should "move past blame" at uni if I'm not mistaken) and SBF is roting in jail.

But nothing happened to those scam-promoters that the NYT is.

Screw that politically slanted publication promoting scams.

comment 2w ago · link · parent

Wait: Debian packages are signed.

A compromised mirror cannot serve packages that aren't properly signed.

This attack used an HTTP redirect to serve a backdoored package after the signature has been verified. I'm not sure that HTTP redirect attack would work with an HTTPS repository!?

comment 2w ago · link · parent

> I think Binance needs to start having IT Security like a bank as well.

I don't disagree but note that apparently a bank in France, Credit Mutuel (and it's Fortuneo online arm), just got robbed of hundreds of millions of EUR: hackers who have beforehand created accounts on Kraken (a cryptocurrencies exchange) and who then wired millions to different accounts, bought cryptocurrencies, and withdraw the crypto.

But the hack was really stealing hundreds of millions from the bank.

So not even banks are safe now.

comment 2w ago · link · parent

We had fridges in European supermarkets that stopped blowing cold and countless food had to be thrown away.

Fridges.

What makes you think Internet-connected robots from China are safe as "household items"?

Not a big Trump fan but common...

comment 3w ago · link · parent

> Art Nouveau began in Brussels, pioneered by architects such as Victor Horta and Henry van de Velde.

As a belgian I love Victor Horta and growing up in Brussels it was normal for us to see "Horta houses" here and there. They're not that rare.

I, however, cannot stand that grotesque thing that the Sagrada Familia is. And I'm not the only one to consider it grotesque. I'll note that TFA's author apparently has some reservations about it too. And I really don't care the general consensus is that it is wonderful.

And the Sagrada Familia, has as already been noted in this thread, is certainly nothing like Art Nouveau (someone described it in this thread as "closer to H.R. Giger's Alien than Art Nouveau" and I fully agree).

As a sidenote I'd say architects have a duty to make things that are sustainable. Something so grotesque that it takes decades after your death to even only finish, let alone maintain, means "architecture" went somewhere deeply wrong.

I don't doubt it's great PR for the city of Barcelona though.

As the saying goes: "To each their own bad tastes" ("A chacun ses mauvais gouts").

comment 3w ago · link · parent

> Or why let our children take any risk?

My daughter does Brazilian Jiu-Jitsu since a few years already now: her uncle is a black belt. She skateboards too. Those aren't "safe" sports. BTW she already dislocated someone else's arm (nothing serious but the other person wanted to "see if BJJ works": she got her answer).

And yet there are sports I won't let her do, like proximity flying or basejumping for example.

Saying: "All sports have risks, so all sports are equally risky" is a logical fallacy.

comment 3w ago · link · parent

My absolute favorite is neither my M1 (whose screen broke overnight for no reason after 13 months, just outside of warranty) nor the ThinkPads many love but...

My milspec LG Gram with 24 GB of RAM: I know, I know, milspec means nothing etc. But...

A friend of mine literally stepped on it by mistake: no problem. There s an online video about someone throwing one down concrete stairs: keeps working just fine.

It s also lighter than any Mac laptop.

It s old now and may not have the fastest CPU but this laptop can and does take serious beating without breaking a sweat.

Amazing machine

comment 3w ago · link · parent

> ... and IMHO most of them are in denial of the fact that their skills have mostly become worthless if they don't start to pivot to something valueable.

But your comment says it several time: the valuable skill is being already a seasoned dev.

Then AI is superpower.

It's for the junior that things sucks big times.

I see it all around me: senior devs are empowered while juniors are not even hired anymore.

comment 3w ago · link · parent

Some part of it can already be tested during creating the backup. It's not 100% foolproof of course and you should still test restoring once in a while but my backuping procedure goes kinda like this (simplifying for the sake of explaining):

    - compress backup
    - encrypt backup
    - add cryptographic checksum to encrypted backup file(s)
    - pass the newly created backup to a container that only has access in read-only to the volume with the backup
    - verify the cryptographic hash
    - decrypt
    - decompress
    - verify everything that can be verified
    - if all passes, whitelist the cryptographic hash for that backup as "known restorable backup"
So the very process of creating the backup already contains a lot of the checks needed to make sure you can restore the backup.

I still, once in a while, take a backup at random and verify that it can be restored but basically already by verifying that the cryptographic checksum matches, I'm pretty confident it's gonna work.

Never failed.

A proper backup procedure can be so much more than simply: compress/encrypt.

A real cycle, before whitelisting the backup as "probably restorable", is way more involved than that.

comment 3w ago · link · parent

His case his "efficient"? What about this one:

"People shouldn't be allowed to bicycle for fun. Only utilitarian bicycles should be allowed. For there's too much energy spent manufacturing mountain bikes, tires, converting ski station into bike parks for the summer. That energy and money should instead be directed towards creating more RAM factories and more datacenters for the AI companies".

Where does such an "efficient" argument ends?

P.S: as a bonus question: does anyone know how to differentiate a paid shill from a sycophant?

comment 3w ago · link · parent

> BYD is basically the only car company that has showed off cars I would like to buy.

They're not bad when you're in them but they're not amazing either. The thing is: they're incredibly good value compared to other brand new cars.

But the interior of a great many german cars (for example) is still qualitatively not just a bit but way above BYD.

12345
162