HNHacker News
TopNewBestAskShowJobs

CamJN

308 karma · joined March 24, 2012

submissionscomments
CamJN··on Launch HN: Outerbase (YC W23) – A new UI and editor for your database
Assuming you use a token similar to JWT , then redirects and removing the token from the client don’t matter if you don’t blacklist the token on the backend, which if they were able to continue by hitting the back button seems the case. This does require you to keep a database of “logged-out” tokens and reject them, and occasionally run a cleanup script on the db to prune tokens from that table after they would have expired, but that’s what is required when you use auth tokens for login.
CamJN··on I_suck_and_my_tests_are_order_dependent
While sadly it does not require a flag to enable, at least you can turn it off with: `#![forbid(unsafe_code)]`.
CamJN··on Type Inference That Sticks
If I may, I’d suggest instead of shunning git, which is widely preferred as people’s revision control, perhaps consider writing a diff plugin for git to render out the diffs nicely, and include that tool with the compiler/interpreter install.
CamJN··on Dotfiles Management
I was interested in chezmoi, but they don't want you[1] managing files outside your home directory which made it a non-starter. I need to manage /etc/ and /usr/local/ too.

[1] https://www.chezmoi.io/user-guide/frequently-asked-questions...

CamJN··on Linux /proc/pid/stat parsing bugs
MacOS’ KERN_PROCARGS2 sysctl is an exception to this, it is very unintuitive to parse and every single piece of code that tries to parse the results that I’ve found on the internet has been wrong, including those from Apple, Google, and Microsoft. I wound up making a library to do it (https://getargv.narzt.cam/) because apparently people need help.
CamJN··on Processing 40 TB of code from ~10M projects with a server and Go for $100 (2019)
The ”average person eats 3 spiders a year” factoid is actually just statistical error. The average person eats 0 spiders per year. Spiders Georg, who lives in a cave & eats over 10,000 each day, is an outlier and should not have been counted”
CamJN··on SSH tips and tricks
From the bash man page:

All of the single-character shell options documented in the description of the set builtin command, including -o, can be used as options when the shell is invoked.

So set RemoteCommand to something like /bin/bash -o vi

CamJN··on SSH tips and tricks
I dunno, I think it does “glob-order” which should be alphabetical adjacent.
CamJN··on SSH tips and tricks
Or you can add this to the top of your ssh config file:

`Include ~/.ssh/config.d/*`

CamJN··on SSH tips and tricks
Well, it used to break scp, but then I fixed scp: https://github.com/openssh/openssh-portable/commit/77e05394a...
CamJN··on Rocky Linux 9.0
Alma is not as RHEL-compatible as rocky, they use subkeys for signing whereas rocky just uses their signing keys. This is enough that I can’t use alma for building my rpm’s using mock.
CamJN··on My upgrade to 25 Gbit/s Fiber To The Home
I'm on telus fibre, it's only fast within telus' local network because their peering is SHIT. So unless all you're going to do is speedtest all day long telus isn't going to help you.
CamJN··on Show HN: Warp, a Rust-based terminal
So, I was excited by the idea of a terminal that added new functionality and wasn't electron based. So I downloaded Warp.

And, honestly, I can't use it. They interfere with the operation of the shell to such a degree that I had to disable almost my entire bash configuration.

Add to that, that I already have the following features native to bash shell (and I'm sure they're in zsh too):

- history of commands: easily searched by pressing ↑ or ⌃+r - completion: via the awesome bash-completion project - split panes: both terminal.app and screen do this for me - session sharing: screen + ssh does this for me - "workflow" sharing, I can and do write shell scripts that can be used by others

I've seen comments trying to defend this that REALLY make me doubt that the devs even understand how a terminal + shell work. A shell script will run in it's interpreter regardless of what shell you happen to use, shared commands will inherently be in the flavour of shell-script that the sharer is used to, and so i have to know how to use their shell as well as mine to translate between them, which again isn't a problem when running a script. They claim that people don't document their scripts, but the same people who won't document a script won't document stuff they share in warp. They claim there's no way to find documentation natively from the terminal or to search for scripts based on what they do, apparently they haven't heard of apropos and man pages?

CamJN··on Home Depot successfully installs Tomcat 9 in production
They may be able to track their inventory, but they've also leaked 3 of my credit cards over the years, so it's not like they have reached the level of competency, they just know how many widgets they have.
CamJN··on uBlock Origin 1.41
Well, all dns except that over ipv6, DOH, DOT, software using a separate resolver hard-coded to a specific ip... The amount of work to force dns to your dns server these days is nuts.

I use a pi-hole and these days I have to:

- block dns advertisement of my ISP's dns server for ipv6 (which, there's no UI for that on my router so i have to edit the config by hand) - maintain a list of dns over https ips and block them in my firewall (since mitming this traffic is a huge pain) - force all traffic to port 853 to my pi and setup a masquerade for that traffic so the client doesn't know - force all traffic to port 53 to my pi and setup a masquerade for that traffic so the client doesn't know

CamJN··on Handling argc==0 in the Linux kernel
macOS allows argc == 0, it has a separate mechanism for providing the exec path of the executable to the process, namely the KERN_PROCARGS2 sysctl which includes the saved exec path along with argc, argv, envp, and the apple pointer.

Amusingly enough, Apple has had a bug in their `ps` since 10.3 that assumes argc > 0, which actually results in a similar (but not likely harmful, despite ps being setuid) bug.

CamJN··on Benchmarking the Apple M1 Max
That's already the case, though. The battery life difference using Safari versus Firefox/Chrome is staggering. Sure, you don't have an option to buy a FF/Chrome mac atm, but you've definitely bought one where safari is the only decently efficient browser.
CamJN··on 1Password for Linux
This statement by me was incorrect and based on the belief that they still encrypted vaults as a whole, but they’ve moved on to encrypting individual passwords so they can be decrypted individually and my whole concern was unfounded. I can’t edit that comment anymore, probably took too long. But it is wrong.
CamJN··on 1Password for Linux
I agree, but I was under the impression that the vaults were encrypted as a whole, but according to the security white paper that changed at some point. So you can decrypt individual passwords. So I’m happy and am in the process of correcting my comments. Sorry.
CamJN··on 1Password for Linux
Turns out that yes, I thought that the vaults were encrypted as a whole, but according to the security white paper that changed at some point. So you can decrypt individual passwords.
CamJN··on 1Password for Linux
Sorry, ignore me I was wrong
CamJN··on 1Password for Linux
This comment by me was wrong, sorry everyone. They’re NOT doing stupid crazy things.
CamJN··on 1Password for Linux
Use the "classic" extension, it already does this. And has the added bonus of not putting ALL of your passwords into your browser memory.
CamJN··on 1Password for Linux
Just a warning for people who don't know the grandparent is referring to the extension formerly called 1Password X (now just 1Password in the browser because AgileBits wants you to use that one) which puts ALL OF YOUR PASSWORDS into your browser's memory.

The "classic" 1Password browser extension already unlocked with the desktop app and does not dump your entire vault into browser memory just to fill one password.

CamJN··on 1Password for Linux
Just a warning for people who don't know the parent is referring to the extension formerly called 1Password X (now just 1Password in the browser because AgileBits wants you to use that one) which puts ALL OF YOUR PASSWORDS into your browser's memory.
CamJN··on The “Marketing Is Evil” Problem
Charities you already donate to begging for money. Same with politicians doing the same. And as a sibling comment mentions, marketing for life saving drugs.

People "love" the first two enough to give them money, and hate being berated for more. People like the existence of the drugs, but don't want to think about them most of the time due to the discomfort almost everyone has of contemplating mortality.

CamJN··on Permission.site
They do.
CamJN··on Google Workspace requires users to spend $100 to access YouTube
You seem to be labouring under some pretty egregious misconceptions. I am not signing into something from my phone. The flow is:

i try to log into gmail/google docs/whatever on my laptop's browser. Google sends my phone, tablet, any other mobile device I own a notification. if someone taps that notification, the laptop's browser is logged in, with no 2fa.

There's no such thing as a phone-wide google account on iPhones. There are google made apps, which completely fuck the security for your google account.

CamJN··on Google Workspace requires users to spend $100 to access YouTube
Not who you asked, but if you have signed into a Google app (Gmail, youtube, etc) on a phone then they will send a push notification to that phone that bypasses 2FA. This cannot be disabled, you can choose to login with the second factor you setup, but it doesn't provide any security anymore.
CamJN··on Git: Malicious repositories can execute remote code while cloning
The GitHub desktop app configures lfs in your gitconfig automatically, so that adds a lot of users to the vulnerable pool.
← PreviousPage 3 of 5Next →