4 ms·
Sorry, I am unfamiliar with ripgrep. Is this simply scanning for the string `_0x112fa8`? Could we do the same thing with normal grep -r?
by cgijoe 1y ago
Sorry, I am unfamiliar with ripgrep. Is this simply scanning for the string `_0x112fa8`? Could we do the same thing with normal grep -r?
- skrebbel 1y agoyes. ripgrep just does it faster, is all.
- hinkley 1y agoMake it work, make it right, make it fast. For security checks, the first 2 out of 3 is just fine.
- Aeolun 1y agoSure, but if you can get the last for free, why not?
- nothrabannosir 1y agoBut also respects .gitignore by default so I’m not sure you want to use ripgrep to scan your node_modules
- Fishkins 1y agoFor others who didn't know, the -u flag in the OP's command makes it so ripgrep _will_ search files even if they're gitignored
- postalcoder 1y ago-u searches through ignored files -uu searches through ignored and hidden files (eg dotfiles) -uuu searches through ignored, hidden, and binary files (ie everything)
- AkshatJ27 1y agoIsn't the intended behaviour of original comment checking the node_modules folder for the "infected" string.
- EasyMark 1y ago[flagged]
- naikrovek 1y agoI feel like you were trying to help here, but anyone can do this for themselves. Providing information in this way sort of indicates that you don't believe that the person you're replying to can do it on their own, and for that reason it's considered rude.
- skygazer 1y agoAlso, HN hates machine generated replies, especially the lengthy and overly verbose slop variety -- I think that probably eclipsed any perceived rudeness.
- tbossanova 1y agoI see what you mean, but I actually think there is a place for copy/pasting AI responses. I think of it as a kind of cache, surely a HN comment being served to n users means less resources used and faster access than if all n did their own AI query. But then of course you don’t get exactly your preference e.g. you might prefer a terser response than what is pasted here. Interesting to see how the etiquette around this plays out over time.
- vasco 1y agoIf you ever wanted to share an AI response, you probably should share your prompt, not the response. But likely you should not share anything, for the reasons already explained. Your argument about saving energy makes zero sense if you have any understanding of orders of magnitude but I won't share what AI says about it.
- tbossanova 1y agoIronically you are being incredibly rude trying to support an argument that posting AI responses is rude. I guess we can conclude you know nothing about anything.