sindresorhus/guides
View on GitHub ↗ ★ 2,525
A collection of succinct guides - Public Domain
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2015-01-16 · latest 2016-04-15
20082026
-
…`rm`, but in the end, it's better to just use a tool that move files to the trash [1] instead. [0]: https://github.com/sindresorhus/guides/blob/master/how-not-t... [1]: https://github.com/sindresorhus/trash-cli
comment by mofle · 2016-04-15 · in Man accidentally 'deletes his entire company' with one line of bad code -
There are some things you can do to make `rm` safer which would prevent this from working: https://github.com/sindresorhus/guides/blob/master/how-not-t... Though the real fix is doing development in a sandboxed container.
comment by mofle · 2015-01-26 · in Npm install could be dangerous -
I've written a short guide on how you should safeguard `rm`: https://github.com/sindresorhus/guides/blob/master/how-not-t...
comment by mofle · 2015-01-16 · in Moved ~/.local/share/steam. Ran steam. It deleted everything owned by user